aboutsummaryrefslogtreecommitdiffstats
path: root/lang/spl
diff options
context:
space:
mode:
authorperky <perky@FreeBSD.org>2002-06-26 03:19:54 +0800
committerperky <perky@FreeBSD.org>2002-06-26 03:19:54 +0800
commit45c4096ac3bafb84ac0896e90df7400532506572 (patch)
tree8f74e293967a39b9668314105c9c506695ed6145 /lang/spl
parent2b80a3a05aa67894c356407e1b02c9be1537834d (diff)
downloadfreebsd-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/Makefile14
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>