diff options
author | Hye-Shik Chang <perky@FreeBSD.org> | 2002-06-25 19:19:54 +0000 |
---|---|---|
committer | Hye-Shik Chang <perky@FreeBSD.org> | 2002-06-25 19:19:54 +0000 |
commit | 33085970800ef45d6ab8b05aecb75db75fe5de8f (patch) | |
tree | 55e43b60dc76acef73aad39367c657f8b3741f59 /lang/spl | |
parent | a154163cfc3fbed5b12667877e6d963d6d186fa3 (diff) | |
download | ports-33085970800ef45d6ab8b05aecb75db75fe5de8f.tar.gz ports-33085970800ef45d6ab8b05aecb75db75fe5de8f.zip |
Notes
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> |