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.

92 lines
2.2 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.9.2
  8. PKG_RELEASE:=1
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://codeload.github.com/knik0/faad2/tar.gz/2_9_2?
  11. PKG_HASH:=9728b2b94f94ab49363cd229e7377fbe6ef3c311c5cd80da662d53ddb0ee091d
  12. PKG_BUILD_DIR:=$(BUILD_DIR)/$(PKG_NAME)-2_9_2
  13. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  14. PKG_LICENSE:=GPL-2.0-or-later
  15. PKG_LICENSE_FILES:=COPYING
  16. PKG_CPE_ID:=cpe:/a:audiocoding:freeware_advanced_audio_decoder_2
  17. PKG_FIXUP:=autoreconf
  18. PKG_INSTALL:=1
  19. PKG_BUILD_PARALLEL:=1
  20. include $(INCLUDE_DIR)/package.mk
  21. define Package/faad2/Default
  22. URL:=http://www.audiocoding.com/faad2.html
  23. TITLE:=Freeware Advanced Audio Decoder
  24. endef
  25. define Package/faad2/Default/description
  26. FAAD2 is the fastest ISO AAC audio decoder available.
  27. FAAD2 correctly decodes all MPEG-4 and MPEG-2 MAIN,
  28. LOW, LTP, LD and ER object type AAC files.
  29. endef
  30. define Package/faad2
  31. $(call Package/faad2/Default)
  32. SECTION:=sound
  33. CATEGORY:=Sound
  34. TITLE+=player
  35. DEPENDS:=+libfaad2
  36. endef
  37. define Package/faad2/description
  38. $(call Package/faad2/Default/description)
  39. This package contains a binary to play AAC or MP4 files.
  40. endef
  41. define Package/libfaad2
  42. $(call Package/faad2/Default)
  43. SECTION:=libs
  44. CATEGORY:=Libraries
  45. TITLE+=library
  46. MENU:=1
  47. endef
  48. define Package/libfaad2/description
  49. $(call Package/faad2/Default/description)
  50. This package contains the library.
  51. endef
  52. TARGET_CFLAGS += \
  53. $(if $(CONFIG_BUILD_PATENTED),,-DLC_ONLY_DECODER) \
  54. $(if $(CONFIG_SOFT_FLOAT),-DFIXED_POINT)
  55. CONFIGURE_ARGS += \
  56. --without-drm \
  57. --without-mpeg4ip \
  58. --without-xmms
  59. define Build/InstallDev
  60. $(INSTALL_DIR) $(1)/usr/include
  61. $(CP) $(PKG_INSTALL_DIR)/usr/include/*.h $(1)/usr/include
  62. $(INSTALL_DIR) $(1)/usr/lib
  63. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfaad.{a,so*} $(1)/usr/lib/
  64. endef
  65. define Package/faad2/install
  66. $(INSTALL_DIR) $(1)/usr/bin
  67. $(INSTALL_BIN) $(PKG_INSTALL_DIR)/usr/bin/faad $(1)/usr/bin/
  68. endef
  69. define Package/libfaad2/install
  70. $(INSTALL_DIR) $(1)/usr/lib
  71. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfaad.so.* $(1)/usr/lib/
  72. endef
  73. $(eval $(call BuildPackage,faad2))
  74. $(eval $(call BuildPackage,libfaad2))