summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authordillo <dillo@pkgsrc.org>2004-05-22 23:37:06 +0000
committerdillo <dillo@pkgsrc.org>2004-05-22 23:37:06 +0000
commit0d8a25f043a73d46304a96ad64663dfa424a0f39 (patch)
tree1cc95721474085dd1ec70669ec1f5a61dc63a639 /games
parent1c5d0d6255f639a5a957650c7cd899f296286154 (diff)
downloadpkgsrc-0d8a25f043a73d46304a96ad64663dfa424a0f39.tar.gz
import hugo 3.0.07:
A compiler and interpreter for the Hugo interactive fiction system. The interpreter is the curses port without support for graphics or sound.
Diffstat (limited to 'games')
-rw-r--r--games/hugo/DESCR8
-rw-r--r--games/hugo/Makefile38
-rw-r--r--games/hugo/PLIST16
-rw-r--r--games/hugo/distinfo8
-rw-r--r--games/hugo/patches/patch-aa56
-rw-r--r--games/hugo/patches/patch-ab20
6 files changed, 146 insertions, 0 deletions
diff --git a/games/hugo/DESCR b/games/hugo/DESCR
new file mode 100644
index 00000000000..5e3bef3fa0f
--- /dev/null
+++ b/games/hugo/DESCR
@@ -0,0 +1,8 @@
+Hugo is one of the leading interactive fiction design systems. In
+addition to being capable of producing leading-edge text adventures,
+it also allows a developer to incorporate true-color graphics
+display (which are optional for those who lack either the hardware
+or inclination to view graphics) as well as sound effects and music.
+And it's free.
+
+This is the ncurses port, without support for sound or graphics.
diff --git a/games/hugo/Makefile b/games/hugo/Makefile
new file mode 100644
index 00000000000..b5cad0532e9
--- /dev/null
+++ b/games/hugo/Makefile
@@ -0,0 +1,38 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/05/22 23:37:06 dillo Exp $
+#
+
+DISTNAME= hugov30_unix_source
+PKGNAME= hugo-3.0.07
+CATEGORIES= games
+MASTER_SITES= http://www.ifarchive.org/if-archive/programming/hugo/source/
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} hugolib.zip
+
+MAINTAINER= dillo@NetBSD.org
+HOMEPAGE= http://161.184.245.22/tessman/gcc/hugo.html
+COMMENT= Interactive fiction design system and interpreter
+
+SITES_hugolib.zip=http://www.ifarchive.org/if-archive/programming/hugo/library/
+
+DIST_SUBDIR= ${PKGNAME_NOREV}
+USE_BUILDLINK3= yes
+USE_GNU_TOOLS+= make
+# uses halfkey (present since 1.6M)
+INCOMPAT_CURSES+= NetBSD-1.4[Y-Z]* NetBSD-1.5* NetBSD-1.6 NetBSD-1.6.*
+INCOMPAT_CURSES+= NetBSD-1.6[A-L]*
+WRKSRC= ${WRKDIR}/hugov3.0.07
+
+LIBDIR= ${PREFIX}/share/hugo
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/hc ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/hd ${PREFIX}/bin
+ ${INSTALL_PROGRAM} ${WRKSRC}/he ${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${LIBDIR}
+ for f in hugofix.g hugofix.h hugolib.h objlib.h resource.h \
+ system.h verblib.g verblib.h verbstub.g verbstub.h window.h; \
+ do \
+ ${INSTALL_DATA} ${WRKDIR}/$$f ${LIBDIR}; \
+ done
+
+.include "../../devel/ncurses/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/hugo/PLIST b/games/hugo/PLIST
new file mode 100644
index 00000000000..cacc55807e2
--- /dev/null
+++ b/games/hugo/PLIST
@@ -0,0 +1,16 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/05/22 23:37:06 dillo Exp $
+bin/hc
+bin/hd
+bin/he
+share/hugo/hugofix.g
+share/hugo/hugofix.h
+share/hugo/hugolib.h
+share/hugo/objlib.h
+share/hugo/resource.h
+share/hugo/system.h
+share/hugo/verblib.g
+share/hugo/verblib.h
+share/hugo/verbstub.g
+share/hugo/verbstub.h
+share/hugo/window.h
+@dirrm share/hugo
diff --git a/games/hugo/distinfo b/games/hugo/distinfo
new file mode 100644
index 00000000000..f2c9f6f69fd
--- /dev/null
+++ b/games/hugo/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/05/22 23:37:06 dillo Exp $
+
+SHA1 (hugo-3.0.07/hugov30_unix_source.tar.gz) = 4b3afc3b4f03ff23643460321d76127980184ec0
+Size (hugo-3.0.07/hugov30_unix_source.tar.gz) = 213002 bytes
+SHA1 (hugo-3.0.07/hugolib.zip) = 76b5580461a6c6f15780f554d2e23574ef78e24d
+Size (hugo-3.0.07/hugolib.zip) = 67669 bytes
+SHA1 (patch-aa) = 841a92743e3b6db56d79806bde2687d30019570b
+SHA1 (patch-ab) = a2e5b86d69aefb0be46b69c91b08a4335bc81637
diff --git a/games/hugo/patches/patch-aa b/games/hugo/patches/patch-aa
new file mode 100644
index 00000000000..aae549e0b51
--- /dev/null
+++ b/games/hugo/patches/patch-aa
@@ -0,0 +1,56 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/05/22 23:37:06 dillo Exp $
+
+--- Makefile.orig Mon Nov 26 09:54:04 2001
++++ Makefile
+@@ -50,9 +50,9 @@ CFG_OPTIONS=-DDO_COLOR
+ # Standard optimizations
+ # Pentium with gcc 2.7.0 or better
+ #CFLAGS=-O2 -Wall -fomit-frame-pointer -malign-functions=2 -malign-loops=2 -malign-jumps=2
+-CFLAGS=-O2 -Wall
++#CFLAGS=-O2 -Wall
+ # If you are using the ncurses package, define NCURSES for the compiler
+-CFLAGS:=$(CFLAGS) -DNCURSES -DGCC_UNIX -DUSE_TEMPFILES
++CFLAGS:=$(CFLAGS) -DNCURSES -DGCC_UNIX -DUSE_TEMPFILES -DHUGO_LIBDIR=\"$(PREFIX)/share/hugo\"
+ ifeq ($(MAKECMDGOALS), he)
+ CFLAGS:=$(CFLAGS) -DNO_LATIN1_CHARSET
+ endif
+@@ -62,7 +62,8 @@ endif
+
+ # If you need a special include path to get the right curses header, specify
+ # it.
+-CC=gcc -I/usr/local/include -Isource $(CFG_OPTIONS) $(CFLAGS)
++#CC=gcc -I/usr/local/include -Isource $(CFG_OPTIONS) $(CFLAGS)
++CC:=$(CC) -I$(PREFIX)/include -Isource $(CFG_OPTIONS) $(CFLAGS)
+
+ # If using ncurses you need -lncurses, otherwise use -lcurses. You may also
+ # need -ltermcap or -ltermlib. If you need to specify a particular path to
+@@ -71,7 +72,7 @@ CC=gcc -I/usr/local/include -Isource $(C
+ #HE_LIBS=-lcurses -ltermcap
+ #HE_LIBS=-lcurses -ltermlib
+ #HE_LIBS=-lcurses
+-HE_LIBS=-lncurses
++HE_LIBS=-L$(PREFIX)/lib -Wl,${RPATH_FLAG}$(PREFIX)/lib -lncurses
+
+ # Shouldn't need to change anything below here.
+ HC_H=source/hcheader.h source/htokens.h
+@@ -97,17 +98,17 @@ clean:
+
+ hc: $(HC_OBJS)
+ # gcc -g -o hc $(HC_OBJS)
+- gcc -o hc $(HC_OBJS)
++ $(CC) -o hc $(HC_OBJS)
+
+ he: $(HE_OBJS)
+ # gcc -g -static -o he $(HE_OBJS) $(HE_LIBS)
+ # gcc -g -o he $(HE_OBJS) $(HE_LIBS)
+- gcc -o he $(HE_OBJS) $(HE_LIBS)
++ $(CC) -o he $(HE_OBJS) $(HE_LIBS)
+
+ hd: $(HE_OBJS) $(HD_OBJS)
+ # gcc -g -static -o hd $(HD_OBJS) $(HE_LIBS)
+ # gcc -g -o hd $(HD_OBJS) $(HE_LIBS)
+- gcc -o hd $(HE_OBJS) $(HD_OBJS) $(HE_LIBS)
++ $(CC) -o hd $(HE_OBJS) $(HD_OBJS) $(HE_LIBS)
+
+ iotest: source/iotest.c gcc/hegcc.c $(HE_H)
+ $(CC) -o iotest source/iotest.c hegcc.o stringfn.o $(HE_LIBS)
diff --git a/games/hugo/patches/patch-ab b/games/hugo/patches/patch-ab
new file mode 100644
index 00000000000..0663c91f984
--- /dev/null
+++ b/games/hugo/patches/patch-ab
@@ -0,0 +1,20 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/05/22 23:37:06 dillo Exp $
+
+--- source/hcfile.c.orig Wed Jan 8 05:26:08 2003
++++ source/hcfile.c
+@@ -380,6 +380,15 @@ FILE *TrytoOpen(char *f, char *p, char *
+ return tempfile;
+ }
+ }
++
++ if (STRICMP(d, "lib") == 0) {
++ hugo_makepath(temppath, "", HUGO_LIBDIR, fname, ext);
++ if ((tempfile = HUGO_FOPEN(temppath, p)))
++ {
++ strcpy(f, temppath); /* the new pathname */
++ return tempfile;
++ }
++ }
+ }
+
+ /* Try to open the given, vanilla filename */