2 # Copyright (C) 2008 OpenWrt.org
4 # This is free software, licensed under the GNU General Public License v2.
5 # See /LICENSE for more information.
9 include $(TOPDIR
)/rules.mk
15 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.gz
16 PKG_SOURCE_URL
:=@SF
/faac
17 PKG_MD5SUM
:=74e92df40c270f216a8305fc87603c8a
19 PKG_BUILD_DIR
:=$(BUILD_DIR
)/$(PKG_NAME
)
23 include $(INCLUDE_DIR
)/package.mk
25 define Package
/faad2
/Default
26 URL
:=http
://www.audiocoding.com
/faad2.html
27 TITLE
:=Freeware Advanced Audio Decoder
30 define Package
/faad2
/Default
/description
31 FAAD2 is the fastest ISO AAC audio decoder available.
32 FAAD2 correctly decodes
all MPEG-4 and MPEG-2 MAIN
,
33 LOW
, LTP
, LD and ER object type AAC files.
37 $(call Package
/faad2
/Default
)
44 define Package
/faad2
/description
45 $(call Package
/faad2
/Default
/description
)
46 This package contains a binary to play AAC or MP4 files.
49 define Package
/libfaad2
50 $(call Package
/faad2
/Default
)
56 define Package
/libfaad2
/description
57 $(call Package
/faad2
/Default
/description
)
58 This package contains the library.
61 define Build
/Configure
62 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
}; \
65 $(call Build
/Configure
/Default
, \
69 FAAD2_CPPFLAGS
="-fno-builtin-cos -fno-builtin-sin -fno-builtin-log" \
74 DESTDIR
="$(PKG_INSTALL_DIR)" \
77 define Build
/InstallDev
78 mkdir
-p
$(1)/usr
/include
79 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/*.h
$(1)/usr
/include
81 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfaad.
{a
,so
*} $(1)/usr
/lib
/
84 define Package
/faad2
/install
85 $(INSTALL_DIR
) $(1)/usr
/bin
86 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/faad
$(1)/usr
/bin
/
89 define Package
/libfaad2
/install
90 $(INSTALL_DIR
) $(1)/usr
/lib
91 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfaad.so.
* $(1)/usr
/lib
/
94 $(eval
$(call BuildPackage
,faad2
))
95 $(eval
$(call BuildPackage
,libfaad2
))
97 $(eval
$(call RequireCommand
,autoconf
, \
98 $(PKG_NAME
) requires GNU autoconf. \