Browse Source

Merge pull request #10440 from neheb/aac

fdk-aac: Update to 2.0.1 and add free version
lilik-openwrt-22.03
Rosen Penev 5 years ago
committed by GitHub
parent
commit
05626fc721
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 98514 additions and 12 deletions
  1. +52
    -12
      sound/fdk-aac/Makefile
  2. +49625
    -0
      sound/fdk-aac/patches-free/010-remove-sbr.patch
  3. +10233
    -0
      sound/fdk-aac/patches-free/020-remove-hcx-rvlc-error.patch
  4. +29035
    -0
      sound/fdk-aac/patches-free/030-remove-mp3-surround.patch
  5. +9569
    -0
      sound/fdk-aac/patches-free/040-remove-usac.patch

+ 52
- 12
sound/fdk-aac/Makefile View File

@ -6,21 +6,27 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=fdk-aac PKG_NAME:=fdk-aac
PKG_VERSION:=2.0.0
PKG_VERSION:=2.0.1
PKG_RELEASE:=1 PKG_RELEASE:=1
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_SOURCE_URL:=https://codeload.github.com/mstorsjo/fdk-aac/tar.gz/v$(PKG_VERSION)?
PKG_HASH:=a4142815d8d52d0e798212a5adea54ecf42bcd4eec8092b37a8cb615ace91dc6
PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net> PKG_MAINTAINER:=Ted Hess <thess@kitschensync.net>
PKG_LICENSE:=Fraunhofer-FDK-AAC-for-Android PKG_LICENSE:=Fraunhofer-FDK-AAC-for-Android
PKG_LICENSE_FILES:=NOTICE PKG_LICENSE_FILES:=NOTICE
PKG_SOURCE_URL=https://codeload.github.com/mstorsjo/fdk-aac/tar.gz/v$(PKG_VERSION)?
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
PKG_HASH:=6e6c7921713788e31df655911e1d42620b057180b00bf16874f5d630e1d5b9a2
PKG_FIXUP:=autoreconf PKG_FIXUP:=autoreconf
PKG_INSTALL:=1 PKG_INSTALL:=1
PKG_BUILD_PARALLEL:=1
PKG_CONFIG_DEPENDS:= CONFIG_FDK-AAC_OPTIMIZE_SPEED PKG_CONFIG_DEPENDS:= CONFIG_FDK-AAC_OPTIMIZE_SPEED
ifeq ($(BUILD_VARIANT),free)
PATCH_DIR:=./patches-free
endif
ifeq ($(CONFIG_FDK-AAC_OPTIMIZE_SPEED),y) ifeq ($(CONFIG_FDK-AAC_OPTIMIZE_SPEED),y)
TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS)) TARGET_CFLAGS := $(filter-out -O%,$(TARGET_CFLAGS))
TARGET_CFLAGS += $(TARGET_CFLAGS) -O2 -flto TARGET_CFLAGS += $(TARGET_CFLAGS) -O2 -flto
@ -31,25 +37,48 @@ endif
include $(INCLUDE_DIR)/package.mk include $(INCLUDE_DIR)/package.mk
define Package/fdk-aac
define Package/fdk-aac/Default
SECTION:=sound SECTION:=sound
CATEGORY:=Sound CATEGORY:=Sound
DEPENDS:=@BUILD_PATENTED
TITLE:=Fraunhofer FDK AAC Codec Library TITLE:=Fraunhofer FDK AAC Codec Library
URL:=https://sourceforge.net/projects/opencore-amr/ URL:=https://sourceforge.net/projects/opencore-amr/
endef endef
define Package/fdk-aac/description
define Package/fdk-aac/Default/description
Port of the Fraunhofer FDK AAC Codec Library for Android Port of the Fraunhofer FDK AAC Codec Library for Android
endef endef
define Package/fdk-aac/Default/config
source "$(SOURCE)/Config.in"
endef
define Package/fdk-aac
$(call Package/fdk-aac/Default)
DEPENDS:=@BUILD_PATENTED
VARIANT:=nonfree
endef
define Package/fdk-aac/description
$(call Package/fdk-aac/Default/description)
This is the full patent encumbered version.
endef
define Package/fdk-aac/config define Package/fdk-aac/config
source "$(SOURCE)/Config.in"
$(call Package/fdk-aac/Default/config)
endef endef
define Package/fdk-aac/install
$(INSTALL_DIR) $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfdk-aac.so* $(1)/usr/lib/
define Package/fdk-aac-free
$(call Package/fdk-aac/Default)
VARIANT:=free
endef
define Package/fdk-aac-free/description
$(call Package/fdk-aac/Default/description)
This is the free version that only supports LC-AAC.
endef
define Package/fdk-aac-free/config
$(call Package/fdk-aac/Default/config)
endef endef
define Build/InstallDev define Build/InstallDev
@ -61,4 +90,15 @@ define Build/InstallDev
$(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fdk-aac.pc $(1)/usr/lib/pkgconfig/ $(CP) $(PKG_INSTALL_DIR)/usr/lib/pkgconfig/fdk-aac.pc $(1)/usr/lib/pkgconfig/
endef endef
define Package/fdk-aac/install
$(INSTALL_DIR) $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfdk-aac.so* $(1)/usr/lib/
endef
define Package/fdk-aac-free/install
$(INSTALL_DIR) $(1)/usr/lib/
$(CP) $(PKG_INSTALL_DIR)/usr/lib/libfdk-aac.so* $(1)/usr/lib/
endef
$(eval $(call BuildPackage,fdk-aac)) $(eval $(call BuildPackage,fdk-aac))
$(eval $(call BuildPackage,fdk-aac-free))

+ 49625
- 0
sound/fdk-aac/patches-free/010-remove-sbr.patch
File diff suppressed because it is too large
View File


+ 10233
- 0
sound/fdk-aac/patches-free/020-remove-hcx-rvlc-error.patch
File diff suppressed because it is too large
View File


+ 29035
- 0
sound/fdk-aac/patches-free/030-remove-mp3-surround.patch
File diff suppressed because it is too large
View File


+ 9569
- 0
sound/fdk-aac/patches-free/040-remove-usac.patch
File diff suppressed because it is too large
View File


Loading…
Cancel
Save