Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 8 Feb 2015 12:41:49 +0000 (UTC)
From:      Baptiste Daroussin <bapt@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r378649 - head/audio/aacplusenc
Message-ID:  <201502081241.t18CfnLt047561@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
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}
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502081241.t18CfnLt047561>