Merge pull request #19707 from stangri/master-https-dns-proxy
[feed/packages.git] / libs / libmad / Makefile
1 #
2 # Copyright (C) 2006-2014 OpenWrt.org
3 #
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
6 #
7
8 include $(TOPDIR)/rules.mk
9
10 PKG_NAME:=libmad
11 PKG_VERSION:=0.16.3
12 PKG_RELEASE:=$(AUTORELEASE)
13
14 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
15 PKG_SOURCE_URL:=https://codeload.github.com/tenacityteam/libmad/tar.gz/$(PKG_VERSION)?
16 PKG_HASH:=83ca48db60f480ae22234bae08e6ad651adec2667a68ad2df6fd61e6a50a32c7
17
18 PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
19 PKG_LICENSE:=GPL-2.0-or-later
20 PKG_LICENSE_FILES:=COPYING
21 PKG_CPE_ID:=cpe:/a:underbit:mad_libmad
22
23 CMAKE_INSTALL:=1
24 PKG_USE_MIPS16:=0
25
26 include $(INCLUDE_DIR)/package.mk
27 include $(INCLUDE_DIR)/cmake.mk
28
29 define Package/libmad
30 SECTION:=libs
31 CATEGORY:=Libraries
32 TITLE:=An high-quality MPEG audio decoding library
33 URL:=http://www.underbit.com/products/mad/
34 endef
35
36 define Package/libmad/description
37 MAD is a high-quality MPEG audio decoder. It currently supports
38 MPEG-1 and the MPEG-2 extension to lower sampling frequencies,
39 as well as the de facto MPEG 2.5 format. All three audio layers -
40 Layer I, Layer II, and Layer III (i.e. MP3) - are fully implemented.
41 endef
42
43 CMAKE_OPTIONS += \
44 -DOPTIMIZE=SPEED
45
46 TARGET_CFLAGS:= $(filter-out -O%,$(TARGET_CFLAGS)) -O2
47
48 define Package/libmad/install
49 $(INSTALL_DIR) $(1)/usr/lib
50 $(CP) $(PKG_INSTALL_DIR)/usr/lib/libmad.so.* $(1)/usr/lib/
51 endef
52
53 $(eval $(call BuildPackage,libmad))