diff options
author | pat <pat@FreeBSD.org> | 2002-05-23 08:32:04 +0800 |
---|---|---|
committer | pat <pat@FreeBSD.org> | 2002-05-23 08:32:04 +0800 |
commit | ccf69d9370f1b396c50c57421c2d6633769fc944 (patch) | |
tree | 37fc7529631cbcd2c3a85c29acc1e32a3a3b58e7 /lang/spl | |
parent | d4a41cc316fff92f393d9f66a4121809b2ecbb51 (diff) | |
download | freebsd-ports-gnome-ccf69d9370f1b396c50c57421c2d6633769fc944.tar.gz freebsd-ports-gnome-ccf69d9370f1b396c50c57421c2d6633769fc944.tar.zst freebsd-ports-gnome-ccf69d9370f1b396c50c57421c2d6633769fc944.zip |
Fix ports for building with -current without perl
PR: 38359
Submitted by: maintainer
Diffstat (limited to 'lang/spl')
-rw-r--r-- | lang/spl/Makefile | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/lang/spl/Makefile b/lang/spl/Makefile index 0a0d4656caf6..4212b5f2dc4f 100644 --- a/lang/spl/Makefile +++ b/lang/spl/Makefile @@ -15,21 +15,30 @@ MAINTAINER= perky@fallin.lv USE_BISON= yes USE_GMAKE= yes +ALL_TARGET= spl2c libspl.a ALL_EXAMPLES= Makefile fibonacci.spl fibonacci2.spl guess.spl hello.spl \ primes.spl reverse.spl shakesbeer.spl +.include <bsd.port.pre.mk> + post-patch: +.if ${OSVERSION} < 500036 @${PERL} -pi -e 's,= gcc,?= gcc,; s,^CCFLAGS.*,CFLAGS += -Wall,; \ - s,CCFLAGS,CFLAGS,g' \ + s,CCFLAGS,CFLAGS,g; s,^SPLPATH =.*,SPLPATH =${PREFIX},g; \ + s, spl/, ${PREFIX}/,g;' \ ${WRKSRC}/Makefile ${WRKSRC}/examples/Makefile +.else + @for f in ${WRKSRC}/Makefile ${WRKSRC}/examples/Makefile; do \ + ${SED} -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 +.endif -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> +.include <bsd.port.post.mk> |