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.

86 lines
2.0 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.8
  8. PKG_RELEASE:=2
  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:=985c3fadb9789d2815e50f4ff714511c79c2710ac27a4aaaf5c0c2662141426d
  12. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  13. PKG_CPE_ID:=cpe:/a:audiocoding:faad2
  14. PKG_FIXUP:=autoreconf
  15. PKG_INSTALL:=1
  16. include $(INCLUDE_DIR)/package.mk
  17. define Package/faad2/Default
  18. URL:=http://www.audiocoding.com/faad2.html
  19. TITLE:=Freeware Advanced Audio Decoder
  20. endef
  21. define Package/faad2/Default/description
  22. FAAD2 is the fastest ISO AAC audio decoder available.
  23. FAAD2 correctly decodes all MPEG-4 and MPEG-2 MAIN,
  24. LOW, LTP, LD and ER object type AAC files.
  25. endef
  26. define Package/faad2
  27. $(call Package/faad2/Default)
  28. SECTION:=sound
  29. CATEGORY:=Sound
  30. TITLE+=player
  31. DEPENDS:=+libfaad2
  32. endef
  33. define Package/faad2/description
  34. $(call Package/faad2/Default/description)
  35. This package contains a binary to play AAC or MP4 files.
  36. endef
  37. define Package/libfaad2
  38. $(call Package/faad2/Default)
  39. SECTION:=libs
  40. CATEGORY:=Libraries
  41. TITLE+=library
  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. define Build/InstallDev
  55. $(INSTALL_DIR) $(1)/usr/include
  56. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
  57. $(INSTALL_DIR) $(1)/usr/lib
  58. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfaad.{a,so*} $(1)/usr/lib/
  59. endef
  60. define Package/faad2/install
  61. $(INSTALL_DIR) $(1)/usr/bin
  62. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/faad $(1)/usr/bin/
  63. endef
  64. define Package/libfaad2/install
  65. $(INSTALL_DIR) $(1)/usr/lib
  66. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfaad.so.* $(1)/usr/lib/
  67. endef
  68. $(eval $(call BuildPackage,faad2))
  69. $(eval $(call BuildPackage,libfaad2))