2007-07-29 15:51:08 +00:00
|
|
|
# New ports collection makefile for: aacplusenc
|
|
|
|
# Date created: 28 July 2007
|
|
|
|
# Whom: Pav Lucistnik <pav@FreeBSD.org>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
#
|
|
|
|
|
|
|
|
PORTNAME= aacplusenc
|
2012-01-26 13:28:33 +00:00
|
|
|
PORTVERSION= 0.17.5
|
2007-07-29 15:51:08 +00:00
|
|
|
CATEGORIES= audio
|
2012-01-26 13:28:33 +00:00
|
|
|
MASTER_SITES= http://ppa.launchpad.net/teknoraver/ppa/ubuntu/pool/main/a/aacplusenc/
|
|
|
|
DISTFILES= ${DISTNAME:S,-,_,}${EXTRACT_SUFX}
|
2007-07-29 15:51:08 +00:00
|
|
|
|
|
|
|
MAINTAINER= pav@FreeBSD.org
|
2012-01-26 13:28:33 +00:00
|
|
|
COMMENT= An aacPlus v2 command-line encoder
|
2007-07-29 15:51:08 +00:00
|
|
|
|
|
|
|
USE_GMAKE= yes
|
2007-10-25 08:23:40 +00:00
|
|
|
|
2007-07-29 15:51:08 +00:00
|
|
|
RESTRICTED= unclear legal status, probably need licenses from 3GPP, Via Licensing and Coding Technologies
|
|
|
|
|
2012-06-04 12:06:57 +00:00
|
|
|
CONFLICTS= libaacplus-[0-9]*
|
|
|
|
|
2007-07-29 15:51:08 +00:00
|
|
|
PLIST_FILES= bin/aacplusenc
|
|
|
|
|
2007-12-14 10:28:04 +00:00
|
|
|
.if defined(WITHOUT_FFTW3)
|
|
|
|
MAKE_ARGS+= NOFFTW3=1
|
|
|
|
.else
|
2011-10-17 10:08:33 +00:00
|
|
|
LIB_DEPENDS+= fftw3f:${PORTSDIR}/math/fftw3-float \
|
|
|
|
fftw3:${PORTSDIR}/math/fftw3
|
2007-12-14 10:28:04 +00:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
|
|
.endif
|
|
|
|
|
2012-01-26 13:28:33 +00:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
|
|
|
|
2007-07-29 15:51:08 +00:00
|
|
|
post-patch:
|
2009-06-01 14:03:12 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|-O3 -ftree-vectorize|${CFLAGS}| ; s|-lfftw3f|-L${LOCALBASE}/lib -lfftw3f| ; s|INSTDIR=.*|INSTDIR=${PREFIX}|' ${WRKSRC}/Makefile
|
2008-01-30 16:53:32 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|<endian.h>|<sys/endian.h>| ; s|__BYTE|_BYTE|' ${WRKSRC}/au_channel.h
|
2012-01-26 13:28:33 +00:00
|
|
|
@${REINPLACE_CMD} -e 's|gcc|${CC}|' ${WRKSRC}/configure
|
2007-07-29 15:51:08 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|