summaryrefslogtreecommitdiff
path: root/lang/rcfunge
diff options
context:
space:
mode:
authordrochner <drochner@pkgsrc.org>2009-11-20 12:06:48 +0000
committerdrochner <drochner@pkgsrc.org>2009-11-20 12:06:48 +0000
commit76523c198b8bdc08e594d8e4bf1a83bc29a20683 (patch)
tree6fa487f5c2587dac6a3e49d132fbbd6258e46f65 /lang/rcfunge
parent40d043ed1c3dd2b14f6cca3f0d2bf794823e1966 (diff)
downloadpkgsrc-76523c198b8bdc08e594d8e4bf1a83bc29a20683.tar.gz
add rcfunge-2.02, a (be)funge interpreter
Diffstat (limited to 'lang/rcfunge')
-rw-r--r--lang/rcfunge/DESCR6
-rw-r--r--lang/rcfunge/Makefile30
-rw-r--r--lang/rcfunge/PLIST2
-rw-r--r--lang/rcfunge/distinfo9
-rw-r--r--lang/rcfunge/patches/patch-aa13
-rw-r--r--lang/rcfunge/patches/patch-ab20
-rw-r--r--lang/rcfunge/patches/patch-ac29
-rw-r--r--lang/rcfunge/patches/patch-ad13
8 files changed, 122 insertions, 0 deletions
diff --git a/lang/rcfunge/DESCR b/lang/rcfunge/DESCR
new file mode 100644
index 00000000000..e7557efe2a9
--- /dev/null
+++ b/lang/rcfunge/DESCR
@@ -0,0 +1,6 @@
+ RC/Funge-98 is a funge interpreter based upon the Funge-98 specification
+by Cats-Eye Technologies. The full language specification (including the
+'i', 'o', '=', and 't' commands) are supported. Unefunge, befunge, and trefunge
+all supported by RC/Funge-98, with befunge being the default mode. Several
+extensions are also provided, including minimal windows support (currently
+only on unix version).
diff --git a/lang/rcfunge/Makefile b/lang/rcfunge/Makefile
new file mode 100644
index 00000000000..d5f1b20b34d
--- /dev/null
+++ b/lang/rcfunge/Makefile
@@ -0,0 +1,30 @@
+# $NetBSD: Makefile,v 1.1.1.1 2009/11/20 12:06:48 drochner Exp $
+#
+
+DISTNAME= rcfunge2
+PKGNAME= rcfunge-2.02
+DIST_SUBDIR= rcfunge-2.02
+CATEGORIES= lang
+MASTER_SITES= http://www.rcfunge98.com/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.rcfunge98.com/
+COMMENT= Funge interpreter
+#LICENSE= # TODO: (see mk/license.mk)
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+WRKSRC= ${WRKDIR}/rcfunge
+BUILD_TARGET= funge
+INSTALLATION_DIRS= bin
+
+pre-build:
+ ${MKDIR} ${WRKSRC}/bin
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/funge ${DESTDIR}${PREFIX}/bin
+
+.include "../../x11/libX11/buildlink3.mk"
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/lang/rcfunge/PLIST b/lang/rcfunge/PLIST
new file mode 100644
index 00000000000..063435755ea
--- /dev/null
+++ b/lang/rcfunge/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2009/11/20 12:06:48 drochner Exp $
+bin/funge
diff --git a/lang/rcfunge/distinfo b/lang/rcfunge/distinfo
new file mode 100644
index 00000000000..d05a6bc30df
--- /dev/null
+++ b/lang/rcfunge/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2009/11/20 12:06:48 drochner Exp $
+
+SHA1 (rcfunge-2.02/rcfunge2.tgz) = 058adc7f28096386a41073be959db5b8de081d76
+RMD160 (rcfunge-2.02/rcfunge2.tgz) = 27b0a8e84e0d5fb47fa285c1278ae9965b738c21
+Size (rcfunge-2.02/rcfunge2.tgz) = 93849 bytes
+SHA1 (patch-aa) = 1b6d39c0dc020c8bb8b51e60b8572bcba0d6e7cb
+SHA1 (patch-ab) = 6cca02f3c5392127d17e36cb8111b89bc1bb13ce
+SHA1 (patch-ac) = e9841926fc5a22d6ea852406acd8cf97bfe0830b
+SHA1 (patch-ad) = 09b12690a99f61e37e00eb58c16e0c28a16d8d6e
diff --git a/lang/rcfunge/patches/patch-aa b/lang/rcfunge/patches/patch-aa
new file mode 100644
index 00000000000..9706143b86c
--- /dev/null
+++ b/lang/rcfunge/patches/patch-aa
@@ -0,0 +1,13 @@
+$NetBSD: patch-aa,v 1.1.1.1 2009/11/20 12:06:48 drochner Exp $
+
+--- ext/sgnl.c.orig 2008-12-19 19:52:46.000000000 +0100
++++ ext/sgnl.c
+@@ -53,7 +53,7 @@ void Unload_SGNL(VM* vm) {
+ Unload_Semantic(vm,24);
+ }
+
+-static void signalHandler(int signo,struct siginfo* info,void* x) {
++static void signalHandler(int signo,siginfo_t* info,void* x) {
+ int i;
+ int old;
+ for (i=0; i<numHandlers; i++)
diff --git a/lang/rcfunge/patches/patch-ab b/lang/rcfunge/patches/patch-ab
new file mode 100644
index 00000000000..9d459346321
--- /dev/null
+++ b/lang/rcfunge/patches/patch-ab
@@ -0,0 +1,20 @@
+$NetBSD: patch-ab,v 1.1.1.1 2009/11/20 12:06:48 drochner Exp $
+
+--- ext/rexp.c.orig 2008-12-19 19:52:46.000000000 +0100
++++ ext/rexp.c
+@@ -64,11 +64,15 @@ void Do_REXP(VM* vm,int Cmd)
+ case REG_EBRACK:Push(vm,5); break;
+ case REG_ECOLLATE:Push(vm,6); break;
+ case REG_ECTYPE:Push(vm,7); break;
++#if 0
+ case REG_EEND:Push(vm,8); break;
++#endif
+ case REG_EESCAPE:Push(vm,9); break;
+ case REG_EPAREN:Push(vm,10); break;
+ case REG_ERANGE:Push(vm,11); break;
++#if 0
+ case REG_ESIZE:Push(vm,12); break;
++#endif
+ case REG_ESPACE:Push(vm,13); break;
+ case REG_ESUBREG:Push(vm,14); break;
+ default:Push(vm,n+100); break;
diff --git a/lang/rcfunge/patches/patch-ac b/lang/rcfunge/patches/patch-ac
new file mode 100644
index 00000000000..e593b403b6d
--- /dev/null
+++ b/lang/rcfunge/patches/patch-ac
@@ -0,0 +1,29 @@
+$NetBSD: patch-ac,v 1.1.1.1 2009/11/20 12:06:48 drochner Exp $
+
+--- Makefile.orig 2008-12-19 19:52:46.000000000 +0100
++++ Makefile
+@@ -1,5 +1,5 @@
+ PROJECT=funge
+-CC=gcc
++#CC=gcc
+ PLATFORM=UNIX
+ DEFINES=-DBASE -DCPLI -DDIRF -DEVAR -DFILS -DFNGR -DFPDP -DFPSP -DFRTH -DFNUL\
+ -DFIXP -DHRTI -DIMAP -DIIPC -DINDV -DMODE -DMODU -DORTH -DPERL -DREFC\
+@@ -8,7 +8,7 @@ DEFINES=-DBASE -DCPLI -DDIRF -DEVAR -DFI
+ -DREXP -DMSGQ -DSMEM -DSMPH -DPNTR -DDATE -DMVRS -DARRY -DRAND -DFPRT \
+ -DNCRS -DFOBJ -DSORT -DICAL -DSCKE -DIMTH -DBOOL -DSGNL -DFORK -DSGNE\
+ -DIPMD -DUNIX\
+- -D$(PLATFORM) -Wall
++ -D$(PLATFORM) $(CFLAGS)
+ INCPATH=-I /usr/openwin/include
+ # solaris
+ #LIBS=-lm -lX11 -lsocket -lnsl
+@@ -87,7 +87,7 @@ OBJECTS=./bin/main.o\
+ ./bin/mvrs.o
+
+ $(PROJECT):$(OBJECTS)
+- $(CC) -L /usr/X11/lib $(LIBS) $(OBJECTS) -o $(PROJECT)
++ $(CC) $(LDFLAGS) $(LIBS) $(OBJECTS) -o $(PROJECT)
+
+ ./bin/main.o: main.c funge.h
+ $(CC) $(DEFINES) -c main.c -o ./bin/main.o
diff --git a/lang/rcfunge/patches/patch-ad b/lang/rcfunge/patches/patch-ad
new file mode 100644
index 00000000000..2646f150f5e
--- /dev/null
+++ b/lang/rcfunge/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1.1.1 2009/11/20 12:06:48 drochner Exp $
+
+--- main.c.orig 2008-12-19 19:52:46.000000000 +0100
++++ main.c
+@@ -262,7 +262,7 @@ int main(INT argc,char *argv[],char *env
+ f = 0;
+ ArgC = 0;
+ for (i=1;i<argc;i++) {
+- if (strcmp(argv[i],vms[0].ProgName) == 0) f = 1;
++ if (vms[0].ProgName && strcmp(argv[i],vms[0].ProgName) == 0) f = 1;
+ if (f==1) {
+ strcpy(ArgV[ArgC],argv[i]);
+ ArgC++;