1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00

USE_REINPLACE

This commit is contained in:
Mario Sergio Fujikawa Ferreira 2002-07-03 17:33:24 +00:00
parent 52670a55cf
commit 3eae406ceb
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=62386
4 changed files with 14 additions and 10 deletions

View File

@ -15,6 +15,7 @@ DISTNAME= a52dec-${PORTVERSION:S/.b/b/}
MAINTAINER= lioux@FreeBSD.org
USE_GMAKE= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-oss --enable-shared
USE_LIBTOOL= yes
@ -48,11 +49,11 @@ pre-everything::
post-patch:
.ifndef(WITH_OPTIMIZED_CFLAGS)
@${PERL} -pi.orig -e 's!-O3!${CFLAGS}!;s!-mcpu=[^"]+"!"!' \
@${REINPLACE_CMD} -E -e 's!-O3!${CFLAGS}!' -e 's!-mcpu=[^"]+"!"!' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
.endif
.ifndef(WITHOUT_DJBFFT)
@${PERL} -pi -e 's|(fftc4.h)|djbfft/\1|' ${WRKSRC}/liba52/imdct.c
@${REINPLACE_CMD} -E -e 's|(fftc4.h)|djbfft/\1|' ${WRKSRC}/liba52/imdct.c
.endif
post-configure:

View File

@ -15,6 +15,7 @@ DISTNAME= a52dec-${PORTVERSION:S/.b/b/}
MAINTAINER= lioux@FreeBSD.org
USE_GMAKE= yes
USE_REINPLACE= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-oss --enable-shared
USE_LIBTOOL= yes
@ -48,11 +49,11 @@ pre-everything::
post-patch:
.ifndef(WITH_OPTIMIZED_CFLAGS)
@${PERL} -pi.orig -e 's!-O3!${CFLAGS}!;s!-mcpu=[^"]+"!"!' \
@${REINPLACE_CMD} -E -e 's!-O3!${CFLAGS}!' -e 's!-mcpu=[^"]+"!"!' \
${CONFIGURE_WRKSRC}/${CONFIGURE_SCRIPT}
.endif
.ifndef(WITHOUT_DJBFFT)
@${PERL} -pi -e 's|(fftc4.h)|djbfft/\1|' ${WRKSRC}/liba52/imdct.c
@${REINPLACE_CMD} -E -e 's|(fftc4.h)|djbfft/\1|' ${WRKSRC}/liba52/imdct.c
.endif
post-configure:

View File

@ -16,6 +16,7 @@ EXTRACT_SUFX= .tgz
MAINTAINER= lioux@FreeBSD.org
USE_GMAKE= yes
USE_REINPLACE= yes
ALL_TARGET= ${PORTNAME}
DOC_FILES= CHANGES COPYING FUTURE GPL HISTORY README README.VBR
@ -35,14 +36,14 @@ pre-everything::
post-patch:
.ifndef(WITH_OPTIMIZED_CFLAGS)
@${PERL} -pi -e 's|\$$\(TWEAKS\)||' \
@${REINPLACE_CMD} -E -e 's|\$$\(TWEAKS\)||' \
${WRKSRC}/Makefile
.endif
.ifndef(WITH_PROFILED)
@${PERL} -pi -e 's|\$$\(PG\)||' \
@${REINPLACE_CMD} -E -e 's|\$$\(PG\)||' \
${WRKSRC}/Makefile
.endif
@${PERL} -pi.orig -e \
@${REINPLACE_CMD} -E -e \
's@^CC\s.+|\$$\((ARCH|DMALLOCLIB|DMAL|OPTIM|WARNING)\)@@g' \
${WRKSRC}/Makefile

View File

@ -14,6 +14,7 @@ DISTNAME= ${PORTNAME}-${PORTVERSION:C/\.(.)$/\1/}
MAINTAINER= lioux@FreeBSD.org
USE_REINPLACE= yes
USE_XLIB= yes
USE_MOTIF= yes
GNU_CONFIGURE= yes
@ -22,9 +23,9 @@ CONFIGURE_ARGS= -with-x
INSTALL_DIR= ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755
post-patch:
@${PERL} -pi -e 's|/usr/local/lib/electric/|${PREFIX}/share/electric/lib/|; \
@${REINPLACE_CMD} -e 's|/usr/local/lib/electric/|${PREFIX}/share/electric/lib/|; \
s|/usr/local/|${PREFIX}/|' ${WRKSRC}/src/include/config.h
@${PERL} -pi -e 's|/lib/electric|/share/electric/lib|' ${WRKSRC}/Makefile.in
@${PERL} -pi -e 's|/usr/X11R6/|${X11BASE}/|' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|/lib/electric|/share/electric/lib|' ${WRKSRC}/Makefile.in
@${REINPLACE_CMD} -e 's|/usr/X11R6/|${X11BASE}/|' ${WRKSRC}/configure
.include <bsd.port.mk>