summaryrefslogtreecommitdiff
path: root/games/wxhugo
diff options
context:
space:
mode:
authordillo <dillo@pkgsrc.org>2004-05-22 23:35:38 +0000
committerdillo <dillo@pkgsrc.org>2004-05-22 23:35:38 +0000
commit1c5d0d6255f639a5a957650c7cd899f296286154 (patch)
treee606e855fd981174067ef3b04e0ceabf74189e55 /games/wxhugo
parent07966af1458623af0952ee4d3d01fd0faca4777a (diff)
downloadpkgsrc-1c5d0d6255f639a5a957650c7cd899f296286154.tar.gz
import wxhugo 3.0.07:
An interpreter for Hugo interactive fiction, with support for graphics and sound.
Diffstat (limited to 'games/wxhugo')
-rw-r--r--games/wxhugo/DESCR10
-rw-r--r--games/wxhugo/Makefile43
-rw-r--r--games/wxhugo/PLIST2
-rw-r--r--games/wxhugo/TODO1
-rw-r--r--games/wxhugo/distinfo8
-rw-r--r--games/wxhugo/patches/patch-aa99
-rw-r--r--games/wxhugo/patches/patch-ab13
7 files changed, 176 insertions, 0 deletions
diff --git a/games/wxhugo/DESCR b/games/wxhugo/DESCR
new file mode 100644
index 00000000000..50070ee0eb4
--- /dev/null
+++ b/games/wxhugo/DESCR
@@ -0,0 +1,10 @@
+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 wxGTK port, with support for sound or graphics. It
+does not, however, include game development tools. For these,
+install the package hugo.
diff --git a/games/wxhugo/Makefile b/games/wxhugo/Makefile
new file mode 100644
index 00000000000..c2a1838a36c
--- /dev/null
+++ b/games/wxhugo/Makefile
@@ -0,0 +1,43 @@
+# $NetBSD: Makefile,v 1.1.1.1 2004/05/22 23:35:38 dillo Exp $
+#
+
+DISTNAME= hugov30_unix_source
+PKGNAME= wxhugo-3.0.07
+CATEGORIES= games
+MASTER_SITES= http://www.ifarchive.org/if-archive/programming/hugo/source/
+DISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${DISTFILE_WX}
+
+MAINTAINER= dillo@NetBSD.org
+HOMEPAGE= http://161.184.245.22/tessman/gcc/hugo.html
+COMMENT= Interactive fiction interpreter with sound and graphics support
+
+DISTFILE_WX= hugov30_wxwin_source${EXTRACT_SUFX}
+EXTRACT_ONLY= ${DISTNAME}${EXTRACT_SUFX}
+
+DIST_SUBDIR= hugo-3.0.07
+USE_BUILDLINK3= yes
+USE_GNU_TOOLS+= make
+WRKSRC= ${WRKDIR}/hugov3.0.07/hewx
+
+LIBDIR= ${PREFIX}/share/hugo
+
+post-extract:
+ extract_file="${DISTDIR}/${DISTFILE_WX}"; export extract_file; \
+ cd ${WRKSRC}/.. && ${EXTRACT_CMD.tar.gz}
+ for f in hejpeg.cpp hesound.cpp hesound_SDL.cpp hewxwin.cpp; \
+ do \
+ { cd ${WRKSRC} && ${MV} $$f $$f.dos \
+ && ${TR} -d '\015' < $$f.dos > $$f; }; \
+ done
+ for f in hevideo.cpp; \
+ do \
+ { cd ${WRKSRC} && ${MV} $$f $$f.mac \
+ && ${TR} '\015' '\012' < $$f.mac > $$f; }; \
+ done
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKSRC}/hewx ${PREFIX}/bin
+
+.include "../../audio/libmikmod/buildlink3.mk"
+.include "../../x11/wxGTK/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/games/wxhugo/PLIST b/games/wxhugo/PLIST
new file mode 100644
index 00000000000..56d09048c17
--- /dev/null
+++ b/games/wxhugo/PLIST
@@ -0,0 +1,2 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2004/05/22 23:35:39 dillo Exp $
+bin/hewx
diff --git a/games/wxhugo/TODO b/games/wxhugo/TODO
new file mode 100644
index 00000000000..a7861dd2ada
--- /dev/null
+++ b/games/wxhugo/TODO
@@ -0,0 +1 @@
+import in pkgsrc
diff --git a/games/wxhugo/distinfo b/games/wxhugo/distinfo
new file mode 100644
index 00000000000..6910f1d712a
--- /dev/null
+++ b/games/wxhugo/distinfo
@@ -0,0 +1,8 @@
+$NetBSD: distinfo,v 1.1.1.1 2004/05/22 23:35:39 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/hugov30_wxwin_source.tar.gz) = a0871b4dd5d9b0d7bc638ea2728cd285d4457304
+Size (hugo-3.0.07/hugov30_wxwin_source.tar.gz) = 69444 bytes
+SHA1 (patch-aa) = 2a7df05b854e82938f9e26fd698eaed4fce91ca4
+SHA1 (patch-ab) = d8eb602e631143595071eb2d449c15a0bb8860e6
diff --git a/games/wxhugo/patches/patch-aa b/games/wxhugo/patches/patch-aa
new file mode 100644
index 00000000000..b232d91436e
--- /dev/null
+++ b/games/wxhugo/patches/patch-aa
@@ -0,0 +1,99 @@
+$NetBSD: patch-aa,v 1.1.1.1 2004/05/22 23:35:39 dillo Exp $
+
+--- Makefile.orig Thu Jan 15 19:23:19 2004
++++ Makefile
+@@ -15,12 +15,12 @@
+ # (The wxWindows file locations should really be taken from wx-config.)
+ HUGOSOURCEDIR = ../source
+ MIKMODINCLUDEDIR = /usr/local/include
+-CXXINCLUDEDIR = /usr/include/g++-3
++#CXXINCLUDEDIR = /usr/include/g++-3
+
+ # Libraries to be linked:
+ # If a working libmikmod.so has been compiled on the runtime system
+ # and the wxGTK library is installed:
+-LDFLAGS = `wx-config --libs` -lgtk -lgdk -lmikmod
++LDFLAGS = `wx-config --libs` -lmikmod
+ STATICLIBS =
+ # Otherwise, use these LDFLAGS and STATICLIBS:
+ #LDFLAGS = -lwx_gtk -lgtk -lgdk -lpthread -lmikmod
+@@ -34,27 +34,28 @@ MYCODEDIR := .
+
+ # Directories to search for header files
+
+-SEARCHDIRS := -I- -I${MYCODEDIR} -I${HUGOSOURCEDIR} -I${MIKMODINCLUDEDIR} -I${CXXINCLUDEDIR}
++SEARCHDIRS := -I- -I${MYCODEDIR} -I${HUGOSOURCEDIR} -I${MIKMODINCLUDEDIR}
+
+ # makemake variables
+
+-LINKER := gcc
++LINKER := ${CC}
+ DEPENDFLAGS := ${SEARCHDIRS}
+ TOUCHHEADERS := ${MYCODEDIR}/*.h
+
+ # C
+
+-CC := gcc
++#CC := gcc
+ # Debugging:
+ #CFLAGS = ${DEPENDFLAGS} -D__WXGTK__ -DWXWINDOWS -DNO_WXCARET -fwritable-strings -fno-rtti -g3 -Wall `wx-config --cflags`
+ # Release build:
+-CFLAGS = ${DEPENDFLAGS} -D__WXGTK__ -DWXWINDOWS -DNO_WXCARET -fwritable-strings -fno-rtti -O2 -Wall `wx-config --cflags`
++MY_CFLAGS = ${DEPENDFLAGS} -D__WXGTK__ -DWXWINDOWS -DNO_WXCARET -fwritable-strings -fno-rtti -O2 -Wall `wx-config --cflags`
++CFLAGS+=${MY_CFLAGS}
+
+ # C++
+
+-CXX := g++
++#CXX := g++
+ #CXXFLAGS = ${DEPENDFLAGS}
+-CXXFLAGS = ${CFLAGS}
++CXXFLAGS+=${MY_CFLAGS}
+
+ %.o : %.cpp
+ ${CXX} ${CPPFLAGS} -c $< ${CXXFLAGS}
+@@ -133,31 +134,28 @@ jdepend:
+
+ # DO NOT DELETE THIS LINE -- makemake depends on it.
+
+-../source/he.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h /usr/include/ctype.h /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h /usr/include/time.h /usr/include/unistd.h
++../source/he.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h
+
+-../source/hebuffer.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h /usr/include/ctype.h /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h /usr/include/time.h /usr/include/unistd.h
++../source/hebuffer.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h
+
+-../source/heexpr.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h /usr/include/ctype.h /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h /usr/include/time.h /usr/include/unistd.h
++../source/heexpr.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h
+
+-./hejpeg.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h ./hewx.h /usr/include/assert.h /usr/include/ctype.h /usr/include/dirent.h /usr/include/g++-3/iostream /usr/include/g++-3/iostream.h /usr/include/limits.h /usr/include/math.h /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h /usr/include/strings.h /usr/include/sys/types.h /usr/include/time.h /usr/include/unistd.h /usr/include/wchar.h /usr/include/wctype.h
++./hejpeg.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h ./hewx.h
+
+-../source/hemisc.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h /usr/include/ctype.h /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h /usr/include/time.h /usr/include/unistd.h
++../source/hemisc.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h
+
+-../source/heobject.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h /usr/include/ctype.h /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h /usr/include/time.h /usr/include/unistd.h
++../source/heobject.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h
+
+-../source/heparse.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h /usr/include/ctype.h /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h /usr/include/time.h /usr/include/unistd.h
++../source/heparse.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h
+
+-../source/heres.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h /usr/include/ctype.h /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h /usr/include/time.h /usr/include/unistd.h
++../source/heres.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h
+
+-../source/herun.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h /usr/include/ctype.h /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h /usr/include/time.h /usr/include/unistd.h
++../source/herun.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h
+
+-../source/heset.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h /usr/include/ctype.h /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h /usr/include/time.h /usr/include/unistd.h
++../source/heset.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h
+
+-./hesound.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h ./hewx.h /usr/include/assert.h /usr/include/ctype.h /usr/include/dirent.h /usr/include/g++-3/iostream /usr/include/g++-3/iostream.h /usr/include/limits.h /usr/include/mikmod.h /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h /usr/include/strings.h /usr/include/sys/types.h /usr/include/time.h /usr/include/unistd.h /usr/include/wchar.h /usr/include/wctype.h
++./hesound.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h ./hewx.h
+
+-./hewx.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h ./hewx.h /usr/include/assert.h /usr/include/ctype.h /usr/include/dirent.h /usr/include/g++-3/iostream /usr/include/g++-3/iostream.h /usr/include/limits.h /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h /usr/include/strings.h /usr/include/sys/types.h /usr/include/time.h /usr/include/unistd.h /usr/include/wchar.h /usr/include/wctype.h
+-
+-./hewxwin.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h ./hewx.h /usr/include/assert.h /usr/include/ctype.h /usr/include/dirent.h /usr/include/g++-3/iostream /usr/include/g++-3/iostream.h /usr/include/limits.h /usr/include/stdio.h /usr/include/stdlib.h /usr/include/string.h /usr/include/strings.h /usr/include/sys/types.h /usr/include/time.h /usr/include/unistd.h /usr/include/wchar.h /usr/include/wctype.h
+-
+-../source/stringfn.o: /usr/include/ctype.h /usr/include/stdio.h /usr/include/string.h
++./hewx.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h ./hewx.h
+
++./hewxwin.o: ../source/hdinter.h ../source/heheader.h ../source/htokens.h ./hewx.h
diff --git a/games/wxhugo/patches/patch-ab b/games/wxhugo/patches/patch-ab
new file mode 100644
index 00000000000..3bd03f8d8b4
--- /dev/null
+++ b/games/wxhugo/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2004/05/22 23:35:39 dillo Exp $
+
+--- hewx.h.orig Fri Jan 24 21:04:46 2003
++++ hewx.h
+@@ -133,7 +133,7 @@ inline double MyMilliseconds(void)
+ #else
+ inline double MyMilliseconds(void)
+ {
+- return (double)(clock()/(CLOCKS_PER_SEC/1000));
++ return (double)(clock()/(CLOCKS_PER_SEC/1000.));
+ }
+ #endif
+