diff options
author | pat <pat@FreeBSD.org> | 2002-05-24 06:22:19 +0800 |
---|---|---|
committer | pat <pat@FreeBSD.org> | 2002-05-24 06:22:19 +0800 |
commit | c54deb27de512ced04f48f48a6668977ece0ba70 (patch) | |
tree | 98f1cfa3d42d9e110ef8367f90d94ae0e31e508a /lang/spl | |
parent | 1867be1cca9ad1c85464c55c45879a81062459e0 (diff) | |
download | freebsd-ports-gnome-c54deb27de512ced04f48f48a6668977ece0ba70.tar.gz freebsd-ports-gnome-c54deb27de512ced04f48f48a6668977ece0ba70.tar.zst freebsd-ports-gnome-c54deb27de512ced04f48f48a6668977ece0ba70.zip |
back out commit made comparing OSVERSION and use sed(1) to workaround perl
on current issue. gotta back it out sooner or later.
/me puts on pointy hat
Requested by: many
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> |