2012-10-08 03:07:51 +02:00
|
|
|
# Created by: takefu <takefu@airport.fm>
|
2010-09-23 02:44:23 +02:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= libaacplus
|
2011-01-24 16:32:00 +01:00
|
|
|
PORTVERSION= 2.0.2
|
2014-08-31 18:36:22 +02:00
|
|
|
PORTREVISION= 6
|
2010-09-23 02:44:23 +02:00
|
|
|
CATEGORIES= audio
|
2012-11-30 04:04:12 +01:00
|
|
|
MASTER_SITES= http://media.wnet.ua/~tipok/aacplus/:site1\
|
2011-09-16 19:57:58 +02:00
|
|
|
ftp://ftp.3gpp.org/Specs/archive/26_series/26.410/:site2\
|
2010-09-23 02:44:23 +02:00
|
|
|
http://www.3gpp.org/ftp/Specs/archive/26_series/26.410/:site2
|
|
|
|
DISTFILES= ${PORTNAME}-${PORTVERSION}${EXTRACT_SUFX}:site1\
|
|
|
|
26410-800.zip:site2
|
|
|
|
|
|
|
|
MAINTAINER= takefu@airport.fm
|
|
|
|
COMMENT= HE-AAC+ Codec as Shared Library
|
|
|
|
|
2014-02-24 20:33:01 +01:00
|
|
|
LICENSE= libaacplus
|
|
|
|
LICENSE_NAME= 3GPP
|
|
|
|
LICENSE_TEXT= ${RESTRICTED}
|
|
|
|
LICENSE_PERMS= no-dist-mirror no-dist-sell no-pkg-mirror no-pkg-sell auto-accept
|
|
|
|
|
2010-09-23 02:44:23 +02:00
|
|
|
RESTRICTED= unclear legal status, probably need licenses from 3GPP, Via Licensing and Coding Technologies
|
|
|
|
|
|
|
|
CONFLICTS= aacplusenc-0*
|
|
|
|
|
2012-08-06 12:33:28 +02:00
|
|
|
USE_CSTD= gnu89
|
2014-08-25 13:05:50 +02:00
|
|
|
USES= pathfix pkgconfig libtool
|
2010-09-23 02:44:23 +02:00
|
|
|
USE_LDCONFIG= yes
|
2014-02-24 20:33:01 +01:00
|
|
|
USE_AUTOTOOLS= libtoolize aclocal autoheader automake
|
2013-09-09 12:09:00 +02:00
|
|
|
PATHFIX_MAKEFILEIN= Makefile.am
|
2010-09-23 02:44:23 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2012-02-06 19:23:38 +01:00
|
|
|
MAKE_JOBS_UNSAFE= yes
|
2014-05-12 00:50:31 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2010-09-23 02:44:23 +02:00
|
|
|
|
|
|
|
AUTOMAKE_ARGS= --add-missing
|
|
|
|
|
2012-10-08 03:07:51 +02:00
|
|
|
OPTIONS_DEFINE= FFTW3
|
2013-09-09 12:09:00 +02:00
|
|
|
OPTIONS_DEFAULT=FFTW3
|
2013-11-01 14:11:59 +01:00
|
|
|
|
|
|
|
FFTW3_DESC= Use FFTW3 library for performance
|
2010-09-23 02:44:23 +02:00
|
|
|
|
|
|
|
.include <bsd.port.options.mk>
|
|
|
|
|
2012-10-08 03:07:51 +02:00
|
|
|
.if ${PORT_OPTIONS:MFFTW3}
|
2013-12-11 15:35:36 +01:00
|
|
|
LIB_DEPENDS+= libfftw3.so:${PORTSDIR}/math/fftw3 \
|
|
|
|
libfftw3f.so:${PORTSDIR}/math/fftw3-float
|
2013-09-09 12:09:00 +02:00
|
|
|
CONFIGURE_ARGS+=--with-fftw3=yes --with-fftw3-prefix=${LOCALBASE}
|
2010-09-23 02:44:23 +02:00
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-fftw3=no
|
|
|
|
.endif
|
|
|
|
|
|
|
|
pre-configure:
|
2011-01-24 16:32:00 +01:00
|
|
|
@${CP} ${DISTDIR}/26410-800.zip ${WRKSRC}/src
|
2013-11-01 14:11:59 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,@includedir@\/aacplus,@prefix@\/include,' \
|
|
|
|
${WRKSRC}/aacplus.pc.in
|
|
|
|
@${REINPLACE_CMD} -e 's,\/aacplus\.h,\/libaacplus\/aacplus\.h,' \
|
|
|
|
${WRKSRC}/aacplus.spec.in
|
2014-02-24 20:33:01 +01:00
|
|
|
@${REINPLACE_CMD} -e 's,INCLUDES,AM_CPPFLAGS,'\
|
|
|
|
${WRKSRC}/frontend/Makefile.am ${WRKSRC}/src/Makefile.am
|
2010-09-23 02:44:23 +02:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|