Makefile 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  1. #
  2. # This is free software, licensed under the GNU General Public License v2.
  3. # See /LICENSE for more information.
  4. #
  5. include $(TOPDIR)/rules.mk
  6. PKG_NAME:=faad2
  7. PKG_VERSION:=2.8.6
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=@SF/faac/faad2-src/$(PKG_NAME)-2.8.0
  11. PKG_HASH:=654977adbf62eb81f4fca00152aca58ce3b6dd157181b9edd7bed687a7c73f21
  12. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  13. PKG_FIXUP:=autoreconf
  14. PKG_INSTALL:=1
  15. include $(INCLUDE_DIR)/package.mk
  16. define Package/faad2/Default
  17. URL:=http://www.audiocoding.com/faad2.html
  18. TITLE:=Freeware Advanced Audio Decoder
  19. endef
  20. define Package/faad2/Default/description
  21. FAAD2 is the fastest ISO AAC audio decoder available.
  22. FAAD2 correctly decodes all MPEG-4 and MPEG-2 MAIN,
  23. LOW, LTP, LD and ER object type AAC files.
  24. endef
  25. define Package/faad2
  26. $(call Package/faad2/Default)
  27. SECTION:=sound
  28. CATEGORY:=Sound
  29. TITLE+=player
  30. DEPENDS:=+libfaad2
  31. endef
  32. define Package/faad2/description
  33. $(call Package/faad2/Default/description)
  34. This package contains a binary to play AAC or MP4 files.
  35. endef
  36. define Package/libfaad2
  37. $(call Package/faad2/Default)
  38. SECTION:=libs
  39. CATEGORY:=Libraries
  40. TITLE+=library
  41. MENU:=1
  42. endef
  43. define Package/libfaad2/description
  44. $(call Package/faad2/Default/description)
  45. This package contains the library.
  46. endef
  47. TARGET_CFLAGS += $(FPIC)
  48. CONFIGURE_ARGS+= --without-xmms
  49. ifeq ($(CONFIG_SOFT_FLOAT),y)
  50. TARGET_CFLAGS+= -DFIXED_POINT
  51. CONFIGURE_ARGS+= -nfp
  52. endif
  53. ifeq ($(CONFIG_USE_UCLIBC),y)
  54. CONFIGURE_VARS+= CPPFLAGS="-fno-builtin-cos -fno-builtin-sin -fno-builtin-log"
  55. endif
  56. define Build/InstallDev
  57. $(INSTALL_DIR) $(1)/usr/include
  58. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
  59. $(INSTALL_DIR) $(1)/usr/lib
  60. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfaad.{a,so*} $(1)/usr/lib/
  61. endef
  62. define Package/faad2/install
  63. $(INSTALL_DIR) $(1)/usr/bin
  64. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/faad $(1)/usr/bin/
  65. endef
  66. define Package/libfaad2/install
  67. $(INSTALL_DIR) $(1)/usr/lib
  68. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfaad.so.* $(1)/usr/lib/
  69. endef
  70. $(eval $(call BuildPackage,faad2))
  71. $(eval $(call BuildPackage,libfaad2))