freebsd-ports/lang/spl/Makefile
John Marino 3f230752a6 lang/spl: Fix build on modern gcc
I don't know why spl builds on clang but fails on gcc due to a flex
precedence issue.  Rather, I don't know why the flex issue doesn't affect
clang.  There was a patch provided by a fork nearly four years ago that
fixes the gcc build nicely.  The bitbucket issue warns that more eyes
should review the fix though.

Issue 1: roman number II interpreted as I
https://bitbucket.org/kcartmell/marlowe/issue/1/
2014-11-15 11:06:04 +00:00

34 lines
941 B
Makefile

# Created by: Hye-Shik Chang <perky@fallin.lv>
# $FreeBSD$
PORTNAME= spl
PORTVERSION= 1.2.1
PORTREVISION= 3
CATEGORIES= lang
MASTER_SITES= http://shakespearelang.sourceforge.net/download/
MAINTAINER= ports@FreeBSD.org
COMMENT= Shakespeare programming language
USES= bison gmake
ALL_EXAMPLES= Makefile fibonacci.spl fibonacci2.spl guess.spl hello.spl \
primes.spl reverse.spl shakesbeer.spl
OPTIONS_DEFINE= EXAMPLES
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 ${STAGEDIR}${PREFIX} -xf -
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
(cd ${WRKSRC}/examples && \
${INSTALL_DATA} ${ALL_EXAMPLES} ${STAGEDIR}${EXAMPLESDIR})
.include <bsd.port.mk>