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.

69 lines
1.8 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:=fdk-aac
  7. PKG_VERSION:=2.0.1
  8. PKG_RELEASE:=4
  9. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
  10. PKG_SOURCE_URL:=https://codeload.github.com/mstorsjo/fdk-aac/tar.gz/v$(PKG_VERSION)?
  11. PKG_HASH:=a4142815d8d52d0e798212a5adea54ecf42bcd4eec8092b37a8cb615ace91dc6
  12. PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
  13. PKG_LICENSE:=Fraunhofer-FDK-AAC-for-Android
  14. PKG_LICENSE_FILES:=NOTICE
  15. PKG_FIXUP:=autoreconf
  16. PKG_INSTALL:=1
  17. PKG_BUILD_PARALLEL:=1
  18. PKG_CONFIG_DEPENDS:= \
  19. CONFIG_BUILD_PATENTED \
  20. CONFIG_FDK-AAC_OPTIMIZE_SPEED
  21. ifneq ($(CONFIG_BUILD_PATENTED),y)
  22. PATCH_DIR:=./patches-free
  23. endif
  24. include $(INCLUDE_DIR)/package.mk
  25. define Package/fdk-aac
  26. SECTION:=sound
  27. CATEGORY:=Sound
  28. TITLE:=Fraunhofer FDK AAC Codec Library
  29. URL:=https://sourceforge.net/projects/opencore-amr/
  30. endef
  31. define Package/fdk-aac/config
  32. source "$(SOURCE)/Config.in"
  33. endef
  34. define Package/fdk-aac/description
  35. Port of the Fraunhofer FDK AAC Codec Library for Android
  36. endef
  37. ifeq ($(CONFIG_FDK-AAC_OPTIMIZE_SPEED),y)
  38. TARGET_CFLAGS:= $(filter-out -O%,$(TARGET_CFLAGS)) -O2 -flto
  39. TARGET_CXXFLAGS:= $(filter-out -O%,$(TARGET_CXXFLAGS)) -O2 -flto
  40. TARGET_LDFLAGS += -flto
  41. endif
  42. define Build/InstallDev
  43. $(INSTALL_DIR) $(1)/usr/include
  44. $(CP) $(PKG_INSTALL_DIR)/usr/include/fdk-aac $(1)/usr/include
  45. $(INSTALL_DIR) $(1)/usr/lib/
  46. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfdk-aac.{la,so*} $(1)/usr/lib/
  47. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  48. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fdk-aac.pc $(1)/usr/lib/pkgconfig/
  49. endef
  50. define Package/fdk-aac/install
  51. $(INSTALL_DIR) $(1)/usr/lib/
  52. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfdk-aac.so* $(1)/usr/lib/
  53. endef
  54. $(eval $(call BuildPackage,fdk-aac))