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.

98 lines
2.4 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.0~cvs20161113
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)_$(PKG_VERSION).orig.tar.xz
  10. PKG_SOURCE_URL:=http://ftp.debian.org/debian/pool/main/f/$(PKG_NAME)
  11. PKG_HASH:=de34bce327eac8a89cd58b7d44dfb58988033de6fda0ab9582ed0585fc3fd07e
  12. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  13. PKG_CONFIG_DEPENDS := \
  14. CONFIG_SOFT_FLOAT \
  15. CONFIG_FAAD2_ALWAYS_USE_FLOATING_POINT
  16. PKG_FIXUP:=autoreconf
  17. PKG_INSTALL:=1
  18. include $(INCLUDE_DIR)/package.mk
  19. define Package/faad2/Default
  20. URL:=http://www.audiocoding.com/faad2.html
  21. TITLE:=Freeware Advanced Audio Decoder
  22. endef
  23. define Package/faad2/Default/description
  24. FAAD2 is the fastest ISO AAC audio decoder available.
  25. FAAD2 correctly decodes all MPEG-4 and MPEG-2 MAIN,
  26. LOW, LTP, LD and ER object type AAC files.
  27. endef
  28. define Package/faad2
  29. $(call Package/faad2/Default)
  30. SECTION:=sound
  31. CATEGORY:=Sound
  32. TITLE+=player
  33. DEPENDS:=+libfaad2
  34. endef
  35. define Package/faad2/description
  36. $(call Package/faad2/Default/description)
  37. This package contains a binary to play AAC or MP4 files.
  38. endef
  39. define Package/libfaad2
  40. $(call Package/faad2/Default)
  41. SECTION:=libs
  42. CATEGORY:=Libraries
  43. TITLE+=library
  44. DEPENDS:=@BUILD_PATENTED
  45. MENU:=1
  46. endef
  47. define Package/libfaad2/config
  48. source "$(SOURCE)/Config.in"
  49. endef
  50. define Package/libfaad2/description
  51. $(call Package/faad2/Default/description)
  52. This package contains the library.
  53. endef
  54. TARGET_CFLAGS += $(FPIC)
  55. CONFIGURE_ARGS+= --without-xmms
  56. # Use fixed point math, if we're using soft floats, and the user didn't
  57. # specifically ask to use floats anyways.
  58. #ifeq ($(CONFIG_SOFT_FLOAT)-$(CONFIG_FAAD2_ALWAYS_USE_FLOATING_POINT),y-)
  59. TARGET_CFLAGS+= -DFIXED_POINT
  60. CONFIGURE_ARGS+= -nfp
  61. #endif
  62. CONFIGURE_VARS+= CPPFLAGS="-fno-builtin-cos -fno-builtin-sin -fno-builtin-log"
  63. define Build/InstallDev
  64. $(INSTALL_DIR) $(1)/usr/include
  65. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
  66. $(INSTALL_DIR) $(1)/usr/lib
  67. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfaad.{a,so*} $(1)/usr/lib/
  68. endef
  69. define Package/faad2/install
  70. $(INSTALL_DIR) $(1)/usr/bin
  71. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/faad $(1)/usr/bin/
  72. endef
  73. define Package/libfaad2/install
  74. $(INSTALL_DIR) $(1)/usr/lib
  75. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfaad.so.* $(1)/usr/lib/
  76. endef
  77. $(eval $(call BuildPackage,faad2))
  78. $(eval $(call BuildPackage,libfaad2))