svn commit: r378649 - head/audio/aacplusenc

Baptiste Daroussin bapt at FreeBSD.org
Sun Feb 8 12:41:50 UTC 2015


Author: bapt
Date: Sun Feb  8 12:41:49 2015
New Revision: 378649
URL: https://svnweb.freebsd.org/changeset/ports/378649
QAT: https://qat.redports.org/buildarchive/r378649/

Log:
  Make FFTW3 support proper options

Modified:
  head/audio/aacplusenc/Makefile

Modified: head/audio/aacplusenc/Makefile
==============================================================================
--- head/audio/aacplusenc/Makefile	Sun Feb  8 12:40:32 2015	(r378648)
+++ head/audio/aacplusenc/Makefile	Sun Feb  8 12:41:49 2015	(r378649)
@@ -13,6 +13,10 @@ COMMENT=	AacPlus v2 command-line encoder
 
 USES=		gmake
 
+OPTIONS_DEFINE=	FFTW3
+OPTIONS_DEFAULT=	FFTW3
+FFTW3_DESC=	Use FFTW3 library for performance
+
 RESTRICTED=	unclear legal status, probably need licenses from 3GPP, Via Licensing and Coding Technologies
 
 CONFLICTS=	libaacplus-[0-9]*
@@ -20,13 +24,10 @@ 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
+FFTW3_MAKE_ARGS_OFF=	NOFFTW3=1
+FFTW3_LIB_DEPENDS=	libfftw3f.so:${PORTSDIR}/math/fftw3-float \
+			libfftw3.so:${PORTSDIR}/math/fftw3
+FFTW3_CFLAGS=	-I${LOCALBASE}/include
 
 WRKSRC=		${WRKDIR}/${PORTNAME}
 


More information about the svn-ports-all mailing list