summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Cerutti <gahr@FreeBSD.org>2008-05-29 19:14:47 +0000
committerPietro Cerutti <gahr@FreeBSD.org>2008-05-29 19:14:47 +0000
commit3ff1fbb343ecdb0a3371d34f67c2beaafb6767c4 (patch)
tree083086af2aede3a315cbed04383d530e085722c8
parentupdate to 3.42 (diff)
New port: The New Brainfuck Compiler
The New Brainfuck Compiler is an optimizing Brainfuck-to-C and Bainfuck-to-Java compiler. Approved by: miwi (mentor)
Notes
Notes: svn path=/head/; revision=213890
-rw-r--r--lang/Makefile1
-rw-r--r--lang/nbfc/Makefile24
-rw-r--r--lang/nbfc/distinfo3
-rw-r--r--lang/nbfc/files/patch-bf.h8
-rw-r--r--lang/nbfc/files/patch-compiler.c8
-rw-r--r--lang/nbfc/pkg-descr4
6 files changed, 48 insertions, 0 deletions
diff --git a/lang/Makefile b/lang/Makefile
index 9a4951d8d737..c85f772c1de6 100644
--- a/lang/Makefile
+++ b/lang/Makefile
@@ -164,6 +164,7 @@
SUBDIR += munger
SUBDIR += nawk
SUBDIR += nbc
+ SUBDIR += nbfc
SUBDIR += neko
SUBDIR += nesasm
SUBDIR += newlisp
diff --git a/lang/nbfc/Makefile b/lang/nbfc/Makefile
new file mode 100644
index 000000000000..b587d1217bd0
--- /dev/null
+++ b/lang/nbfc/Makefile
@@ -0,0 +1,24 @@
+# New ports collection Makefile for: nbfc
+# Date created: 29 May 2008
+# Whom: gahr
+#
+# $FreeBSD$
+#
+
+PORTNAME= nbfc
+PORTVERSION= 0.1
+CATEGORIES= lang
+MASTER_SITES= http://koeln.ccc.de/ablage/brainfuck/
+
+MAINTAINER= gahr@FreeBSD.org
+COMMENT= New Brainfuck Compiler
+
+MAN1= nbfc.1
+
+PLIST_FILES= bin/nbfc
+
+post-patch:
+ ${REINPLACE_CMD} -e 's|/usr|${PREFIX}|g;s|bison -y|yacc -|g' \
+ ${WRKSRC}/Makefile
+
+.include <bsd.port.mk>
diff --git a/lang/nbfc/distinfo b/lang/nbfc/distinfo
new file mode 100644
index 000000000000..6eb383eb9f48
--- /dev/null
+++ b/lang/nbfc/distinfo
@@ -0,0 +1,3 @@
+MD5 (nbfc-0.1.tar.gz) = ce46f3f7df0a785f726942c413755596
+SHA256 (nbfc-0.1.tar.gz) = 84c784642ec753d1b0ae4e775912d47879cb27c35536789a5661d1d127e31fc6
+SIZE (nbfc-0.1.tar.gz) = 7644
diff --git a/lang/nbfc/files/patch-bf.h b/lang/nbfc/files/patch-bf.h
new file mode 100644
index 000000000000..6bb607202204
--- /dev/null
+++ b/lang/nbfc/files/patch-bf.h
@@ -0,0 +1,8 @@
+--- bf.h.orig 2008-05-29 20:46:45.000000000 +0200
++++ bf.h 2008-05-29 20:47:02.000000000 +0200
+@@ -1,3 +1,5 @@
++#include <stdio.h>
++
+ void emmit(char * s);
+ extern int yyparse();
+ extern FILE * yyin;
diff --git a/lang/nbfc/files/patch-compiler.c b/lang/nbfc/files/patch-compiler.c
new file mode 100644
index 000000000000..0fca02b0c150
--- /dev/null
+++ b/lang/nbfc/files/patch-compiler.c
@@ -0,0 +1,8 @@
+--- compiler.c.orig 2008-05-29 20:46:19.000000000 +0200
++++ compiler.c 2008-05-29 20:46:32.000000000 +0200
+@@ -1,4 +1,5 @@
+ #include <stdio.h>
++#include <stdlib.h>
+ #include <unistd.h>
+ #include <string.h>
+ #include "bf.h"
diff --git a/lang/nbfc/pkg-descr b/lang/nbfc/pkg-descr
new file mode 100644
index 000000000000..5057c6e88393
--- /dev/null
+++ b/lang/nbfc/pkg-descr
@@ -0,0 +1,4 @@
+The New Brainfuck Compiler is an optimizing Brainfuck-C and
+Bainfuck-Java compiler.
+
+WWW: http://koeln.ccc.de/ablage/brainfuck/index.en.xml