Date: Thu, 13 Feb 2014 13:27:12 +0000 (UTC) From: Pietro Cerutti <gahr@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r344101 - in head/lang/nbfc: . files Message-ID: <201402131327.s1DDRCm8076484@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: gahr Date: Thu Feb 13 13:27:12 2014 New Revision: 344101 URL: http://svnweb.freebsd.org/changeset/ports/344101 QAT: https://qat.redports.org/buildarchive/r344101/ Log: - STAGE-clean - Add LICENSE - Fix compiler warning Added: head/lang/nbfc/files/patch-Makefile (contents, props changed) head/lang/nbfc/files/patch-bf.y (contents, props changed) Modified: head/lang/nbfc/Makefile Modified: head/lang/nbfc/Makefile ============================================================================== --- head/lang/nbfc/Makefile Thu Feb 13 13:26:03 2014 (r344100) +++ head/lang/nbfc/Makefile Thu Feb 13 13:27:12 2014 (r344101) @@ -9,13 +9,18 @@ MASTER_SITES= http://koeln.ccc.de/ablage MAINTAINER= gahr@FreeBSD.org COMMENT= New Brainfuck Compiler -MAN1= nbfc.1 +LICENSE= BSD2CLAUSE -PLIST_FILES= bin/nbfc +PLIST_FILES= bin/nbfc \ + man/man1/nbfc.1.gz + +MAKE_ENV+= FLEX=${FLEX} \ + YACC=${YACC} \ + STAGEDIR=${STAGEDIR} -NO_STAGE= yes post-patch: - ${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g; s|bison -y|${YACC} -|g; s|gcc|${CC} ${CFLAGS}|g' \ - ${WRKSRC}/Makefile + # -O4 kills llvm + ${REINPLACE_CMD} -e 's|/usr/bin/gcc|${CC}|; s|O4|O3|g' \ + ${WRKSRC}/config.h .include <bsd.port.mk> Added: head/lang/nbfc/files/patch-Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/nbfc/files/patch-Makefile Thu Feb 13 13:27:12 2014 (r344101) @@ -0,0 +1,31 @@ +--- Makefile.orig 2014-02-13 14:22:14.000000000 +0100 ++++ Makefile 2014-02-13 14:23:21.000000000 +0100 +@@ -1,20 +1,20 @@ + all: compiler.o y.tab.o lex.yy.o +- gcc -Wall -O4 -g -o nbfc compiler.o lex.yy.o y.tab.o -lfl ++ ${CC} ${CFLAGS} -o nbfc compiler.o lex.yy.o y.tab.o -lfl + + lex.yy.o: bf.l +- flex bf.l +- gcc -c lex.yy.c ++ ${FLEX} bf.l ++ ${CC} ${CFLAGS} -c lex.yy.c + + y.tab.o: bf.y +- bison -yd bf.y +- gcc -c y.tab.c ++ ${YACC} -yd bf.y ++ ${CC} ${CFLAGS} -c y.tab.c + + compiler.o: compiler.c +- gcc -c compiler.c ++ ${CC} ${CFLAGS} -c compiler.c + + install: +- install -c nbfc /usr/bin/nbfc +- install -c nbfc.1 /usr/man/man1/nbfc.1 ++ install -s -c nbfc ${STAGEDIR}${PREFIX}/bin/nbfc ++ install -c nbfc.1 ${STAGEDIR}${PREFIX}/man/man1/nbfc.1 + + clean: + rm -f *.o Added: head/lang/nbfc/files/patch-bf.y ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/lang/nbfc/files/patch-bf.y Thu Feb 13 13:27:12 2014 (r344101) @@ -0,0 +1,10 @@ +--- bf.y.orig 2014-02-13 14:19:06.000000000 +0100 ++++ bf.y 2014-02-13 14:19:18.000000000 +0100 +@@ -20,6 +20,7 @@ + | PUTC {process("putchar(array[p]);");} + %% + #include "bf.h" ++extern int yylex (void); + + int process(char * string) { + emmit(string);
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201402131327.s1DDRCm8076484>