diff options
author | perky <perky@FreeBSD.org> | 2002-06-26 03:19:54 +0800 |
---|---|---|
committer | perky <perky@FreeBSD.org> | 2002-06-26 03:19:54 +0800 |
commit | 45c4096ac3bafb84ac0896e90df7400532506572 (patch) | |
tree | 8f74e293967a39b9668314105c9c506695ed6145 /lang/spl | |
parent | 2b80a3a05aa67894c356407e1b02c9be1537834d (diff) | |
download | freebsd-ports-gnome-45c4096ac3bafb84ac0896e90df7400532506572.tar.gz freebsd-ports-gnome-45c4096ac3bafb84ac0896e90df7400532506572.tar.zst freebsd-ports-gnome-45c4096ac3bafb84ac0896e90df7400532506572.zip |
Use REINPLACE_CMD as well as USE_REINPLACE
Diffstat (limited to 'lang/spl')
-rw-r--r-- | lang/spl/Makefile | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lang/spl/Makefile b/lang/spl/Makefile index 1e889d65892f..78e5772c34cb 100644 --- a/lang/spl/Makefile +++ b/lang/spl/Makefile @@ -14,22 +14,22 @@ MAINTAINER= perky@FreeBSD.org USE_BISON= yes USE_GMAKE= yes +USE_REINPLACE= yes ALL_EXAMPLES= Makefile fibonacci.spl fibonacci2.spl guess.spl hello.spl \ primes.spl reverse.spl shakesbeer.spl post-patch: - @${PERL} -pi -e 's,= gcc,?= gcc,; s,^CCFLAGS.*,CFLAGS += -Wall,; \ - s,CCFLAGS,CFLAGS,g' \ - ${WRKSRC}/Makefile ${WRKSRC}/examples/Makefile + @for f in ${WRKSRC}/Makefile ${WRKSRC}/examples/Makefile; do \ + ${REINPLACE_CMD} -i "" -e 's,= gcc,?= gcc,' -e 's,^CCFLAGS.*,CFLAGS += -Wall,' \ + -e 's,CCFLAGS,CFLAGS,g' -e 's,^SPLPATH =.*,SPLPATH =${PREFIX},g' \ + -e 's, spl/, ${PREFIX}/,g' $$f; \ + done -do-install: - ${TAR} -C ${WRKSRC}/spl -cf- . | ${TAR} -C ${PREFIX} -xpf- +post-install: .if !defined(NOPORTDOCS) ${MKDIR} ${EXAMPLESDIR} cd ${WRKSRC}/examples && ${INSTALL_DATA} ${ALL_EXAMPLES} ${EXAMPLESDIR} - @${PERL} -pi -e 's,^SPLPATH =.*,SPLPATH =${PREFIX},g' \ - ${EXAMPLESDIR}/Makefile .endif .include <bsd.port.mk> |