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.

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