diff options
author | Patrick Li <pat@FreeBSD.org> | 2002-05-23 22:22:19 +0000 |
---|---|---|
committer | Patrick Li <pat@FreeBSD.org> | 2002-05-23 22:22:19 +0000 |
commit | 03f189ed5b5a5559e1a2ac5154ffbb0d247b086e (patch) | |
tree | a7d8311612999f81e004ab9fe53399cfe729f724 /lang/spl | |
parent | 52cc034e89ec1c9bb688c6b17513311efae31bb2 (diff) | |
download | ports-03f189ed5b5a5559e1a2ac5154ffbb0d247b086e.tar.gz ports-03f189ed5b5a5559e1a2ac5154ffbb0d247b086e.zip |
Notes
Diffstat (limited to 'lang/spl')
-rw-r--r-- | lang/spl/Makefile | 21 |
1 files changed, 6 insertions, 15 deletions
diff --git a/lang/spl/Makefile b/lang/spl/Makefile index 4212b5f2dc4f..0a0d4656caf6 100644 --- a/lang/spl/Makefile +++ b/lang/spl/Makefile @@ -15,30 +15,21 @@ 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,^SPLPATH =.*,SPLPATH =${PREFIX},g; \ - s, spl/, ${PREFIX}/,g;' \ + s,CCFLAGS,CFLAGS,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 -post-install: +do-install: + ${TAR} -C ${WRKSRC}/spl -cf- . | ${TAR} -C ${PREFIX} -xpf- .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.post.mk> +.include <bsd.port.mk> |