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.

64 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.0
  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:=6e6c7921713788e31df655911e1d42620b057180b00bf16874f5d630e1d5b9a2
  15. PKG_FIXUP:=autoreconf
  16. PKG_INSTALL:=1
  17. PKG_CONFIG_DEPENDS:= CONFIG_FDK-AAC_OPTIMIZE_SPEED
  18. ifeq ($(CONFIG_FDK-AAC_OPTIMIZE_SPEED),y)
  19. TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS))
  20. TARGET_CFLAGS += $(TARGET_CFLAGS) -O2 -flto
  21. TARGET_CXXFLAGS := $(filter-out -O%,$(TARGET_CXXFLAGS))
  22. TARGET_CXXFLAGS += $(TARGET_CXXFLAGS) -O2 -flto
  23. TARGET_LDFLAGS += $(TARGET_LDFLAGS) -flto
  24. endif
  25. include $(INCLUDE_DIR)/package.mk
  26. define Package/fdk-aac
  27. SECTION:=sound
  28. CATEGORY:=Sound
  29. DEPENDS:=@BUILD_PATENTED
  30. TITLE:=Fraunhofer FDK AAC Codec Library
  31. URL:=https://sourceforge.net/projects/opencore-amr/
  32. endef
  33. define Package/fdk-aac/description
  34. Port of the Fraunhofer FDK AAC Codec Library for Android
  35. endef
  36. define Package/fdk-aac/config
  37. source "$(SOURCE)/Config.in"
  38. endef
  39. define Package/fdk-aac/install
  40. $(INSTALL_DIR) $(1)/usr/lib/
  41. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfdk-aac.so* $(1)/usr/lib/
  42. endef
  43. define Build/InstallDev
  44. $(INSTALL_DIR) $(1)/usr/include
  45. $(CP) $(PKG_INSTALL_DIR)/usr/include/fdk-aac $(1)/usr/include
  46. $(INSTALL_DIR) $(1)/usr/lib/
  47. $(CP) $(PKG_INSTALL_DIR)/usr/lib/libfdk-aac.{la,so*} $(1)/usr/lib/
  48. $(INSTALL_DIR) $(1)/usr/lib/pkgconfig
  49. $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fdk-aac.pc $(1)/usr/lib/pkgconfig/
  50. endef
  51. $(eval $(call BuildPackage,fdk-aac))