forked from openwrt/packages
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
92 lines (74 loc) · 2.23 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
#
# This is free software, licensed under the GNU General Public License v2.
# See /LICENSE for more information.
#
include $(TOPDIR)/rules.mk
PKG_NAME:=faad2
PKG_VERSION:=2.10.0
PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/knik0/faad2/tar.gz/2_10_0?
PKG_HASH:=0c6d9636c96f95c7d736f097d418829ced8ec6dbd899cc6cc82b728480a84bfb
PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-2_10_0
PKG_MAINTAINER:=Ted Hess <[email protected]>
PKG_LICENSE:=GPL-2.0-or-later
PKG_LICENSE_FILES:=COPYING
PKG_CPE_ID:=cpe:/a:audiocoding:freeware_advanced_audio_decoder_2
PKG_FIXUP:=autoreconf
PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
include $(INCLUDE_DIR)/package.mk
define Package/faad2/Default
URL:=http://www.audiocoding.com/faad2.html
TITLE:=Freeware Advanced Audio Decoder
endef
define Package/faad2/Default/description
FAAD2 is the fastest ISO AAC audio decoder available.
FAAD2 correctly decodes all MPEG-4 and MPEG-2 MAIN,
LOW, LTP, LD and ER object type AAC files.
endef
define Package/faad2
$(call Package/faad2/Default)
SECTION:=sound
CATEGORY:=Sound
TITLE+=player
DEPENDS:=+libfaad2
endef
define Package/faad2/description
$(call Package/faad2/Default/description)
This package contains a binary to play AAC or MP4 files.
endef
define Package/libfaad2
$(call Package/faad2/Default)
SECTION:=libs
CATEGORY:=Libraries
TITLE+=library
MENU:=1
endef
define Package/libfaad2/description
$(call Package/faad2/Default/description)
This package contains the library.
endef
TARGET_CFLAGS += \
$(if $(CONFIG_BUILD_PATENTED),,-DLC_ONLY_DECODER) \
$(if $(CONFIG_SOFT_FLOAT),-DFIXED_POINT)
CONFIGURE_ARGS += \
--without-drm \
--without-mpeg4ip \
--without-xmms
define Build/InstallDev
$(INSTALL_DIR) $(1)/usr/include
$(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfaad.{a,so*} $(1)/usr/lib/
endef
define Package/faad2/install
$(INSTALL_DIR) $(1)/usr/bin
$(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/faad $(1)/usr/bin/
endef
define Package/libfaad2/install
$(INSTALL_DIR) $(1)/usr/lib
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfaad.so.* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,faad2))
$(eval $(call BuildPackage,libfaad2))