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.

68 lines
2.1 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.5-20171120
  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_PROTO:=git
  13. PKG_SOURCE_URL=https://github.com/mstorsjo/fdk-aac/
  14. PKG_SOURCE_SUBDIR=$(PKG_NAME)-$(PKG_VERSION)
  15. PKG_SOURCE_VERSION:=56c717e223a161b11f523de97dae51c5cccd6b52
  16. PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
  17. PKG_MIRROR_HASH:=c0c035df410697bb753fc06f03bacc0079b4c456a571718b3fabb568c05c41ce
  18. PKG_FIXUP:=autoreconf
  19. PKG_CONFIG_DEPENDS:= CONFIG_FDK-AAC_OPTIMIZE_SPEED
  20. ifeq ($(CONFIG_FDK-AAC_OPTIMIZE_SPEED),y)
  21. TARGET_CFLAGS := $(filter-out -Os,$(TARGET_CFLAGS))
  22. TARGET_CFLAGS += $(TARGET_CFLAGS) -O2 -flto
  23. TARGET_CXXFLAGS := $(filter-out -Os,$(TARGET_CXXFLAGS))
  24. TARGET_CXXFLAGS += $(TARGET_CXXFLAGS) -O2 -flto
  25. TARGET_LDFLAGS += $(TARGET_LDFLAGS) -flto
  26. endif
  27. include $(INCLUDE_DIR)/package.mk
  28. define Package/fdk-aac
  29. SECTION:=sound
  30. CATEGORY:=Sound
  31. DEPENDS:=@BUILD_PATENTED
  32. TITLE:=Fraunhofer FDK AAC Codec Library
  33. URL:=https://sourceforge.net/projects/opencore-amr/
  34. endef
  35. define Package/fdk-aac/description
  36. Port of the Fraunhofer FDK AAC Codec Library for Android
  37. endef
  38. define Package/fdk-aac/config
  39. source "$(SOURCE)/Config.in"
  40. endef
  41. define Package/fdk-aac/install
  42. $(INSTALL_DIR) $(1)/usr/lib/
  43. $(CP) $(PKG_BUILD_DIR)/.libs/*.so* $(1)/usr/lib/
  44. endef
  45. define Build/InstallDev
  46. $(INSTALL_DIR) $(1)/usr/include/fdk-aac
  47. $(CP) $(PKG_BUILD_DIR)/libAACdec/include/aacdecoder_lib.h $(1)/usr/include/fdk-aac
  48. $(CP) $(PKG_BUILD_DIR)/libAACenc/include/aacenc_lib.h $(1)/usr/include/fdk-aac
  49. $(CP) $(PKG_BUILD_DIR)/libSYS/include/FDK_audio.h $(1)/usr/include/fdk-aac
  50. $(CP) $(PKG_BUILD_DIR)/libSYS/include/genericStds.h $(1)/usr/include/fdk-aac
  51. $(CP) $(PKG_BUILD_DIR)/libSYS/include/machine_type.h $(1)/usr/include/fdk-aac
  52. $(INSTALL_DIR) $(1)/usr/lib/
  53. $(CP) $(PKG_BUILD_DIR)/.libs/*.{la,so*} $(1)/usr/lib/
  54. endef
  55. $(eval $(call BuildPackage,fdk-aac))