1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-02 01:20:54 +00:00
freebsd-ports/lang/spl/Makefile
Ade Lovett dbd39ca660 Migration from bison 1.x to 2.x
PR:		117086
Tested by:	-exp runs
2007-10-17 10:13:01 +00:00

39 lines
1000 B
Makefile

# 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
PORTREVISION= 2
CATEGORIES= lang
MASTER_SITES= http://shakespearelang.sourceforge.net/download/
MAINTAINER= perky@FreeBSD.org
COMMENT= The Shakespeare programming language
USE_BISON= build
USE_GMAKE= yes
ALL_EXAMPLES= Makefile fibonacci.spl fibonacci2.spl guess.spl hello.spl \
primes.spl reverse.spl shakesbeer.spl
post-patch:
.for f in . examples
${REINPLACE_CMD} -e 's,= gcc,?= gcc,' -e 's,^CCFLAGS.*,CFLAGS += -Wall,' \
-e 's,CCFLAGS,CFLAGS,g' ${WRKSRC}/${f}/Makefile
.endfor
${REINPLACE_CMD} -e 's,\(#define STRING_LENGTH\).*,\1 25600,g' \
-e 's,free(,//free(,g' ${WRKSRC}/makescanner.c
do-install:
${TAR} -C ${WRKSRC}/spl -cf - . | ${TAR} -C ${PREFIX} -xf -
.if !defined(NOPORTDOCS)
${MKDIR} ${EXAMPLESDIR}
cd ${WRKSRC}/examples && ${INSTALL_DATA} ${ALL_EXAMPLES} ${EXAMPLESDIR}
.endif
.include <bsd.port.mk>