Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 16 Dec 1999 08:58:30 -0800 (PST)
From:      nethack@chaos.dk
To:        freebsd-gnats-submit@freebsd.org
Subject:   ports/15517: Port of newly released game nethack 3.3.0
Message-ID:  <19991216165830.16A8D14CAB@hub.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         15517
>Category:       ports
>Synopsis:       Port of newly released game nethack 3.3.0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Dec 16 09:00:00 PST 1999
>Closed-Date:
>Last-Modified:
>Originator:     Ole Moller
>Release:        3.1-RELEASE
>Organization:
chaos.dk
>Environment:
>Description:
I followed the description at http://www.freebsd.org/handbook/ports-advanced.html and thinks it complies (this beeing my first port I really dont know) heavily inspired by the old nethack port.

I have put a copy of the original tarball online (http://www.mame.dk/nethack/nethack-3.3.0.tar.gz) as a backup for the primary site.

The compile should work fine with both tty and XFree, I couldnt figure out how to make the XFree-stuff optional though.

>How-To-Repeat:

>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	/usr/ports/games/nethack3
#	/usr/ports/games/nethack3/Makefile
#	/usr/ports/games/nethack3/files
#	/usr/ports/games/nethack3/files/md5
#	/usr/ports/games/nethack3/patches
#	/usr/ports/games/nethack3/patches/patch-mail.c
#	/usr/ports/games/nethack3/patches/patch-system.h
#	/usr/ports/games/nethack3/patches/patch-config.h
#	/usr/ports/games/nethack3/patches/patch-Makefile.top
#	/usr/ports/games/nethack3/patches/patch-Makefile.src
#	/usr/ports/games/nethack3/patches/patch-Makefile.doc
#	/usr/ports/games/nethack3/patches/patch-unixconf.h
#	/usr/ports/games/nethack3/pkg
#	/usr/ports/games/nethack3/pkg/COMMENT
#	/usr/ports/games/nethack3/pkg/DESCR
#	/usr/ports/games/nethack3/pkg/PLIST
#
echo c - /usr/ports/games/nethack3
mkdir -p /usr/ports/games/nethack3 > /dev/null 2>&1
echo x - /usr/ports/games/nethack3/Makefile
sed 's/^X//' >/usr/ports/games/nethack3/Makefile << 'END-of-/usr/ports/games/nethack3/Makefile'
X# New ports collection makefile for:	nethack
X# Version required:	3.3.0
X# Date created:		10 December 1999
X# Whom:			Ole Moller
X#
X# $FreeBSD$
X#
X
XDISTNAME=	nethack-3.3.0
XCATEGORIES=	games
XMASTER_SITES=	ftp://ftp.nethack.org/pub/nethack/src/ \
X		http://www.mame.dk/nethack/
X
XMAINTAINER=	nethack@chaos.dk
X
XLIB_DEPENDS=	Xpm.4:${PORTSDIR}/graphics/xpm
X
XMAN6=		dgn_comp.6 dlb.6 lev_comp.6 nethack.6 recover.6
X
Xpre-configure:
X	@cd ${WRKSRC}/sys/unix; ${SH} setup.sh
X
Xpost-install:
X	strip ${PREFIX}/share/nethack/nethack
X	@cd ${WRKSRC}/doc; chmod 644 *.6
X	@cd ${WRKSRC}/doc; PREFIX=${PREFIX} ${MAKE} manpages
X.if !defined(NOPORTDOCS)
X	${MKDIR} ${PREFIX}/share/doc/nethack
X	${CP} ${WRKSRC}/doc/Guidebook.txt ${PREFIX}/share/doc/nethack
X.endif
X
X.include <bsd.port.mk>
END-of-/usr/ports/games/nethack3/Makefile
echo c - /usr/ports/games/nethack3/files
mkdir -p /usr/ports/games/nethack3/files > /dev/null 2>&1
echo x - /usr/ports/games/nethack3/files/md5
sed 's/^X//' >/usr/ports/games/nethack3/files/md5 << 'END-of-/usr/ports/games/nethack3/files/md5'
XMD5 (nethack-3.3.0.tar.gz) = cf9f4039408321f39c3ef733455cb73a
END-of-/usr/ports/games/nethack3/files/md5
echo c - /usr/ports/games/nethack3/patches
mkdir -p /usr/ports/games/nethack3/patches > /dev/null 2>&1
echo x - /usr/ports/games/nethack3/patches/patch-mail.c
sed 's/^X//' >/usr/ports/games/nethack3/patches/patch-mail.c << 'END-of-/usr/ports/games/nethack3/patches/patch-mail.c'
X--- ./src/mail.c.org	Sat Dec 11 06:20:54 1999
X+++ ./src/mail.c	Thu Dec 16 15:16:20 1999
X@@ -71,11 +71,15 @@
X #  ifdef LINUX
X #   define MAILPATH "/var/spool/mail"
X #  else
X-#   if defined(BSD) || defined(ULTRIX)
X-#    define MAILPATH "/usr/spool/mail/"
X-#   endif
X-#   if defined(SYSV) || defined(HPUX)
X-#    define MAILPATH "/usr/mail/"
X+#   if defined(__FreeBSD__)
X+#    define MAILPATH "/var/mail"
X+#   else
X+#    if defined(BSD) || defined(ULTRIX)
X+#     define MAILPATH "/usr/spool/mail/"
X+#    endif
X+#    if defined(SYSV) || defined(HPUX)
X+#     define MAILPATH "/usr/mail/"
X+#    endif
X #   endif
X #  endif /* LINUX */
X # endif /* AMS */
END-of-/usr/ports/games/nethack3/patches/patch-mail.c
echo x - /usr/ports/games/nethack3/patches/patch-system.h
sed 's/^X//' >/usr/ports/games/nethack3/patches/patch-system.h << 'END-of-/usr/ports/games/nethack3/patches/patch-system.h'
X--- ./include/system.h.org	Thu Dec 16 14:35:16 1999
X+++ ./include/system.h	Thu Dec 16 14:37:08 1999
X@@ -80,7 +80,7 @@
X # if !defined(SUNOS4) || defined(RANDOM)
X E void FDECL(srandom, (unsigned int));
X # else
X-#  ifndef bsdi
X+#  if !defined(bsdi) && !defined(__FreeBSD__)
X E int FDECL(srandom, (unsigned int));
X #  endif
X # endif
END-of-/usr/ports/games/nethack3/patches/patch-system.h
echo x - /usr/ports/games/nethack3/patches/patch-config.h
sed 's/^X//' >/usr/ports/games/nethack3/patches/patch-config.h << 'END-of-/usr/ports/games/nethack3/patches/patch-config.h'
X--- ./include/config.h.org	Thu Dec 16 14:39:45 1999
X+++ ./include/config.h	Thu Dec 16 14:46:53 1999
X@@ -43,7 +43,7 @@
X  * Some combinations make no sense.  See the installation document.
X  */
X #define TTY_GRAPHICS	/* good old tty based graphics */
X-/* #define X11_GRAPHICS */ /* X11 interface */
X+#define X11_GRAPHICS /* X11 interface */
X /* #define QT_GRAPHICS */	/* Qt interface */
X 
X /*
X@@ -92,7 +92,7 @@
X  * would allow:
X  *  xpmtoppm <x11tiles.xpm | pnmscale 1.25 | ppmquant 90 >x11tiles_big.xpm
X  */
X-/* # define USE_XPM */		/* Disable if you do not have the XPM library */
X+# define USE_XPM 		/* Disable if you do not have the XPM library */
X # ifdef USE_XPM
X #  define GRAPHIC_TOMBSTONE	/* Use graphical tombstone (rip.xpm) */
X # endif
X@@ -133,11 +133,11 @@
X 
X #ifdef UNIX
X /* path and file name extension for compression program */
X-#define COMPRESS "/usr/bin/compress"	/* Lempel-Ziv compression */
X-#define COMPRESS_EXTENSION ".Z"		/* compress's extension */
X+/* #define COMPRESS "/usr/bin/compress" */	/* Lempel-Ziv compression */
X+/* #define COMPRESS_EXTENSION ".Z" */		/* compress's extension */
X /* An example of one alternative you might want to use: */
X-/* #define COMPRESS "/usr/local/bin/gzip" */	/* FSF gzip compression */
X-/* #define COMPRESS_EXTENSION ".gz" */		/* normal gzip extension */
X+#define COMPRESS "/usr/bin/gzip" 	/* FSF gzip compression */
X+#define COMPRESS_EXTENSION ".gz" 		/* normal gzip extension */
X #endif
X 
X #ifndef COMPRESS
X@@ -168,7 +168,7 @@
X  * otherwise it will be the current directory.
X  */
X # ifndef HACKDIR
X-#  define HACKDIR "/usr/games/lib/nethackdir"	/* nethack directory */
X+#  define HACKDIR "/usr/local/share/nethack"	/* nethack directory */
X # endif
X 
X /*
END-of-/usr/ports/games/nethack3/patches/patch-config.h
echo x - /usr/ports/games/nethack3/patches/patch-Makefile.top
sed 's/^X//' >/usr/ports/games/nethack3/patches/patch-Makefile.top << 'END-of-/usr/ports/games/nethack3/patches/patch-Makefile.top'
X--- ./sys/unix/Makefile.top.org	Thu Dec 16 14:48:15 1999
X+++ ./sys/unix/Makefile.top	Thu Dec 16 16:35:46 1999
X@@ -14,17 +14,16 @@
X # MAKE = make
X 
X # make NetHack
X-PREFIX	= /usr
X GAME     = nethack
X GAMEUID  = games
X-GAMEGRP  = bin
X+GAMEGRP  = games
X 
X # Permissions - some places use setgid instead of setuid, for instance
X # See also the option "SECURE" in include/config.h
X-GAMEPERM = 04755
X-FILEPERM = 0644
X+GAMEPERM = 02755
X+FILEPERM = 0664
X EXEPERM  = 0755
X-DIRPERM  = 0755
X+DIRPERM  = 0775
X 
X # GAMEDIR also appears in config.h as "HACKDIR".
X #
X@@ -33,8 +32,8 @@
X # therefore there should not be anything in GAMEDIR that you want to keep
X # (if there is, you'll have to do the installation by hand or modify the
X # instructions)
X-GAMEDIR  = $(PREFIX)/games/lib/$(GAME)dir
X-SHELLDIR = $(PREFIX)/games
X+GAMEDIR  = ${PREFIX}/share/$(GAME)
X+SHELLDIR = ${PREFIX}/bin
X 
X # per discussion in Install.X11 and Install.Qt
X VARDATND = 
END-of-/usr/ports/games/nethack3/patches/patch-Makefile.top
echo x - /usr/ports/games/nethack3/patches/patch-Makefile.src
sed 's/^X//' >/usr/ports/games/nethack3/patches/patch-Makefile.src << 'END-of-/usr/ports/games/nethack3/patches/patch-Makefile.src'
X--- ./sys/unix/Makefile.src.org	Thu Dec 16 14:52:05 1999
X+++ ./sys/unix/Makefile.src	Thu Dec 16 15:12:50 1999
X@@ -132,8 +132,8 @@
X # flags for debugging:
X # CFLAGS = -g -I../include
X 
X-CFLAGS = -O -I../include
X-LFLAGS = 
X+CFLAGS += -O -I../include -I${X11BASE}/include
X+LFLAGS =  -L${X11BASE}/lib
X 
X # Only used for Qt interface (other interfaces are standard C)
X CXXFLAGS = -g $(CFLAGS) -I. -I$(QTDIR)/include
X@@ -165,8 +165,8 @@
X 
X #
X # 
X-WINSRC = $(WINTTYSRC)
X-WINOBJ = $(WINTTYOBJ)
X+WINSRC = $(WINTTYSRC) $(WINX11SRC)
X+WINOBJ = $(WINTTYOBJ) $(WINX11OBJ)
X 
X # on some systems the termcap library is in -ltermcap or -lcurses
X # on 386 Xenix, the -ltermlib tputs() seems not to work; use -lcurses instead
X@@ -186,7 +186,7 @@
X #
X # libraries for X11
X # If USE_XPM is defined in config.h, you will also need -lXpm here.
X-WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11
X+WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11 -lXpm
X # WINX11LIB = -lXaw -lXmu -lXt -lX11
X # WINX11LIB = -lXaw -lXmu -lXext -lXt -lXpm -lX11 -lm
X # WINX11LIB = -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -lm # BSD/OS 2.0
X@@ -199,7 +199,7 @@
X #
X #
X 
X-WINLIB = $(WINTTYLIB)
X+WINLIB = $(WINTTYLIB) $(WINX11LIB)
X 
X # any other strange libraries your system needs (for Sysunix only -- the more
X # specialized targets should already be right)
X@@ -223,7 +223,7 @@
X # IRIX 4.0.x needs -lsun if NIS (YP) is being used for passwd file lookup
X # LIBS = -lsun
X #
X-LIBS =
X+LIBS = -lSM -lICE
X 
X # make NetHack
X GAME     = nethack
END-of-/usr/ports/games/nethack3/patches/patch-Makefile.src
echo x - /usr/ports/games/nethack3/patches/patch-Makefile.doc
sed 's/^X//' >/usr/ports/games/nethack3/patches/patch-Makefile.doc << 'END-of-/usr/ports/games/nethack3/patches/patch-Makefile.doc'
X--- ./sys/unix/Makefile.doc.org	Thu Dec 16 14:47:20 1999
X+++ ./sys/unix/Makefile.doc	Thu Dec 16 14:48:00 1999
X@@ -31,7 +31,7 @@
X 
X 
X GAME	= nethack
X-MANDIR	= /usr/man/man6
X+MANDIR	= ${PREFIX}/man/man6
X MANEXT	= 6
X 
X # manual installation for most BSD-style systems
END-of-/usr/ports/games/nethack3/patches/patch-Makefile.doc
echo x - /usr/ports/games/nethack3/patches/patch-unixconf.h
sed 's/^X//' >/usr/ports/games/nethack3/patches/patch-unixconf.h << 'END-of-/usr/ports/games/nethack3/patches/patch-unixconf.h'
X--- ./include/unixconf.h.org	Thu Dec 16 14:37:38 1999
X+++ ./include/unixconf.h	Thu Dec 16 15:20:35 1999
X@@ -45,7 +45,7 @@
X /* #define AIX_31 */	/* In AIX 3.1 (IBM RS/6000) use BSD ioctl's to gain
X 			* job control (note that AIX is SYSV otherwise)
X 			* Also define this for AIX 3.2 */
X-#define TERMINFO	/* uses terminfo rather than termcap */
X+/* #define TERMINFO */	/* uses terminfo rather than termcap */
X 			/* Should be defined for most SYSV, SVR4 (including
X 			* Solaris 2+), HPUX, and Linux systems.  In
X 			* particular, it should NOT be defined for the UNIXPC
X@@ -173,7 +173,11 @@
X #   ifdef __sgi
X #define DEF_MAILREADER	"/usr/sbin/Mail"
X #   else
X+#    if defined(__FreeBSD__)
X+#define DEF_MAILREADER  "/usr/bin/mail"
X+#    else
X #define DEF_MAILREADER	"/usr/bin/mailx"
X+#    endif
X #   endif
X #  endif
X # else
END-of-/usr/ports/games/nethack3/patches/patch-unixconf.h
echo c - /usr/ports/games/nethack3/pkg
mkdir -p /usr/ports/games/nethack3/pkg > /dev/null 2>&1
echo x - /usr/ports/games/nethack3/pkg/COMMENT
sed 's/^X//' >/usr/ports/games/nethack3/pkg/COMMENT << 'END-of-/usr/ports/games/nethack3/pkg/COMMENT'
XA dungeon explorin', slashin', hackin' game.
END-of-/usr/ports/games/nethack3/pkg/COMMENT
echo x - /usr/ports/games/nethack3/pkg/DESCR
sed 's/^X//' >/usr/ports/games/nethack3/pkg/DESCR << 'END-of-/usr/ports/games/nethack3/pkg/DESCR'
XNetHack is a single player dungeon exploration game that runs on a wide variety
Xof computer systems, with a variety of graphical and text interfaces all using
Xthe same game engine. Unlike many other Dungeons & Dragons-inspired games, the
Xemphasis in NetHack is on discovering the detail of the dungeon and not simply
Xkilling everything in sight - in fact, killing everything in sight is a good
Xway to die quickly. Each game presents a different landscape - the random
Xnumber generator provides an essentially unlimited number of variations of the
Xdungeon and its denizens to be discovered by the player in one of a number of
Xcharacters: you can pick your race, your role, and your gender. 
X
XFor more information, see
X	http://www.nethack.org/
X	http://www.win.tue.nl/games/roguelike/nethack/
X	news://rec.games.roguelike.nethack/
X
X- Ole Moller
Xnethack@chaos.dk
END-of-/usr/ports/games/nethack3/pkg/DESCR
echo x - /usr/ports/games/nethack3/pkg/PLIST
sed 's/^X//' >/usr/ports/games/nethack3/pkg/PLIST << 'END-of-/usr/ports/games/nethack3/pkg/PLIST'
Xbin/nethack
Xshare/doc/nethack/Guidebook.txt
Xshare/nethack/license
Xshare/nethack/quest.dat
Xshare/nethack/options
Xshare/nethack/oracles
Xshare/nethack/data
Xshare/nethack/Wiz-strt.lev
Xshare/nethack/Val-strt.lev
Xshare/nethack/Tou-strt.lev
Xshare/nethack/Sam-strt.lev
Xshare/nethack/Rog-strt.lev
Xshare/nethack/Ran-strt.lev
Xshare/nethack/Pri-strt.lev
Xshare/nethack/Mon-strt.lev
Xshare/nethack/Kni-strt.lev
Xshare/nethack/Hea-strt.lev
Xshare/nethack/Cav-strt.lev
Xshare/nethack/Bar-strt.lev
Xshare/nethack/Arc-strt.lev
Xshare/nethack/Wiz-loca.lev
Xshare/nethack/Val-loca.lev
Xshare/nethack/Tou-loca.lev
Xshare/nethack/Sam-loca.lev
Xshare/nethack/Rog-loca.lev
Xshare/nethack/Ran-loca.lev
Xshare/nethack/Pri-loca.lev
Xshare/nethack/Mon-loca.lev
Xshare/nethack/Kni-loca.lev
Xshare/nethack/Hea-loca.lev
Xshare/nethack/Cav-loca.lev
Xshare/nethack/Bar-loca.lev
Xshare/nethack/Arc-loca.lev
Xshare/nethack/Wiz-filb.lev
Xshare/nethack/Wiz-fila.lev
Xshare/nethack/Val-filb.lev
Xshare/nethack/Val-fila.lev
Xshare/nethack/Tou-filb.lev
Xshare/nethack/Tou-fila.lev
Xshare/nethack/Sam-filb.lev
Xshare/nethack/Sam-fila.lev
Xshare/nethack/Rog-filb.lev
Xshare/nethack/Rog-fila.lev
Xshare/nethack/Ran-filb.lev
Xshare/nethack/Ran-fila.lev
Xshare/nethack/Pri-filb.lev
Xshare/nethack/Pri-fila.lev
Xshare/nethack/Mon-filb.lev
Xshare/nethack/Mon-fila.lev
Xshare/nethack/Kni-filb.lev
Xshare/nethack/Kni-fila.lev
Xshare/nethack/Hea-filb.lev
Xshare/nethack/Hea-fila.lev
Xshare/nethack/Cav-filb.lev
Xshare/nethack/Cav-fila.lev
Xshare/nethack/Bar-filb.lev
Xshare/nethack/Bar-fila.lev
Xshare/nethack/Arc-filb.lev
Xshare/nethack/Arc-fila.lev
Xshare/nethack/Wiz-goal.lev
Xshare/nethack/Val-goal.lev
Xshare/nethack/Tou-goal.lev
Xshare/nethack/Sam-goal.lev
Xshare/nethack/Rog-goal.lev
Xshare/nethack/Ran-goal.lev
Xshare/nethack/Pri-goal.lev
Xshare/nethack/Mon-goal.lev
Xshare/nethack/Kni-goal.lev
Xshare/nethack/Hea-goal.lev
Xshare/nethack/Cav-goal.lev
Xshare/nethack/Bar-goal.lev
Xshare/nethack/Arc-goal.lev
Xshare/nethack/water.lev
Xshare/nethack/fire.lev
Xshare/nethack/earth.lev
Xshare/nethack/air.lev
Xshare/nethack/astral.lev
Xshare/nethack/wizard3.lev
Xshare/nethack/wizard2.lev
Xshare/nethack/wizard1.lev
Xshare/nethack/valley.lev
Xshare/nethack/tower3.lev
Xshare/nethack/tower2.lev
Xshare/nethack/tower1.lev
Xshare/nethack/soko4-2.lev
Xshare/nethack/soko4-1.lev
Xshare/nethack/soko3-2.lev
Xshare/nethack/soko3-1.lev
Xshare/nethack/soko2-2.lev
Xshare/nethack/soko2-1.lev
Xshare/nethack/soko1-2.lev
Xshare/nethack/soko1-1.lev
Xshare/nethack/sanctum.lev
Xshare/nethack/orcus.lev
Xshare/nethack/oracle.lev
Xshare/nethack/minetn-2.lev
Xshare/nethack/minetn-1.lev
Xshare/nethack/minefill.lev
Xshare/nethack/minend-2.lev
Xshare/nethack/minend-1.lev
Xshare/nethack/medusa-2.lev
Xshare/nethack/medusa-1.lev
Xshare/nethack/knox.lev
Xshare/nethack/juiblex.lev
Xshare/nethack/fakewiz2.lev
Xshare/nethack/fakewiz1.lev
Xshare/nethack/castle.lev
Xshare/nethack/bigrm-5.lev
Xshare/nethack/bigrm-4.lev
Xshare/nethack/bigrm-3.lev
Xshare/nethack/bigrm-2.lev
Xshare/nethack/bigrm-1.lev
Xshare/nethack/dungeon
Xshare/nethack/baalz.lev
Xshare/nethack/asmodeus.lev
Xshare/nethack/wizhelp
Xshare/nethack/opthelp
Xshare/nethack/history
Xshare/nethack/cmdhelp
Xshare/nethack/hh
Xshare/nethack/help
Xshare/nethack/rumors
Xshare/nethack/nethack
X@mode 664
Xshare/nethack/perm
Xshare/nethack/record
Xshare/nethack/logfile
X@exec mkdir %D/share/nethack/save
X@exec chmod -R 775 %D/share/nethack
X@exec chmod 2755 %D/share/nethack/nethack
X@exec chown games.games %D/share/nethack/save
X@unexec rm -rf %D/share/nethack/save
X@dirrm share/nethack
END-of-/usr/ports/games/nethack3/pkg/PLIST
exit



>Release-Note:
>Audit-Trail:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?19991216165830.16A8D14CAB>