summaryrefslogtreecommitdiffstats
path: root/audio/liba52/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'audio/liba52/Makefile')
-rw-r--r--audio/liba52/Makefile9
1 files changed, 2 insertions, 7 deletions
diff --git a/audio/liba52/Makefile b/audio/liba52/Makefile
index 973b6ae..6782b3c 100644
--- a/audio/liba52/Makefile
+++ b/audio/liba52/Makefile
@@ -28,22 +28,17 @@ DJBFFT_CFLAGS= -I${LOCALBASE}/include
DJBFFT_LDFLAGS= -L${LOCALBASE}/lib
DJBFFT_CONFIGURE_ON= --enable-djbfft
-.include <bsd.port.options.mk>
-
CFLAGS_aarch64= -fPIC
CFLAGS_amd64= -fPIC
CFLAGS_powerpc= -fPIC
HEADER_FILES= liba52/a52_internal.h
-post-patch:
-.if ! ${PORT_OPTIONS:MOPTIMIZED_CFLAGS}
+post-patch-OPTIMIZED_CFLAGS-off:
@${REINPLACE_CMD} -E -e 's!-O3!${CFLAGS}!' -e 's!-mcpu=[^"]+"!"!' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
-.endif
-.if ${PORT_OPTIONS:MDJBFFT}
+post-patch-DJBFFT-on:
@${REINPLACE_CMD} -E -e 's|(fftc4.h)|djbfft/\1|' ${WRKSRC}/liba52/imdct.c
-.endif
post-install:
${MKDIR} ${STAGEDIR}${DOCSDIR}
OpenPOWER on IntegriCloud