From 909e22f1bc0a4203700073507608e25a5f374b8d Mon Sep 17 00:00:00 2001 From: Daniel Engberg Date: Mon, 9 Jan 2017 22:48:36 +0100 Subject: [PATCH] sound/fdk-aac: Add Fraunhofer FDK AAC Codec Library to repo Add Fraunhofer FDK AAC Codec Library v0.1.5 to repo Signed-off-by: Daniel Engberg --- sound/fdk-aac/Makefile | 56 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 56 insertions(+) create mode 100644 sound/fdk-aac/Makefile diff --git a/sound/fdk-aac/Makefile b/sound/fdk-aac/Makefile new file mode 100644 index 000000000..f1b5af42f --- /dev/null +++ b/sound/fdk-aac/Makefile @@ -0,0 +1,56 @@ +# +# Copyright (C) 2017 Daniel Engberg +# +# This is free software, licensed under the GNU General Public License v2. +# See /LICENSE for more information. +# + +include $(TOPDIR)/rules.mk + +PKG_NAME:=fdk-aac +PKG_VERSION=0.1.5 +PKG_RELEASE:=1 +PKG_MAINTAINER:=Daniel Engberg +PKG_LICENSE:=Fraunhofer-FDK-AAC-for-Android +PKG_LICENSE_FILES:=NOTICE + +PKG_SOURCE_PROTO:=git +PKG_SOURCE_URL=https://github.com/mstorsjo/fdk-aac/ +PKG_SOURCE_SUBDIR=$(PKG_NAME)-$(PKG_VERSION) +PKG_SOURCE_VERSION:=74c1a2a4f831285cbd93ec1427f1670d3c5c5e52 +PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz +PKG_MIRROR_MD5SUM:=d2ff3ca03842e96f3f18619f8a27ea03fb5d1e2266e4010cbb4803bf6e1fe62b + +PKG_FIXUP:=autoreconf + +include $(INCLUDE_DIR)/package.mk + +define Package/fdk-aac + SECTION:=sound + CATEGORY:=Sound + DEPENDS:=@BUILD_PATENTED + TITLE:=Fraunhofer FDK AAC Codec Library + URL:=https://sourceforge.net/projects/opencore-amr/ +endef + +define Package/fdk-aac/description + Port of the Fraunhofer FDK AAC Codec Library for Android +endef + +define Package/fdk-aac/install + $(INSTALL_DIR) $(1)/usr/lib/ + $(CP) $(PKG_BUILD_DIR)/.libs/*.so* $(1)/usr/lib/ +endef + +define Build/InstallDev + $(INSTALL_DIR) $(1)/usr/include/fdk-aac + $(CP) $(PKG_BUILD_DIR)/libAACdec/include/aacdecoder_lib.h $(1)/usr/include/fdk-aac + $(CP) $(PKG_BUILD_DIR)/libAACenc/include/aacenc_lib.h $(1)/usr/include/fdk-aac + $(CP) $(PKG_BUILD_DIR)/libSYS/include/FDK_audio.h $(1)/usr/include/fdk-aac + $(CP) $(PKG_BUILD_DIR)/libSYS/include/genericStds.h $(1)/usr/include/fdk-aac + $(CP) $(PKG_BUILD_DIR)/libSYS/include/machine_type.h $(1)/usr/include/fdk-aac + $(INSTALL_DIR) $(1)/usr/lib/ + $(CP) $(PKG_BUILD_DIR)/.libs/*.{la,so*} $(1)/usr/lib/ +endef + +$(eval $(call BuildPackage,fdk-aac))