diff options
author | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-12-12 04:24:01 +0000 |
---|---|---|
committer | Ying-Chieh Liao <ijliao@FreeBSD.org> | 2001-12-12 04:24:01 +0000 |
commit | 688aa71c6f580fb638aa286dbbbc162853e13157 (patch) | |
tree | 12ed4155b816282eb7fba59bdc39e539b90a377d /games/nethack33-gnome | |
parent | Recent version of p5-libwww depends on Digest::MD5 instead of MD5. (diff) |
add nethack3-gnome
A dungeon explorin', slashin', hackin' game
PR: 23401
Submitted by: Jan Stocker <Jan.Stocker@t-online.de>
Notes
Notes:
svn path=/head/; revision=51371
Diffstat (limited to 'games/nethack33-gnome')
-rw-r--r-- | games/nethack33-gnome/Makefile | 37 | ||||
-rw-r--r-- | games/nethack33-gnome/distinfo | 1 | ||||
-rw-r--r-- | games/nethack33-gnome/files/patch-include::config.h | 61 | ||||
-rw-r--r-- | games/nethack33-gnome/files/patch-include::system.h | 19 | ||||
-rw-r--r-- | games/nethack33-gnome/files/patch-include::unixconf.h | 36 | ||||
-rw-r--r-- | games/nethack33-gnome/files/patch-sys::unix::Makefile.doc | 44 | ||||
-rw-r--r-- | games/nethack33-gnome/files/patch-sys::unix::Makefile.src | 72 | ||||
-rw-r--r-- | games/nethack33-gnome/files/patch-sys::unix::Makefile.top | 78 | ||||
-rw-r--r-- | games/nethack33-gnome/pkg-comment | 1 | ||||
-rw-r--r-- | games/nethack33-gnome/pkg-descr | 8 | ||||
-rw-r--r-- | games/nethack33-gnome/pkg-plist | 138 |
11 files changed, 495 insertions, 0 deletions
diff --git a/games/nethack33-gnome/Makefile b/games/nethack33-gnome/Makefile new file mode 100644 index 000000000000..c7ac2b699509 --- /dev/null +++ b/games/nethack33-gnome/Makefile @@ -0,0 +1,37 @@ +# New ports collection makefile for: nethack +# Date created: 09 December 2000 +# Whom: Jan Stocker <Jan.Stocker@t-online.de> +# +# $FreeBSD$ +# + +PORTNAME= nethack +PORTVERSION= 3.3.1 +CATEGORIES= games gnome +MASTER_SITES= ftp://ftp.nethack.org/pub/nethack/nh331/src/ \ + ${MASTER_SITE_GNU} +MASTER_SITE_SUBDIR= ${PORTNAME} +PKGNAMESUFFIX= -gnome +DISTNAME= ${PORTNAME}-${PORTVERSION:S/.//g} +EXTRACT_SUFX= .tgz + +MAINTAINER= Jan.Stocker@t-online.de + +USE_GNOME= yes +USE_GMAKE= yes +WRKSRC= ${WRKDIR}/${PORTNAME}-${PORTVERSION} + +MAN6= dgn_comp.6 dlb.6 lev_comp.6 nethack.6 recover.6 + +pre-configure: + @cd ${WRKSRC}/sys/unix; ${SH} setup.sh + +post-install: + @cd ${WRKSRC}/doc; ${CHMOD} 644 *.6 + @cd ${WRKSRC}/doc; PREFIX=${PREFIX} ${MAKE} manpages +.if !defined(NOPORTDOCS) + ${MKDIR} ${PREFIX}/share/doc/nethack + ${CP} ${WRKSRC}/doc/Guidebook.txt ${PREFIX}/share/doc/nethack +.endif + +.include <bsd.port.mk> diff --git a/games/nethack33-gnome/distinfo b/games/nethack33-gnome/distinfo new file mode 100644 index 000000000000..24595f9d9a12 --- /dev/null +++ b/games/nethack33-gnome/distinfo @@ -0,0 +1 @@ +MD5 (nethack-331.tgz) = d0600ce4698c80e5ad1f917ded1c36d2 diff --git a/games/nethack33-gnome/files/patch-include::config.h b/games/nethack33-gnome/files/patch-include::config.h new file mode 100644 index 000000000000..bf63b68aaa57 --- /dev/null +++ b/games/nethack33-gnome/files/patch-include::config.h @@ -0,0 +1,61 @@ +*** include/config.h.orig Sat Jul 22 03:13:51 2000 +--- include/config.h Sat Dec 9 13:31:34 2000 +*************** +*** 45,51 **** + #define TTY_GRAPHICS /* good old tty based graphics */ + /* #define X11_GRAPHICS */ /* X11 interface */ + /* #define QT_GRAPHICS */ /* Qt interface */ +! /* #define GNOME_GRAPHICS */ /* Gnome interface */ + + /* + * Define the default window system. This should be one that is compiled +--- 45,51 ---- + #define TTY_GRAPHICS /* good old tty based graphics */ + /* #define X11_GRAPHICS */ /* X11 interface */ + /* #define QT_GRAPHICS */ /* Qt interface */ +! #define GNOME_GRAPHICS /* Gnome interface */ + + /* + * Define the default window system. This should be one that is compiled +*************** +*** 151,161 **** + + #ifdef UNIX + /* path and file name extension for compression program */ +! #define COMPRESS "/usr/bin/compress" /* Lempel-Ziv compression */ +! #define COMPRESS_EXTENSION ".Z" /* compress's extension */ + /* An example of one alternative you might want to use: */ +! /* #define COMPRESS "/usr/local/bin/gzip" */ /* FSF gzip compression */ +! /* #define COMPRESS_EXTENSION ".gz" */ /* normal gzip extension */ + #endif + + #ifndef COMPRESS +--- 151,161 ---- + + #ifdef UNIX + /* path and file name extension for compression program */ +! /* #define COMPRESS "/usr/bin/compress" */ /* Lempel-Ziv compression */ +! /* #define COMPRESS_EXTENSION ".Z" */ /* compress's extension */ + /* An example of one alternative you might want to use: */ +! #define COMPRESS "/usr/bin/gzip" /* FSF gzip compression */ +! #define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ + #endif + + #ifndef COMPRESS +*************** +*** 186,192 **** + * otherwise it will be the current directory. + */ + # ifndef HACKDIR +! # define HACKDIR "/usr/games/lib/nethackdir" /* nethack directory */ + # endif + + /* +--- 186,192 ---- + * otherwise it will be the current directory. + */ + # ifndef HACKDIR +! # define HACKDIR "/usr/local/share/nethack" /* nethack directory */ + # endif + + /* diff --git a/games/nethack33-gnome/files/patch-include::system.h b/games/nethack33-gnome/files/patch-include::system.h new file mode 100644 index 000000000000..fa0a14fb6988 --- /dev/null +++ b/games/nethack33-gnome/files/patch-include::system.h @@ -0,0 +1,19 @@ +*** include/system.h.orig Thu Jan 6 11:20:08 2000 +--- include/system.h Sat Sep 23 01:08:09 2000 +*************** +*** 516,522 **** + # if defined(ULTRIX) || defined(SYSV) || defined(MICRO) || defined(VMS) || defined(MAC) || (defined(HPUX) && defined(_POSIX_SOURCE)) + E time_t FDECL(time, (time_t *)); + # else +! E long FDECL(time, (time_t *)); + # endif /* ULTRIX */ + + #ifdef VMS +--- 516,522 ---- + # if defined(ULTRIX) || defined(SYSV) || defined(MICRO) || defined(VMS) || defined(MAC) || (defined(HPUX) && defined(_POSIX_SOURCE)) + E time_t FDECL(time, (time_t *)); + # else +! E time_t FDECL(time, (time_t *)); + # endif /* ULTRIX */ + + #ifdef VMS diff --git a/games/nethack33-gnome/files/patch-include::unixconf.h b/games/nethack33-gnome/files/patch-include::unixconf.h new file mode 100644 index 000000000000..8268fa5fd83f --- /dev/null +++ b/games/nethack33-gnome/files/patch-include::unixconf.h @@ -0,0 +1,36 @@ +*** include/unixconf.h.orig Sun Jul 16 18:03:51 2000 +--- include/unixconf.h Sat Sep 23 01:09:25 2000 +*************** +*** 47,53 **** + * job control (note that AIX is SYSV otherwise) + * Also define this for AIX 3.2 */ + +! #define TERMINFO /* uses terminfo rather than termcap */ + /* Should be defined for most SYSV, SVR4 (including + * Solaris 2+), HPUX, and Linux systems. In + * particular, it should NOT be defined for the UNIXPC +--- 47,53 ---- + * job control (note that AIX is SYSV otherwise) + * Also define this for AIX 3.2 */ + +! /* #define TERMINFO */ /* uses terminfo rather than termcap */ + /* Should be defined for most SYSV, SVR4 (including + * Solaris 2+), HPUX, and Linux systems. In + * particular, it should NOT be defined for the UNIXPC +*************** +*** 143,149 **** + * A stat system call is done on the mailbox every MAILCKFREQ moves. + */ + +! #define MAIL /* Deliver mail during the game */ + + /* The Andrew Message System does mail a little differently from normal + * UNIX. Mail is deposited in the user's own directory in ~/Mailbox +--- 143,149 ---- + * A stat system call is done on the mailbox every MAILCKFREQ moves. + */ + +! /* #define MAIL */ /* Deliver mail during the game */ + + /* The Andrew Message System does mail a little differently from normal + * UNIX. Mail is deposited in the user's own directory in ~/Mailbox diff --git a/games/nethack33-gnome/files/patch-sys::unix::Makefile.doc b/games/nethack33-gnome/files/patch-sys::unix::Makefile.doc new file mode 100644 index 000000000000..89653b31a76f --- /dev/null +++ b/games/nethack33-gnome/files/patch-sys::unix::Makefile.doc @@ -0,0 +1,44 @@ +*** sys/unix/Makefile.doc.orig Fri Jan 14 12:49:48 2000 +--- sys/unix/Makefile.doc Sat Sep 23 01:16:22 2000 +*************** +*** 34,40 **** + + + GAME = nethack +! MANDIR = /usr/man/man6 + MANEXT = 6 + + # manual installation for most BSD-style systems +--- 34,40 ---- + + + GAME = nethack +! MANDIR = ${PREFIX}/man/man + MANEXT = 6 + + # manual installation for most BSD-style systems +*************** +*** 51,61 **** + # DLBMANCREATE = nroff -man dlb.6 > + + manpages: +! -$(GAMEMANCREATE) $(MANDIR)/$(GAME).$(MANEXT) +! -$(LEVMANCREATE) $(MANDIR)/lev_comp.$(MANEXT) +! -$(DGNMANCREATE) $(MANDIR)/dgn_comp.$(MANEXT) +! -$(RCVRMANCREATE) $(MANDIR)/recover.$(MANEXT) +! -$(DLBMANCREATE) $(MANDIR)/dlb.$(MANEXT) + + # manual creation for distribution + DISTRIB = Guidebook.txt nethack.txt lev_comp.txt dgn_comp.txt recover.txt dlb.txt +--- 51,61 ---- + # DLBMANCREATE = nroff -man dlb.6 > + + manpages: +! -$(GAMEMANCREATE) $(MANDIR)$(MANEXT)/$(GAME).$(MANEXT) +! -$(LEVMANCREATE) $(MANDIR)$(MANEXT)/lev_comp.$(MANEXT) +! -$(DGNMANCREATE) $(MANDIR)$(MANEXT)/dgn_comp.$(MANEXT) +! -$(RCVRMANCREATE) $(MANDIR)$(MANEXT)/recover.$(MANEXT) +! -$(DLBMANCREATE) $(MANDIR)$(MANEXT)/dlb.$(MANEXT) + + # manual creation for distribution + DISTRIB = Guidebook.txt nethack.txt lev_comp.txt dgn_comp.txt recover.txt dlb.txt diff --git a/games/nethack33-gnome/files/patch-sys::unix::Makefile.src b/games/nethack33-gnome/files/patch-sys::unix::Makefile.src new file mode 100644 index 000000000000..8e54460116a0 --- /dev/null +++ b/games/nethack33-gnome/files/patch-sys::unix::Makefile.src @@ -0,0 +1,72 @@ +*** sys/unix/Makefile.src.orig Sat Aug 5 12:52:57 2000 +--- sys/unix/Makefile.src Sat Dec 9 13:09:44 2000 +*************** +*** 139,145 **** + # directories. The ones given below is the usual spot for linux systems. + # The paths are for glibconfig.h and gnomesupport.h respectively. + # +! GNOMEINC=-I/usr/lib/glib/include -I/usr/lib/gnome-libs/include -I../win/gnome + + # flags for debugging: + # CFLAGS = -g -I../include +--- 139,145 ---- + # directories. The ones given below is the usual spot for linux systems. + # The paths are for glibconfig.h and gnomesupport.h respectively. + # +! GNOMEINC=-I/usr/X11R6/include -I/usr/X11R6/include/gtk12 -I/usr/local/include/glib12 -I/usr/local/include/kpathsea -I../win/gnome + + # flags for debugging: + # CFLAGS = -g -I../include +*************** +*** 203,210 **** + + # + # +! WINSRC = $(WINTTYSRC) +! WINOBJ = $(WINTTYOBJ) + + # on some systems the termcap library is in -ltermcap or -lcurses + # on 386 Xenix, the -ltermlib tputs() seems not to work; use -lcurses instead +--- 203,210 ---- + + # + # +! WINSRC = $(WINTTYSRC) $(WINGNOMESRC) +! WINOBJ = $(WINTTYOBJ) $(WINGNOMEOBJ) + + # on some systems the termcap library is in -ltermcap or -lcurses + # on 386 Xenix, the -ltermlib tputs() seems not to work; use -lcurses instead +*************** +*** 236,242 **** + WINKDELIB = -lkdecore -lkdeui -lXext + # + # libraries for Gnome +! WINGNOMELIB = -lgnomeui -lgnome -lart_lgpl -lgtk -lgdk -lpopt + # + # libraries for Gem port + WINGEMLIB = -le_gem -lgem +--- 236,242 ---- + WINKDELIB = -lkdecore -lkdeui -lXext + # + # libraries for Gnome +! WINGNOMELIB = -L/usr/local/lib -L/usr/X11R6/lib -lgnomeui -lgnome -lart_lgpl -lgtk12 -lgdk12 -lglib12 -lpopt -lkpathsea + # + # libraries for Gem port + WINGEMLIB = -le_gem -lgem +*************** +*** 244,250 **** + # libraries for BeOS + WINBELIB = -lbe + +! WINLIB = $(WINTTYLIB) + + # any other strange libraries your system needs (for Sysunix only -- the more + # specialized targets should already be right) +--- 244,250 ---- + # libraries for BeOS + WINBELIB = -lbe + +! WINLIB = $(WINTTYLIB) $(WINGNOMELIB) + + # any other strange libraries your system needs (for Sysunix only -- the more + # specialized targets should already be right) diff --git a/games/nethack33-gnome/files/patch-sys::unix::Makefile.top b/games/nethack33-gnome/files/patch-sys::unix::Makefile.top new file mode 100644 index 000000000000..3e0433d9f23b --- /dev/null +++ b/games/nethack33-gnome/files/patch-sys::unix::Makefile.top @@ -0,0 +1,78 @@ +*** sys/unix/Makefile.top.orig Tue Jul 4 02:42:05 2000 +--- sys/unix/Makefile.top Sat Dec 9 13:08:51 2000 +*************** +*** 14,31 **** + # MAKE = make + + # make NetHack +- PREFIX = /usr + GAME = nethack + # GAME = nethack.prg + GAMEUID = games +! GAMEGRP = bin + + # Permissions - some places use setgid instead of setuid, for instance + # See also the option "SECURE" in include/config.h +! GAMEPERM = 04755 +! FILEPERM = 0644 + EXEPERM = 0755 +! DIRPERM = 0755 + + # GAMEDIR also appears in config.h as "HACKDIR". + # VARDIR may also appear in unixconf.h as "VAR_PLAYGROUND" else GAMEDIR +--- 14,30 ---- + # MAKE = make + + # make NetHack + GAME = nethack + # GAME = nethack.prg + GAMEUID = games +! GAMEGRP = games + + # Permissions - some places use setgid instead of setuid, for instance + # See also the option "SECURE" in include/config.h +! GAMEPERM = 02755 +! FILEPERM = 0664 + EXEPERM = 0755 +! DIRPERM = 0775 + + # GAMEDIR also appears in config.h as "HACKDIR". + # VARDIR may also appear in unixconf.h as "VAR_PLAYGROUND" else GAMEDIR +*************** +*** 35,43 **** + # therefore there should not be anything in GAMEDIR that you want to keep + # (if there is, you'll have to do the installation by hand or modify the + # instructions) +! GAMEDIR = $(PREFIX)/games/lib/$(GAME)dir + VARDIR = $(GAMEDIR) +! SHELLDIR = $(PREFIX)/games + + # per discussion in Install.X11 and Install.Qt + VARDATND = +--- 34,42 ---- + # therefore there should not be anything in GAMEDIR that you want to keep + # (if there is, you'll have to do the installation by hand or modify the + # instructions) +! GAMEDIR = $(PREFIX)/share/$(GAME) + VARDIR = $(GAMEDIR) +! SHELLDIR = $(PREFIX)/bin + + # per discussion in Install.X11 and Install.Qt + VARDATND = +*************** +*** 48,54 **** + # for BeOS + # VARDATND = beostiles + # for Gnome +! # VARDATND = x11tiles pet_mark.xbm rip.xpm mapbg.xpm + + VARDATD = data oracles options quest.dat rumors + VARDAT = $(VARDATD) $(VARDATND) +--- 47,53 ---- + # for BeOS + # VARDATND = beostiles + # for Gnome +! VARDATND = x11tiles pet_mark.xbm rip.xpm mapbg.xpm + + VARDATD = data oracles options quest.dat rumors + VARDAT = $(VARDATD) $(VARDATND) diff --git a/games/nethack33-gnome/pkg-comment b/games/nethack33-gnome/pkg-comment new file mode 100644 index 000000000000..70ca7a893988 --- /dev/null +++ b/games/nethack33-gnome/pkg-comment @@ -0,0 +1 @@ +A dungeon explorin', slashin', hackin' game diff --git a/games/nethack33-gnome/pkg-descr b/games/nethack33-gnome/pkg-descr new file mode 100644 index 000000000000..77686840b6a4 --- /dev/null +++ b/games/nethack33-gnome/pkg-descr @@ -0,0 +1,8 @@ +This is version 3.3.1 of nethack, a clasic ASCII-based adventure game +with graphics support for Gnome. +You and your faithful pet are on a quest to retrieve the lost Amulet +of Yendor. + +WWW: http://www.nethack.org/ + +Jan.Stocker@t-online.de diff --git a/games/nethack33-gnome/pkg-plist b/games/nethack33-gnome/pkg-plist new file mode 100644 index 000000000000..857645278f3d --- /dev/null +++ b/games/nethack33-gnome/pkg-plist @@ -0,0 +1,138 @@ +bin/nethack +share/nethack/nethack +@exec mkdir %D/share/nethack/save +@exec chmod -R 775 %D/share/nethack +@exec chmod 2755 %D/share/nethack/nethack +@exec chown games:games %D/share/nethack/save +@unexec rm -rf %D/share/nethack/save +share/doc/nethack/Guidebook.txt +share/nethack/Arc-fila.lev +share/nethack/Arc-filb.lev +share/nethack/Arc-goal.lev +share/nethack/Arc-loca.lev +share/nethack/Arc-strt.lev +share/nethack/Bar-fila.lev +share/nethack/Bar-filb.lev +share/nethack/Bar-goal.lev +share/nethack/Bar-loca.lev +share/nethack/Bar-strt.lev +share/nethack/Cav-fila.lev +share/nethack/Cav-filb.lev +share/nethack/Cav-goal.lev +share/nethack/Cav-loca.lev +share/nethack/Cav-strt.lev +share/nethack/Hea-fila.lev +share/nethack/Hea-filb.lev +share/nethack/Hea-goal.lev +share/nethack/Hea-loca.lev +share/nethack/Hea-strt.lev +share/nethack/Kni-fila.lev +share/nethack/Kni-filb.lev +share/nethack/Kni-goal.lev +share/nethack/Kni-loca.lev +share/nethack/Kni-strt.lev +share/nethack/Mon-fila.lev +share/nethack/Mon-filb.lev +share/nethack/Mon-goal.lev +share/nethack/Mon-loca.lev +share/nethack/Mon-strt.lev +share/nethack/Pri-fila.lev +share/nethack/Pri-filb.lev +share/nethack/Pri-goal.lev +share/nethack/Pri-loca.lev +share/nethack/Pri-strt.lev +share/nethack/Ran-fila.lev +share/nethack/Ran-filb.lev +share/nethack/Ran-goal.lev +share/nethack/Ran-loca.lev +share/nethack/Ran-strt.lev +share/nethack/Rog-fila.lev +share/nethack/Rog-filb.lev +share/nethack/Rog-goal.lev +share/nethack/Rog-loca.lev +share/nethack/Rog-strt.lev +share/nethack/Sam-fila.lev +share/nethack/Sam-filb.lev +share/nethack/Sam-goal.lev +share/nethack/Sam-loca.lev +share/nethack/Sam-strt.lev +share/nethack/Tou-fila.lev +share/nethack/Tou-filb.lev +share/nethack/Tou-goal.lev +share/nethack/Tou-loca.lev +share/nethack/Tou-strt.lev +share/nethack/Val-fila.lev +share/nethack/Val-filb.lev +share/nethack/Val-goal.lev +share/nethack/Val-loca.lev +share/nethack/Val-strt.lev +share/nethack/Wiz-fila.lev +share/nethack/Wiz-filb.lev +share/nethack/Wiz-goal.lev +share/nethack/Wiz-loca.lev +share/nethack/Wiz-strt.lev +share/nethack/air.lev +share/nethack/asmodeus.lev +share/nethack/astral.lev +share/nethack/baalz.lev +share/nethack/bigrm-1.lev +share/nethack/bigrm-2.lev +share/nethack/bigrm-3.lev +share/nethack/bigrm-4.lev +share/nethack/bigrm-5.lev +share/nethack/castle.lev +share/nethack/cmdhelp +share/nethack/data +share/nethack/dungeon +share/nethack/earth.lev +share/nethack/fakewiz1.lev +share/nethack/fakewiz2.lev +share/nethack/fire.lev +share/nethack/help +share/nethack/hh +share/nethack/history +share/nethack/juiblex.lev +share/nethack/knox.lev +share/nethack/license +share/nethack/mapbg.xpm +share/nethack/medusa-1.lev +share/nethack/medusa-2.lev +share/nethack/minefill.lev +share/nethack/minend-1.lev +share/nethack/minend-2.lev +share/nethack/minetn-1.lev +share/nethack/minetn-2.lev +share/nethack/opthelp +share/nethack/options +share/nethack/oracle.lev +share/nethack/oracles +share/nethack/orcus.lev +share/nethack/pet_mark.xbm +share/nethack/quest.dat +share/nethack/rumors +share/nethack/sanctum.lev +share/nethack/soko1-1.lev +share/nethack/soko1-2.lev +share/nethack/soko2-1.lev +share/nethack/soko2-2.lev +share/nethack/soko3-1.lev +share/nethack/soko3-2.lev +share/nethack/soko4-1.lev +share/nethack/soko4-2.lev +share/nethack/tower1.lev +share/nethack/tower2.lev +share/nethack/tower3.lev +share/nethack/valley.lev +share/nethack/water.lev +share/nethack/wizard1.lev +share/nethack/wizard2.lev +share/nethack/wizard3.lev +share/nethack/wizhelp +share/nethack/rip.xpm +share/nethack/x11tiles +@mode 664 +share/nethack/logfile +share/nethack/record +share/nethack/perm +@dirrm share/nethack +@dirrm share/doc/nethack |