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.
8 include $(TOPDIR
)/rules.mk
14 PKG_SOURCE
:=$(PKG_NAME
)-$(PKG_VERSION
).
tar.bz2
15 PKG_SOURCE_URL
:=@SF
/faac
16 PKG_MD5SUM
:=4c332fa23febc0e4648064685a3d4332
20 include $(INCLUDE_DIR
)/package.mk
22 define Package
/faad2
/Default
23 URL
:=http
://www.audiocoding.com
/faad2.html
24 TITLE
:=Freeware Advanced Audio Decoder
27 define Package
/faad2
/Default
/description
28 FAAD2 is the fastest ISO AAC audio decoder available.
29 FAAD2 correctly decodes
all MPEG-4 and MPEG-2 MAIN
,
30 LOW
, LTP
, LD and ER object type AAC files.
34 $(call Package
/faad2
/Default
)
41 define Package
/faad2
/description
42 $(call Package
/faad2
/Default
/description
)
43 This package contains a binary to play AAC or MP4 files.
46 define Package
/libfaad2
47 $(call Package
/faad2
/Default
)
53 define Package
/libfaad2
/description
54 $(call Package
/faad2
/Default
/description
)
55 This package contains the library.
58 define Build
/Configure
59 (cd
$(PKG_BUILD_DIR
); rm -rf config.
{cache
,status
}; \
62 $(call Build
/Configure
/Default
, \
66 FAAD2_CPPFLAGS
="-fno-builtin-cos -fno-builtin-sin -fno-builtin-log" \
70 TARGET_CFLAGS
+= $(FPIC
)
73 DESTDIR
="$(PKG_INSTALL_DIR)" \
76 define Build
/InstallDev
77 mkdir
-p
$(1)/usr
/include
78 $(CP
) $(PKG_INSTALL_DIR
)/usr
/include/*.h
$(1)/usr
/include
80 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfaad.
{a
,so
*} $(1)/usr
/lib
/
83 define Package
/faad2
/install
84 $(INSTALL_DIR
) $(1)/usr
/bin
85 $(INSTALL_BIN
) $(PKG_INSTALL_DIR
)/usr
/bin
/faad
$(1)/usr
/bin
/
88 define Package
/libfaad2
/install
89 $(INSTALL_DIR
) $(1)/usr
/lib
90 $(CP
) $(PKG_INSTALL_DIR
)/usr
/lib
/libfaad.so.
* $(1)/usr
/lib
/
93 $(eval
$(call BuildPackage
,faad2
))
94 $(eval
$(call BuildPackage
,libfaad2
))