You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

90 lines
2.1 KiB

  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. DEPENDS:=@BUILD_PATENTED
  42. MENU:=1
  43. endef
  44. define Package/libfaad2/description
  45. $(call Package/faad2/Default/description)
  46. This package contains the library.
  47. endef
  48. TARGET_CFLAGS += $(FPIC)
  49. CONFIGURE_ARGS+= --without-xmms
  50. ifeq ($(CONFIG_SOFT_FLOAT),y)
  51. TARGET_CFLAGS+= -DFIXED_POINT
  52. CONFIGURE_ARGS+= -nfp
  53. endif
  54. ifeq ($(CONFIG_USE_UCLIBC),y)
  55. CONFIGURE_VARS+= CPPFLAGS="-fno-builtin-cos -fno-builtin-sin -fno-builtin-log"
  56. endif
  57. define Build/InstallDev
  58. $(INSTALL_DIR) $(1)/usr/include
  59. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
  60. $(INSTALL_DIR) $(1)/usr/lib
  61. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfaad.{a,so*} $(1)/usr/lib/
  62. endef
  63. define Package/faad2/install
  64. $(INSTALL_DIR) $(1)/usr/bin
  65. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/faad $(1)/usr/bin/
  66. endef
  67. define Package/libfaad2/install
  68. $(INSTALL_DIR) $(1)/usr/lib
  69. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfaad.so.* $(1)/usr/lib/
  70. endef
  71. $(eval $(call BuildPackage,faad2))
  72. $(eval $(call BuildPackage,libfaad2))