aboutsummaryrefslogtreecommitdiff
path: root/lang/spl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/spl/Makefile')
-rw-r--r--lang/spl/Makefile21
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>