summaryrefslogtreecommitdiffstats
path: root/lang/spl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'lang/spl/Makefile')
-rw-r--r--lang/spl/Makefile35
1 files changed, 35 insertions, 0 deletions
diff --git a/lang/spl/Makefile b/lang/spl/Makefile
new file mode 100644
index 0000000..0a0d465
--- /dev/null
+++ b/lang/spl/Makefile
@@ -0,0 +1,35 @@
+# New ports collection makefile for: spl
+# Date created: 6 September 2001
+# Whom: Hye-Shik Chang <perky@fallin.lv>
+#
+# $FreeBSD$
+#
+
+PORTNAME= spl
+PORTVERSION= 1.2.1
+CATEGORIES= lang
+MASTER_SITES= http://shakespearelang.sourceforge.net/download/
+
+MAINTAINER= perky@fallin.lv
+
+USE_BISON= yes
+USE_GMAKE= 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
+
+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.mk>
OpenPOWER on IntegriCloud