summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authorHye-Shik Chang <perky@FreeBSD.org>2002-06-25 19:19:54 +0000
committerHye-Shik Chang <perky@FreeBSD.org>2002-06-25 19:19:54 +0000
commit33085970800ef45d6ab8b05aecb75db75fe5de8f (patch)
tree55e43b60dc76acef73aad39367c657f8b3741f59 /lang
parentupgrade to 0.26 (diff)
Use REINPLACE_CMD as well as USE_REINPLACE
Notes
Notes: svn path=/head/; revision=61967
Diffstat (limited to 'lang')
-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>