diff options
author | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2002-05-15 22:54:33 +0000 |
---|---|---|
committer | Mario Sergio Fujikawa Ferreira <lioux@FreeBSD.org> | 2002-05-15 22:54:33 +0000 |
commit | 2df6675f8553ff780e5c85d0c78af328792b1ab1 (patch) | |
tree | 2d63477e061ca49e195c74fb26981000fd678683 /audio | |
parent | Add lgrind, which contains some non-free code written by Van Jacobson. (diff) |
o Use djbfft optimized FFT routines unless WITHOUT_DJBFFT is defined
o Bump PORTREVISION
Notes
Notes:
svn path=/head/; revision=59209
Diffstat (limited to 'audio')
-rw-r--r-- | audio/liba52-devel/Makefile | 18 | ||||
-rw-r--r-- | audio/liba52/Makefile | 18 |
2 files changed, 36 insertions, 0 deletions
diff --git a/audio/liba52-devel/Makefile b/audio/liba52-devel/Makefile index 8e26cabe05b5..94e848dafdab 100644 --- a/audio/liba52-devel/Makefile +++ b/audio/liba52-devel/Makefile @@ -7,6 +7,7 @@ PORTNAME= liba52 PORTVERSION= 0.7.3 +PORTREVISION= 1 CATEGORIES= audio MASTER_SITES= http://liba52.sourceforge.net/files/ DISTNAME= a52dec-${PORTVERSION:S/.b/b/} @@ -18,6 +19,14 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-oss --enable-shared USE_LIBTOOL= yes +.ifndef(WITHOUT_DJBFFT) +BUILD_DEPENDS+= ${LOCALBASE}/lib/libdjbfft.a:${PORTSDIR}/math/djbfft + +CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ + LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" +CONFIGURE_ARGS+= --enable-djbfft +.endif + MAN1= a52dec.1 extract_a52.1 HEADER_FILES= liba52/a52_internal.h @@ -29,12 +38,21 @@ pre-everything:: @${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) @${PERL} -pi.orig -e 's!-O3!${CFLAGS}!;s!-mcpu=[^"]+"!"!' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} .endif +.ifndef(WITHOUT_DJBFFT) + @${PERL} -pi -e 's|(fftc4.h)|djbfft/\1|' ${WRKSRC}/liba52/imdct.c +.endif post-configure: @${LN} -sf ${LOCALBASE}/bin/libtool ${WRKSRC} diff --git a/audio/liba52/Makefile b/audio/liba52/Makefile index 8e26cabe05b5..94e848dafdab 100644 --- a/audio/liba52/Makefile +++ b/audio/liba52/Makefile @@ -7,6 +7,7 @@ PORTNAME= liba52 PORTVERSION= 0.7.3 +PORTREVISION= 1 CATEGORIES= audio MASTER_SITES= http://liba52.sourceforge.net/files/ DISTNAME= a52dec-${PORTVERSION:S/.b/b/} @@ -18,6 +19,14 @@ GNU_CONFIGURE= yes CONFIGURE_ARGS= --disable-oss --enable-shared USE_LIBTOOL= yes +.ifndef(WITHOUT_DJBFFT) +BUILD_DEPENDS+= ${LOCALBASE}/lib/libdjbfft.a:${PORTSDIR}/math/djbfft + +CONFIGURE_ENV+= CFLAGS="${CFLAGS} -I${LOCALBASE}/include" \ + LDFLAGS="${LDFLAGS} -L${LOCALBASE}/lib" +CONFIGURE_ARGS+= --enable-djbfft +.endif + MAN1= a52dec.1 extract_a52.1 HEADER_FILES= liba52/a52_internal.h @@ -29,12 +38,21 @@ pre-everything:: @${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) @${PERL} -pi.orig -e 's!-O3!${CFLAGS}!;s!-mcpu=[^"]+"!"!' \ ${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT} .endif +.ifndef(WITHOUT_DJBFFT) + @${PERL} -pi -e 's|(fftc4.h)|djbfft/\1|' ${WRKSRC}/liba52/imdct.c +.endif post-configure: @${LN} -sf ${LOCALBASE}/bin/libtool ${WRKSRC} |