diff options
author | bapt <bapt@FreeBSD.org> | 2013-06-15 06:38:23 +0800 |
---|---|---|
committer | bapt <bapt@FreeBSD.org> | 2013-06-15 06:38:23 +0800 |
commit | 8f2ad5681a9252be770bca88f1ecff1e6128f1b4 (patch) | |
tree | 722baeec937ef9f503a08f361d72f767b6af604a /audio/liba52 | |
parent | 5dc1a7cfea9d84d3d385efb2f927d86a92d2d238 (diff) | |
download | freebsd-ports-gnome-8f2ad5681a9252be770bca88f1ecff1e6128f1b4.tar.gz freebsd-ports-gnome-8f2ad5681a9252be770bca88f1ecff1e6128f1b4.tar.zst freebsd-ports-gnome-8f2ad5681a9252be770bca88f1ecff1e6128f1b4.zip |
Convert from WITH to OPTIONS
Diffstat (limited to 'audio/liba52')
-rw-r--r-- | audio/liba52/Makefile | 42 |
1 files changed, 12 insertions, 30 deletions
diff --git a/audio/liba52/Makefile b/audio/liba52/Makefile index 51bb0b4d05ba..e10abac79edb 100644 --- a/audio/liba52/Makefile +++ b/audio/liba52/Makefile @@ -1,9 +1,5 @@ -# New ports collection makefile for: liba52 -# Date created: Tue Oct 16 10:43:56 BRST 2001 -# Whom: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> -# +# Created by: Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> # $FreeBSD$ -# PORTNAME= liba52 PORTVERSION= 0.7.4 @@ -13,7 +9,7 @@ MASTER_SITES= http://liba52.sourceforge.net/files/ DISTNAME= a52dec-${PORTVERSION:S/.b/b/} MAINTAINER= multimedia@FreeBSD.org -COMMENT= A free library for decoding ATSC A/52 streams, aka AC-3 +COMMENT= Free library for decoding ATSC A/52 streams, aka AC-3 LICENSE= GPLv2 LICENSE_FILE= ${WRKSRC}/COPYING @@ -25,14 +21,14 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-oss --enable-shared USE_LDCONFIG= yes -.if !defined(WITHOUT_DJBFFT) && !defined(PACKAGE_BUILDING) -BUILD_DEPENDS+= ${LOCALBASE}/lib/libdjbfft.a:${PORTSDIR}/math/djbfft -RUN_DEPENDS+= ${LOCALBASE}/lib/libdjbfft.a:${PORTSDIR}/math/djbfft +OPTIONS_DEFINE= DJBFFT OPTIMIZED_CFLAGS DOCS +DJBFFT_DESC= djb fft support -CFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib -CONFIGURE_ARGS+= --enable-djbfft -.endif +DJBFFT_BUILD_DEPENDS= ${LOCALBASE}/lib/libdjbfft.a:${PORTSDIR}/math/djbfft +DJBFFT_RUN_DEPENDS= ${LOCALBASE}/lib/libdjbfft.a:${PORTSDIR}/math/djbfft +DJBFFT_CFLAGS= -I${LOCALBASE}/include +DJBFFT_LDFLAGS= -L${LOCALBASE}/lib +DJBFFT_CONFIGURE_ON= --enable-djbfft .include <bsd.port.pre.mk> @@ -44,31 +40,17 @@ MAN1= a52dec.1 extract_a52.1 HEADER_FILES= liba52/a52_internal.h -pre-everything:: -.ifndef(WITH_OPTIMIZED_CFLAGS) - @${ECHO_MSG} ">>>" - @${ECHO_MSG} ">>> You can enable extra optimizations by defining WITH_OPTIMIZED_CFLAGS." - @${ECHO_MSG} ">>> For example, 'make WITH_OPTIMIZED_CFLAGS=yes'" - @${ECHO_MSG} ">>>" -.endif -.ifndef(WITHOUT_DJBFFT) - @${ECHO_MSG} '>>>' - @${ECHO_MSG} '>>> You can disable djbfft optimized FFT routines by defining WITHOUT_DJBFFT.' - @${ECHO_MSG} ">>> For example, 'make WITHOUT_DJBFFT=yes'" - @${ECHO_MSG} '>>>' -.endif - post-patch: -.ifndef(WITH_OPTIMIZED_CFLAGS) +.if ! ${PORT_OPTIONS:MOPTIMIZED_CFLAGS} @${REINPLACE_CMD} -E -e 's!-O3!${CFLAGS}!' -e 's!-mcpu=[^"]+"!"!' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} .endif -.ifndef(WITHOUT_DJBFFT) +.if ${PORT_OPTIONS:MDJBFFT} @${REINPLACE_CMD} -E -e 's|(fftc4.h)|djbfft/\1|' ${WRKSRC}/liba52/imdct.c .endif post-install: -.ifndef(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} @${MKDIR} ${DOCSDIR} @${INSTALL_DATA} ${WRKSRC}/doc/liba52.txt ${DOCSDIR} .endif |