@ -7,7 +7,7 @@ include $(TOPDIR)/rules.mk
PKG_NAME := fdk-aac
PKG_NAME := fdk-aac
PKG_VERSION := 2.0.1
PKG_VERSION := 2.0.1
PKG_RELEASE := 1
PKG_RELEASE := 2
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE := $( PKG_NAME) -$( PKG_VERSION) .tar.gz
PKG_SOURCE_URL := https://codeload.github.com/mstorsjo/fdk-aac/tar.gz/v$( PKG_VERSION) ?
PKG_SOURCE_URL := https://codeload.github.com/mstorsjo/fdk-aac/tar.gz/v$( PKG_VERSION) ?
@ -23,63 +23,34 @@ PKG_BUILD_PARALLEL:=1
PKG_CONFIG_DEPENDS := CONFIG_FDK-AAC_OPTIMIZE_SPEED
PKG_CONFIG_DEPENDS := CONFIG_FDK-AAC_OPTIMIZE_SPEED
i f e q ( $( BUILD_VARIANT ) , f r e e )
i f e q ( $( CONFIG_BUILD_PATENTED ) , y )
PATCH_DIR := ./patches-free
PATCH_DIR := ./patches-free
e n d i f
e n d i f
i f e q ( $( CONFIG_FDK -AAC_OPTIMIZE_SPEED ) , y )
TARGET_CFLAGS := $( filter-out -O%,$( TARGET_CFLAGS) )
TARGET_CFLAGS += $( TARGET_CFLAGS) -O2 -flto
TARGET_CXXFLAGS := $( filter-out -O%,$( TARGET_CXXFLAGS) )
TARGET_CXXFLAGS += $( TARGET_CXXFLAGS) -O2 -flto
TARGET_LDFLAGS += $( TARGET_LDFLAGS) -flto
e n d i f
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
i n c l u d e $( INCLUDE_DIR ) / p a c k a g e . m k
d e f i n e P a c k a g e / f d k - a a c / D e f a u l t
d e f i n e P a c k a g e / f d k - a a c
SECTION:= sound
SECTION:= sound
CATEGORY:= Sound
CATEGORY:= Sound
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/
e n d e f
e n d e f
d e f i n e P a c k a g e / f d k - a a c / D e f a u l t / d e s c r i p t i o n
Port of the Fraunhofer FDK AAC Codec Library for Android
e n d e f
d e f i n e P a c k a g e / f d k - a a c / D e f a u l t / c o n f i g
d e f i n e P a c k a g e / f d k - a a c / c o n f i g
source " $( SOURCE) /Config.in "
source " $( SOURCE) /Config.in "
e n d e f
e n d e f
d e f i n e P a c k a g e / f d k - a a c
$( call Package/fdk-aac/Default)
DEPENDS:= @BUILD_PATENTED
VARIANT:= nonfree
e n d e f
d e f i n e P a c k a g e / f d k - a a c / d e s c r i p t i o n
d e f i n e P a c k a g e / f d k - a a c / d e s c r i p t i o n
$( call Package/fdk-aac/Default/description)
This is the full patent encumbered version.
e n d e f
d e f i n e P a c k a g e / f d k - a a c / c o n f i g
$( call Package/fdk-aac/Default/config)
e n d e f
d e f i n e P a c k a g e / f d k - a a c - f r e e
$( call Package/fdk-aac/Default)
VARIANT:= free
e n d e f
d e f i n e P a c k a g e / f d k - a a c - f r e e / d e s c r i p t i o n
$( call Package/fdk-aac/Default/description)
This is the free version that only supports LC-AAC.
Port of the Fraunhofer FDK AAC Codec Library for Android
e n d e f
e n d e f
d e f i n e P a c k a g e / f d k - a a c - f r e e / c o n f i g
$( call Package/fdk-aac/Default/config)
e n d e f
i f e q ( $( CONFIG_FDK -AAC_OPTIMIZE_SPEED ) , y )
TARGET_CFLAGS := $( filter-out -O%,$( TARGET_CFLAGS) )
TARGET_CFLAGS += $( TARGET_CFLAGS) -O2 -flto
TARGET_CXXFLAGS := $( filter-out -O%,$( TARGET_CXXFLAGS) )
TARGET_CXXFLAGS += $( TARGET_CXXFLAGS) -O2 -flto
TARGET_LDFLAGS += $( TARGET_LDFLAGS) -flto
e n d i f
d e f i n e B u i l d / I n s t a l l D e v
d e f i n e B u i l d / I n s t a l l D e v
$( INSTALL_DIR) $( 1) /usr/include
$( INSTALL_DIR) $( 1) /usr/include
@ -95,10 +66,4 @@ define Package/fdk-aac/install
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libfdk-aac.so* $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libfdk-aac.so* $( 1) /usr/lib/
e n d e f
e n d e f
d e f i n e P a c k a g e / f d k - a a c - f r e e / i n s t a l l
$( INSTALL_DIR) $( 1) /usr/lib/
$( CP) $( PKG_INSTALL_DIR) /usr/lib/libfdk-aac.so* $( 1) /usr/lib/
e n d e f
$( eval $ ( call BuildPackage ,fdk -aac ) )
$( eval $ ( call BuildPackage ,fdk -aac ) )
$( eval $ ( call BuildPackage ,fdk -aac -free ) )