1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-27 05:10:36 +00:00
freebsd-ports/lang/spl/Makefile

37 lines
930 B
Makefile
Raw Normal View History

# 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@FreeBSD.org
2003-02-25 06:25:35 +00:00
COMMENT= The Shakespeare programming language
USE_BISON= yes
USE_GMAKE= yes
USE_REINPLACE= yes
ALL_EXAMPLES= Makefile fibonacci.spl fibonacci2.spl guess.spl hello.spl \
primes.spl reverse.spl shakesbeer.spl
post-patch:
@for f in ${WRKSRC}/Makefile ${WRKSRC}/examples/Makefile; do \
${REINPLACE_CMD} -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
post-install:
.if !defined(NOPORTDOCS)
${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${INSTALL_DATA} ${ALL_EXAMPLES} ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>