2002-03-02 22:40:17 +00:00
|
|
|
# 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
|
2004-02-04 05:21:48 +00:00
|
|
|
PORTREVISION= 1
|
2002-03-02 22:40:17 +00:00
|
|
|
CATEGORIES= lang
|
|
|
|
MASTER_SITES= http://shakespearelang.sourceforge.net/download/
|
|
|
|
|
2002-06-25 07:50:58 +00:00
|
|
|
MAINTAINER= perky@FreeBSD.org
|
2003-02-25 06:25:35 +00:00
|
|
|
COMMENT= The Shakespeare programming language
|
2002-03-02 22:40:17 +00:00
|
|
|
|
|
|
|
USE_BISON= yes
|
|
|
|
USE_GMAKE= yes
|
2002-06-25 19:19:54 +00:00
|
|
|
USE_REINPLACE= yes
|
2002-03-02 22:40:17 +00:00
|
|
|
|
|
|
|
ALL_EXAMPLES= Makefile fibonacci.spl fibonacci2.spl guess.spl hello.spl \
|
|
|
|
primes.spl reverse.spl shakesbeer.spl
|
|
|
|
|
|
|
|
post-patch:
|
2004-05-31 11:24:06 +00:00
|
|
|
.for f in . examples
|
|
|
|
${REINPLACE_CMD} -e 's,= gcc,?= gcc,' -e 's,^CCFLAGS.*,CFLAGS += -Wall,' \
|
|
|
|
-e 's,CCFLAGS,CFLAGS,g' ${WRKSRC}/${f}/Makefile
|
|
|
|
.endfor
|
2002-03-02 22:40:17 +00:00
|
|
|
|
2004-05-31 11:24:06 +00:00
|
|
|
do-install:
|
|
|
|
${TAR} -C ${WRKSRC}/spl -cf - . | ${TAR} -C ${PREFIX} -xf -
|
2002-03-02 22:40:17 +00:00
|
|
|
.if !defined(NOPORTDOCS)
|
|
|
|
${MKDIR} ${EXAMPLESDIR}
|
|
|
|
cd ${WRKSRC}/examples && ${INSTALL_DATA} ${ALL_EXAMPLES} ${EXAMPLESDIR}
|
|
|
|
.endif
|
|
|
|
|
2002-05-23 22:22:19 +00:00
|
|
|
.include <bsd.port.mk>
|