1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-26 05:02:18 +00:00
freebsd-ports/audio/aacplusenc/Makefile
Tijl Coosemans 4bdd97e324 math/fftw3:
- Add USES=libtool and bump dependent ports
- Add INSTALL_TARGET=install-strip
- Remove PTHREAD_CFLAGS and PTHREAD_LIBS
- Use MAKE_CMD
2014-08-31 16:36:22 +00:00

39 lines
1.1 KiB
Makefile

# Created by: Pav Lucistnik <pav@FreeBSD.org>
# $FreeBSD$
PORTNAME= aacplusenc
PORTVERSION= 0.17.5
PORTREVISION= 1
CATEGORIES= audio
MASTER_SITES= http://ppa.launchpad.net/teknoraver/ppa/ubuntu/pool/main/a/aacplusenc/
DISTFILES= ${DISTNAME:S,-,_,}${EXTRACT_SUFX}
MAINTAINER= ports@FreeBSD.org
COMMENT= AacPlus v2 command-line encoder
USES= gmake
RESTRICTED= unclear legal status, probably need licenses from 3GPP, Via Licensing and Coding Technologies
CONFLICTS= libaacplus-[0-9]*
PLIST_FILES= bin/aacplusenc
MAKE_ARGS+= INSTDIR=${STAGEDIR}${PREFIX}
.if defined(WITHOUT_FFTW3)
MAKE_ARGS+= NOFFTW3=1
.else
LIB_DEPENDS+= libfftw3f.so:${PORTSDIR}/math/fftw3-float \
libfftw3.so:${PORTSDIR}/math/fftw3
CFLAGS+= -I${LOCALBASE}/include
.endif
WRKSRC= ${WRKDIR}/${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e 's|-O3 -ftree-vectorize|${CFLAGS}| ; s|-lfftw3f|-L${LOCALBASE}/lib -lfftw3f| ; s|INSTDIR=.*|INSTDIR=${PREFIX}|' ${WRKSRC}/Makefile
@${REINPLACE_CMD} -e 's|<endian.h>|<sys/endian.h>| ; s|__BYTE|_BYTE|' ${WRKSRC}/au_channel.h
@${REINPLACE_CMD} -e 's|gcc|${CC}|' ${WRKSRC}/configure
.include <bsd.port.mk>