Date: Thu, 15 Jun 2000 17:20:04 -0700 (PDT) From: kbyanc@posi.net To: FreeBSD-gnats-submit@freebsd.org Subject: ports/19318: new port: games/nethack-gtk Message-ID: <200006160020.RAA29363@kbyanc.corp.ONElist.com>
next in thread | raw e-mail | index | archive | help
>Number: 19318 >Category: ports >Synopsis: new port: games/nethack-gtk >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 Jun 15 17:30:01 PDT 2000 >Closed-Date: >Last-Modified: >Originator: Kelly Yancey >Release: FreeBSD 4.0-STABLE i386 >Organization: >Environment: >Description: # 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: # # games/nethack-gtk # games/nethack-gtk/Makefile # games/nethack-gtk/files # games/nethack-gtk/files/md5 # games/nethack-gtk/files/sample.nethackrc # games/nethack-gtk/files/src-Makefile.diff # games/nethack-gtk/patches # games/nethack-gtk/patches/patch-aa # games/nethack-gtk/patches/patch-ab # games/nethack-gtk/patches/patch-ad # games/nethack-gtk/patches/patch-ac # games/nethack-gtk/pkg # games/nethack-gtk/pkg/PLIST # games/nethack-gtk/pkg/DESCR # games/nethack-gtk/pkg/COMMENT # echo c - games/nethack-gtk mkdir -p games/nethack-gtk > /dev/null 2>&1 echo x - games/nethack-gtk/Makefile sed 's/^X//' >games/nethack-gtk/Makefile << 'END-of-games/nethack-gtk/Makefile' X# New ports collection makefile for: nethack-gtk X# Date created: June 15, 2000 X# Whom: Kelly Yancey <kbyanc@posi.net> X# X# $FreeBSD$ X# X XPORTNAME= gtk-nethack XPORTVERSION= 1.1.5 XCATEGORIES= games XMASTER_SITES= ftp://ftp.jnethack.org/pub/jnethack/ \ X ftp://ftp.uu.net/systems/gnu/nethack/ XDISTNAME= nethack-3.2.2 XDISTFILES= ${DISTNAME}${EXTRACT_SUFX} ${GTK_PATCH} XPATCH_SITES= ftp://ftp.jnethack.org/pub/nethack/ XPATCHFILES= nh-3.2.2-3.2.3.diff \ X nethack-gtk-1.1.5-nethack-3.2.3.patch.gz X XMAINTAINER= ports@FreeBSD.org X XEXTRACT_ONLY= nethack-3.2.2.tar.gz X XLIB_DEPENDS= gtk12.2:${PORTSDIR}/x11-toolkits/gtk12 \ X Xpm.4:${PORTSDIR}/graphics/xpm X XUSE_GMAKE= yes XMAN6= dgn_comp.6 dlb.6 lev_comp.6 nethack.6 recover.6 X Xpre-configure: X @ ${ECHO} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" X @ ${ECHO} "!! You cannot install nethack and nethack-gtk in parallel !!" X @ ${ECHO} "!! But nethack-gtk might read your prior nethack scores !!" X @ ${ECHO} "!! Don't forget to backup your nethack libdir if it's !!" X @ ${ECHO} "!! important for you !!" X @ ${ECHO} "!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!" X @ cd ${WRKSRC}/sys/unix; ${SH} setup.sh X @ cd ${WRKSRC}; ${PATCH} -s < ${FILESDIR}/src-Makefile.diff X Xpost-install: 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-games/nethack-gtk/Makefile echo c - games/nethack-gtk/files mkdir -p games/nethack-gtk/files > /dev/null 2>&1 echo x - games/nethack-gtk/files/md5 sed 's/^X//' >games/nethack-gtk/files/md5 << 'END-of-games/nethack-gtk/files/md5' XMD5 (nethack-3.2.2.tar.gz) = 2571a63135b4d0aa910d52c386b669a6 XMD5 (nh-3.2.2-3.2.3.diff) = 440141990df326d5a973d890179cffae XMD5 (nethack-gtk-1.1.5-nethack-3.2.3.patch.gz) = a9e75005f23a5eea2a4879237ac851d4 END-of-games/nethack-gtk/files/md5 echo x - games/nethack-gtk/files/sample.nethackrc sed 's/^X//' >games/nethack-gtk/files/sample.nethackrc << 'END-of-games/nethack-gtk/files/sample.nethackrc' XOPTIONS=!silent XOPTIONS=!time XOPTIONS=catname:Ghisteslwchlohm XOPTIONS=color XOPTIONS=dogname:Dhairrhuwyth XOPTIONS=hilite_pet XOPTIONS=lit_corridor XOPTIONS=menustyle:partial XOPTIONS=msghistory:200 XOPTIONS=news XOPTIONS=noautopickup XOPTIONS=rest_on_space XOPTIONS=safe_pet XOPTIONS=showexp XOPTIONS=showscore XOPTIONS=sortpack XOPTIONS=time XOPTIONS=tombstone XOPTIONS=toptenwin XOPTIONS=verbose XSOUNDDIR=/usr/local/lib/nethackdir XSOUND=MESG "needs food, badly" "weak.au" 100 XSOUND=MESG "feel weak" "weak.au" 100 XSOUND=MESG "bear trap closes" "beartrap.au" 100 XSOUND=MESG "board beneath you squeaks" "squeek.au" 100 XSOUND=MESG "board beneath .....* squeaks" "squeek.au" 60 XSOUND=MESG "a distant squeak" "squeek.au" 25 XSOUND=MESG "mind releases itself from" "memories.au" 100 XSOUND=MESG "on itself, you forget" "memories.au" 100 XSOUND=MESG "Who was that Maud person" "memories.au" 100 XSOUND=MESG "Thinking of Maud you forget" "memories.au" 100 XSOUND=MESG "you forget everything" "memories.au" 100 XSOUND=MESG "smell marsh gas" "frogs.au" 100 XSOUND=MESG "must have been exercising" "tada.au" 100 XSOUND=MESG "must have been very obs" "tada.au" 100 XSOUND=MESG "must have been working on" "tada.au" 100 XSOUND=MESG "must be leading a healthy" "tada.au" 100 XSOUND=MESG "Keystone Kops appear!" "kops.au" 100 XSOUND=MESG "Keystone Kops are after you" "kops.au" 100 XSOUND=MESG "interesting topological ex" "mock.au" 100 XSOUND=MESG "Interesting\.\.\." "mock.au" 100 XSOUND=MESG "deathly sick\." "ohdear.au" 80 XSOUND=MESG "feel feverish" "ohdear.au" 80 XSOUND=MESG "brain is eaten" "minderode.au" 80 XSOUND=MESG "thought thou couldst kill" "yendor.au" 120 XSOUND=MESG "begin praying to" "latin_short.au" 70 XSOUND=MESG "sense of peace" "latin.au" 20 XSOUND=MESG "have a.* forbidding feeling" "latin.au" 20 X#SOUND=MESG "door opens\." "dooropen2.au" 100 X#SOUND=MESG "You drop " "drop.au" 10 X#SOUND=MESG "You destroy " "destroy2.au" 30 X#SOUND=MESG "You kill " "destroy2.au" 20 X#SOUND=MESG "is killed" "destroy2.au" 10 X#SOUND=MESG "You miss " "miss2.au" 20 X#SOUND=MESG "fiery blade burns" "hit2.au" 30 X#SOUND=MESG "ice-cold blade freezes" "hit2.au" 30 X#SOUND=MESG "You hit " "hit2.au" 20 X#SOUND=MESG "The spell hits" "hit2.au" 20 XSOUND=MESG "breathes" "breath.au" 100 XSOUND=MESG "a door open\." "dooropen2.au" 100 XSOUND=MESG "Klunk" "clunk.au" 100 XSOUND=MESG "guard on patrol" "coin.au" 50 XSOUND=MESG "quarterback calling" "coin.au" 50 XSOUND=MESG "someone counting" "coin.au" 50 XSOUND=MESG "Ebenezer Scrooge" "coin.au" 50 XSOUND=MESG "someone cursing shoplifters" "gong.au" 50 XSOUND=MESG "chime of a cash register" "gong.au" 50 XSOUND=MESG "Neiman and Marcus" "gong.au" 50 XSOUND=MESG "You die" "death.au" 100 XSOUND=MESG "sad feeling" "death.au" 50 XSOUND=MESG "door closes\." "doorclos.au" 100 XSOUND=MESG "cosmic" "hallu.au" 100 XSOUND=MESG "explosion" "landmine.au" 100 XSOUND=MESG "KABOOM" "landmine.au" 100 X#SOUND=MESG "KAABLAM" "landmine.au" 100 XSOUND=MESG "trigger.* a land *mine" "landmine.au" 100 XSOUND=MESG "elcome to experi" "level_up.au" 100 XSOUND=MESG "memorize" "memor.au" 100 X#SOUND=MESG "Ouch" "ouch2.au" 100 X#SOUND=MESG "XXXfall through\.\.\." "trapdoor.au" 100 XSOUND=MESG "vomit" "vomit.au" 100 XSOUND=MESG "whistling" "whistle2.au" 100 XSOUND=MESG "crashes open" "thump.au" 100 XSOUND=MESG "You break open the lock" "thump.au" 100 X#SOUND=MESG "THUD" "thump.au" 40 X#SOUND=MESG "WHAMM" "thump.au" 50 XSOUND=MESG "welcome to NetHack" "awaits.au" 100 XSOUND=MESG "strange vibration under" "forcefld.au" 100 END-of-games/nethack-gtk/files/sample.nethackrc echo x - games/nethack-gtk/files/src-Makefile.diff sed 's/^X//' >games/nethack-gtk/files/src-Makefile.diff << 'END-of-games/nethack-gtk/files/src-Makefile.diff' X--- src/Makefile.orig Wed Jun 14 22:37:10 2000 X+++ src/Makefile Wed Jun 14 22:38:40 2000 X@@ -124,8 +124,8 @@ X # flags for debugging: X # CFLAGS = -g -I../include X X-CFLAGS = -O -I../include -I/usr/X11R6/include `gtk-config --cflags` X-LFLAGS = -O -L/usr/X11R6/lib `gtk-config --libs` X+CFLAGS = -O -I../include -I/usr/X11R6/include `gtk12-config --cflags` X+LFLAGS = -O -L/usr/X11R6/lib `gtk12-config --libs` X X # Set the WINSRC, WINOBJ, and WINLIB lines to correspond to your desired X # combination of windowing systems. Also set windowing systems in config.h. END-of-games/nethack-gtk/files/src-Makefile.diff echo c - games/nethack-gtk/patches mkdir -p games/nethack-gtk/patches > /dev/null 2>&1 echo x - games/nethack-gtk/patches/patch-aa sed 's/^X//' >games/nethack-gtk/patches/patch-aa << 'END-of-games/nethack-gtk/patches/patch-aa' X--- sys/unix/Makefile.top.orig Thu Jun 15 15:58:10 2000 X+++ sys/unix/Makefile.top Thu Jun 15 15:58:23 2000 X@@ -32,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 = /usr/games/lib/$(GAME)dir X-SHELLDIR = /usr/games X+GAMEDIR = ${PREFIX}/share/$(GAME) X+SHELLDIR = ${PREFIX}/bin X X # per discussion in Install.X11 X VARDATND = END-of-games/nethack-gtk/patches/patch-aa echo x - games/nethack-gtk/patches/patch-ab sed 's/^X//' >games/nethack-gtk/patches/patch-ab << 'END-of-games/nethack-gtk/patches/patch-ab' X--- include/config.h.orig Wed Jun 14 22:54:31 2000 X+++ include/config.h Wed Jun 14 22:54:34 2000 X@@ -374,7 +374,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-games/nethack-gtk/patches/patch-ab echo x - games/nethack-gtk/patches/patch-ad sed 's/^X//' >games/nethack-gtk/patches/patch-ad << 'END-of-games/nethack-gtk/patches/patch-ad' Xdiff -ruN ./sys/unix/Makefile.doc ../nethack-3.2.2/sys/unix/Makefile.doc X--- ./sys/unix/Makefile.doc Wed Dec 11 05:20:08 1996 X+++ ../nethack-3.2.2/sys/unix/Makefile.doc Sun Mar 21 17:25:02 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-games/nethack-gtk/patches/patch-ad echo x - games/nethack-gtk/patches/patch-ac sed 's/^X//' >games/nethack-gtk/patches/patch-ac << 'END-of-games/nethack-gtk/patches/patch-ac' X--- include/system.h.orig Wed Jun 14 23:00:05 2000 X+++ include/system.h Wed Jun 14 23:00:07 2000 X@@ -512,7 +512,7 @@ X # if defined(ULTRIX) || defined(SYSV) || defined(MICRO) || defined(VMS) || defined(MAC) X E time_t FDECL(time, (time_t *)); X # else X-E long FDECL(time, (time_t *)); X+E time_t FDECL(time, (time_t *)); X # endif /* ULTRIX */ X X #ifdef VMS END-of-games/nethack-gtk/patches/patch-ac echo c - games/nethack-gtk/pkg mkdir -p games/nethack-gtk/pkg > /dev/null 2>&1 echo x - games/nethack-gtk/pkg/PLIST sed 's/^X//' >games/nethack-gtk/pkg/PLIST << 'END-of-games/nethack-gtk/pkg/PLIST' Xbin/nethack Xshare/nethack/nethack 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 Xshare/doc/nethack/Guidebook.txt Xshare/nethack/x11tiles Xshare/nethack/W-start.lev Xshare/nethack/V-start.lev Xshare/nethack/T-start.lev Xshare/nethack/S-start.lev Xshare/nethack/R-start.lev Xshare/nethack/P-start.lev Xshare/nethack/K-start.lev Xshare/nethack/H-start.lev Xshare/nethack/E-start.lev Xshare/nethack/C-start.lev Xshare/nethack/B-start.lev Xshare/nethack/A-start.lev Xshare/nethack/W-locate.lev Xshare/nethack/V-locate.lev Xshare/nethack/T-locate.lev Xshare/nethack/S-locate.lev Xshare/nethack/R-locate.lev Xshare/nethack/P-locate.lev Xshare/nethack/K-locate.lev Xshare/nethack/H-locate.lev Xshare/nethack/E-locate.lev Xshare/nethack/C-locate.lev Xshare/nethack/B-locate.lev Xshare/nethack/A-locate.lev Xshare/nethack/W-fillb.lev Xshare/nethack/W-filla.lev Xshare/nethack/V-fillb.lev Xshare/nethack/V-filla.lev Xshare/nethack/T-fillb.lev Xshare/nethack/T-filla.lev Xshare/nethack/S-fillb.lev Xshare/nethack/S-filla.lev Xshare/nethack/R-fillb.lev Xshare/nethack/R-filla.lev Xshare/nethack/P-fillb.lev Xshare/nethack/P-filla.lev Xshare/nethack/K-fillb.lev Xshare/nethack/K-filla.lev Xshare/nethack/H-fillb.lev Xshare/nethack/H-filla.lev Xshare/nethack/E-fillb.lev Xshare/nethack/E-filla.lev Xshare/nethack/C-fillb.lev Xshare/nethack/C-filla.lev Xshare/nethack/B-fillb.lev Xshare/nethack/B-filla.lev Xshare/nethack/A-fillb.lev Xshare/nethack/A-filla.lev Xshare/nethack/W-goal.lev Xshare/nethack/V-goal.lev Xshare/nethack/T-goal.lev Xshare/nethack/S-goal.lev Xshare/nethack/R-goal.lev Xshare/nethack/P-goal.lev Xshare/nethack/K-goal.lev Xshare/nethack/H-goal.lev Xshare/nethack/E-goal.lev Xshare/nethack/C-goal.lev Xshare/nethack/B-goal.lev Xshare/nethack/A-goal.lev Xshare/nethack/floor.xpm Xshare/nethack/credit.xpm Xshare/nethack/t32-1024.xpm Xshare/nethack/rip.xpm Xshare/nethack/pet_mark.xbm Xshare/nethack/NetHack Xshare/nethack/gtkrc Xshare/nethack/nh10.pcf Xshare/nethack/fonts.dir Xshare/nethack/quest.dat Xshare/nethack/options Xshare/nethack/oracles Xshare/nethack/data 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/dungeon Xshare/nethack/wizard1.lev Xshare/nethack/valley.lev Xshare/nethack/tower3.lev Xshare/nethack/tower2.lev Xshare/nethack/tower1.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/wizhelp Xshare/nethack/bigrm-2.lev Xshare/nethack/bigrm-1.lev Xshare/nethack/baalz.lev Xshare/nethack/asmodeus.lev Xshare/nethack/opthelp Xshare/nethack/history Xshare/nethack/cmdhelp Xshare/nethack/hh Xshare/nethack/help Xshare/nethack/license Xshare/nethack/rumors X@mode 664 Xshare/nethack/logfile Xshare/nethack/record Xshare/nethack/perm X@dirrm share/nethack X@dirrm share/doc/nethack END-of-games/nethack-gtk/pkg/PLIST echo x - games/nethack-gtk/pkg/DESCR sed 's/^X//' >games/nethack-gtk/pkg/DESCR << 'END-of-games/nethack-gtk/pkg/DESCR' XThis is the clasic hack'n'slash adventure game, nethack, revamped with a GTK Xinterface and graphics. X XWWW: http://www.jnethack.org/jnethack-e.html X X -Kelly X kbyanc@posi.net END-of-games/nethack-gtk/pkg/DESCR echo x - games/nethack-gtk/pkg/COMMENT sed 's/^X//' >games/nethack-gtk/pkg/COMMENT << 'END-of-games/nethack-gtk/pkg/COMMENT' XNethack 3.2.3 with GTK interface and graphics END-of-games/nethack-gtk/pkg/COMMENT exit >How-To-Repeat: >Fix: >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?200006160020.RAA29363>