Changeset View
Changeset View
Standalone View
Standalone View
audio/libaacplus/Makefile
Show All 36 Lines | |||||
OPTIONS_DEFINE= FFTW3 | OPTIONS_DEFINE= FFTW3 | ||||
OPTIONS_DEFAULT=FFTW3 | OPTIONS_DEFAULT=FFTW3 | ||||
SRC26410= 26410-800.zip | SRC26410= 26410-800.zip | ||||
FFTW3_DESC= Use FFTW3 library for performance | FFTW3_DESC= Use FFTW3 library for performance | ||||
.include <bsd.port.options.mk> | FFTW3_LIB_DEPENDS= libfftw3.so:${PORTSDIR}/math/fftw3 \ | ||||
.if ${PORT_OPTIONS:MFFTW3} | |||||
LIB_DEPENDS+= libfftw3.so:${PORTSDIR}/math/fftw3 \ | |||||
libfftw3f.so:${PORTSDIR}/math/fftw3-float | libfftw3f.so:${PORTSDIR}/math/fftw3-float | ||||
CONFIGURE_ARGS+=--with-fftw3=yes --with-fftw3-prefix=${LOCALBASE} | FFTW3_CONFIGURE_ON= --with-fftw3=yes --with-fftw3-prefix=${LOCALBASE} | ||||
.else | FFTW3_CONFIGURE_OFF= --with-fftw3=no | ||||
CONFIGURE_ARGS+=--with-fftw3=no | |||||
.endif | |||||
pre-configure: | pre-configure: | ||||
@${CP} ${DISTDIR}/26410-800.zip ${WRKSRC}/src | @${CP} ${DISTDIR}/26410-800.zip ${WRKSRC}/src | ||||
@${REINPLACE_CMD} -e 's,@includedir@\/aacplus,@prefix@\/include,' \ | @${REINPLACE_CMD} -e 's,@includedir@\/aacplus,@prefix@\/include,' \ | ||||
${WRKSRC}/aacplus.pc.in | ${WRKSRC}/aacplus.pc.in | ||||
@${REINPLACE_CMD} -e 's,\/aacplus\.h,\/libaacplus\/aacplus\.h,' \ | @${REINPLACE_CMD} -e 's,\/aacplus\.h,\/libaacplus\/aacplus\.h,' \ | ||||
${WRKSRC}/aacplus.spec.in | ${WRKSRC}/aacplus.spec.in | ||||
@${REINPLACE_CMD} -e 's,INCLUDES,AM_CPPFLAGS,'\ | @${REINPLACE_CMD} -e 's,INCLUDES,AM_CPPFLAGS,'\ | ||||
${WRKSRC}/frontend/Makefile.am ${WRKSRC}/src/Makefile.am | ${WRKSRC}/frontend/Makefile.am ${WRKSRC}/src/Makefile.am | ||||
.include <bsd.port.mk> | .include <bsd.port.mk> |