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.

56 lines
1.7 KiB

  1. #
  2. # Copyright (C) 2017 Daniel Engberg <daniel.engberg.lists@pyret.net>
  3. #
  4. # This is free software, licensed under the GNU General Public License v2.
  5. # See /LICENSE for more information.
  6. #
  7. include $(TOPDIR)/rules.mk
  8. PKG_NAME:=fdk-aac
  9. PKG_VERSION:=0.1.5
  10. PKG_RELEASE:=1
  11. PKG_MAINTAINER:=Daniel Engberg <daniel.engberg.lists@pyret.net>
  12. PKG_LICENSE:=Fraunhofer-FDK-AAC-for-Android
  13. PKG_LICENSE_FILES:=NOTICE
  14. PKG_SOURCE_PROTO:=git
  15. PKG_SOURCE_URL=https://github.com/mstorsjo/fdk-aac/
  16. PKG_SOURCE_SUBDIR=$(PKG_NAME)-$(PKG_VERSION)
  17. PKG_SOURCE_VERSION:=74c1a2a4f831285cbd93ec1427f1670d3c5c5e52
  18. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  19. PKG_MIRROR_MD5SUM:=d2ff3ca03842e96f3f18619f8a27ea03fb5d1e2266e4010cbb4803bf6e1fe62b
  20. PKG_FIXUP:=autoreconf
  21. include $(INCLUDE_DIR)/package.mk
  22. define Package/fdk-aac
  23. SECTION:=sound
  24. CATEGORY:=Sound
  25. DEPENDS:=@BUILD_PATENTED
  26. TITLE:=Fraunhofer FDK AAC Codec Library
  27. URL:=https://sourceforge.net/projects/opencore-amr/
  28. endef
  29. define Package/fdk-aac/description
  30. Port of the Fraunhofer FDK AAC Codec Library for Android
  31. endef
  32. define Package/fdk-aac/install
  33. $(INSTALL_DIR) $(1)/usr/lib/
  34. $(CP) $(PKG_BUILD_DIR)/.libs/*.so* $(1)/usr/lib/
  35. endef
  36. define Build/InstallDev
  37. $(INSTALL_DIR) $(1)/usr/include/fdk-aac
  38. $(CP) $(PKG_BUILD_DIR)/libAACdec/include/aacdecoder_lib.h $(1)/usr/include/fdk-aac
  39. $(CP) $(PKG_BUILD_DIR)/libAACenc/include/aacenc_lib.h $(1)/usr/include/fdk-aac
  40. $(CP) $(PKG_BUILD_DIR)/libSYS/include/FDK_audio.h $(1)/usr/include/fdk-aac
  41. $(CP) $(PKG_BUILD_DIR)/libSYS/include/genericStds.h $(1)/usr/include/fdk-aac
  42. $(CP) $(PKG_BUILD_DIR)/libSYS/include/machine_type.h $(1)/usr/include/fdk-aac
  43. $(INSTALL_DIR) $(1)/usr/lib/
  44. $(CP) $(PKG_BUILD_DIR)/.libs/*.{la,so*} $(1)/usr/lib/
  45. endef
  46. $(eval $(call BuildPackage,fdk-aac))