diff options
author | wiz <wiz@pkgsrc.org> | 2011-06-01 11:20:29 +0000 |
---|---|---|
committer | wiz <wiz@pkgsrc.org> | 2011-06-01 11:20:29 +0000 |
commit | a303564cb953d0ae5b36cff6fbc376565e3e6fcf (patch) | |
tree | 7818fa37c04883655fe9407a8458e376432a8538 /games/nethack-qt | |
parent | 84087a740f9d001f9c2db0b9d7bfa25731e36643 (diff) | |
download | pkgsrc-a303564cb953d0ae5b36cff6fbc376565e3e6fcf.tar.gz |
DESTDIRify nethack. Merge patches and distinfo. Some other improvements.
From Rhialto in PR 45010.
Diffstat (limited to 'games/nethack-qt')
-rw-r--r-- | games/nethack-qt/MESSAGE | 5 | ||||
-rw-r--r-- | games/nethack-qt/Makefile | 21 | ||||
-rw-r--r-- | games/nethack-qt/PLIST | 5 | ||||
-rw-r--r-- | games/nethack-qt/distinfo | 13 | ||||
-rw-r--r-- | games/nethack-qt/patches/patch-aa | 59 | ||||
-rw-r--r-- | games/nethack-qt/patches/patch-ab | 121 | ||||
-rw-r--r-- | games/nethack-qt/patches/patch-ac | 49 | ||||
-rw-r--r-- | games/nethack-qt/patches/patch-ae | 13 | ||||
-rw-r--r-- | games/nethack-qt/patches/patch-af | 65 | ||||
-rw-r--r-- | games/nethack-qt/patches/patch-ag | 13 | ||||
-rw-r--r-- | games/nethack-qt/patches/patch-ah | 53 | ||||
-rw-r--r-- | games/nethack-qt/patches/patch-ai | 26 |
12 files changed, 22 insertions, 421 deletions
diff --git a/games/nethack-qt/MESSAGE b/games/nethack-qt/MESSAGE index 3bf5100728a..ac0720e054b 100644 --- a/games/nethack-qt/MESSAGE +++ b/games/nethack-qt/MESSAGE @@ -1,6 +1,9 @@ =========================================================================== -$NetBSD: MESSAGE,v 1.3 2002/09/24 12:30:00 wiz Exp $ +$NetBSD: MESSAGE,v 1.4 2011/06/01 11:20:29 wiz Exp $ You can run the QT NetHack by typing "nethack qt" +To fall back to tty mode, use "NETHACKOPTIONS=windowtype:tty nethack" +or set that option in your .nethackrc file. + =========================================================================== diff --git a/games/nethack-qt/Makefile b/games/nethack-qt/Makefile index e5e731ae522..c5be5f0d0b6 100644 --- a/games/nethack-qt/Makefile +++ b/games/nethack-qt/Makefile @@ -1,27 +1,34 @@ -# $NetBSD: Makefile,v 1.58 2011/01/13 13:37:48 wiz Exp $ +# $NetBSD: Makefile,v 1.59 2011/06/01 11:20:29 wiz Exp $ # .include "../../games/nethack-lib/Makefile.common" PKGNAME= nethack-qt-${NETHACK_VERSION} -PKGREVISION= 10 +PKGREVISION= 11 CATEGORIES+= x11 MAKE_JOBS_SAFE= no -COMMENT= The QT-Enhanced X11 version of NetHack +COMMENT= The QT-Enhanced X11+tty version of NetHack DEPENDS+= nethack-lib-${NETHACK_VERSION}{,nb*}:../../games/nethack-lib USE_LANGUAGES= c c++ -BUILD_TARGET= x11tiles nethack +BUILD_TARGET= nethack x11tiles INSTALL_TARGET= binfiles MAKE_ENV+= GTYPE=-qt -CFLAGS+= -DPREFIX="\"${PREFIX}\"" +DISTINFO_FILE?= ${.CURDIR}/../nethack-lib/distinfo +PATCHDIR= ${.CURDIR}/../nethack-lib/patches + +SPECIAL_PERMS+= ${PREFIX}/bin/nethack-qt \ + ${GAMEPERM} post-install: - @${CP} -f ${WRKSRC}/dat/x11tiles ${WRKSRC}/dat/tiles.xpm - @${INSTALL_DATA} ${WRKSRC}/dat/tiles.xpm ${DESTDIR}${PREFIX}/share/${NETHACK_DIR} + ${CP} -f ${WRKSRC}/dat/x11tiles ${WRKSRC}/dat/tiles.xpm + ${INSTALL_DATA} ${WRKSRC}/dat/tiles.xpm ${DESTDIR}${GAMEDIR} + ${INSTALL_DATA} ${WRKSRC}/win/Qt/nhsplash.xpm ${DESTDIR}${GAMEDIR} + ${INSTALL_DATA} ${WRKSRC}/win/Qt/knh-mini.xpm ${DESTDIR}${GAMEDIR} + ${INSTALL_DATA} ${WRKSRC}/win/Qt/knh.xpm ${DESTDIR}${GAMEDIR} .include "../../x11/libXpm/buildlink3.mk" .include "../../x11/qt3-libs/buildlink3.mk" diff --git a/games/nethack-qt/PLIST b/games/nethack-qt/PLIST index 9205b4270b5..01df25e2609 100644 --- a/games/nethack-qt/PLIST +++ b/games/nethack-qt/PLIST @@ -1,3 +1,6 @@ -@comment $NetBSD: PLIST,v 1.2 2002/03/25 20:32:27 pooka Exp $ +@comment $NetBSD: PLIST,v 1.3 2011/06/01 11:20:29 wiz Exp $ bin/nethack-qt share/nethackdir340/tiles.xpm +share/nethackdir340/nhsplash.xpm +share/nethackdir340/knh.xpm +share/nethackdir340/knh-mini.xpm diff --git a/games/nethack-qt/distinfo b/games/nethack-qt/distinfo deleted file mode 100644 index d5e663c6351..00000000000 --- a/games/nethack-qt/distinfo +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: distinfo,v 1.23 2011/04/03 01:33:51 markd Exp $ - -SHA1 (nethack-343-src.tgz) = c26537093c38152bc0fbcec20468d975b35f59fd -RMD160 (nethack-343-src.tgz) = 42f600d24715a0b7e631b357c135761410b3ca95 -Size (nethack-343-src.tgz) = 3497458 bytes -SHA1 (patch-aa) = dc4761a41a5851249e1c9e73b03dea423fc45571 -SHA1 (patch-ab) = 6c42d5c4c12e70651f14b08658169f6c00b420db -SHA1 (patch-ac) = e5101c73a1b3ec0fb072ce4b401413a338465298 -SHA1 (patch-ae) = a72da6e6bd1af3a8eaed97ecc1fdd1ed4198a5db -SHA1 (patch-af) = b89027c56de63c01840768d109b4ee6e6efac1a8 -SHA1 (patch-ag) = 6aeae6bde079b9c9081f6e32523687010c9bc674 -SHA1 (patch-ah) = 238bd9d0284d7b43aa92ab558f9a6dd723722f05 -SHA1 (patch-ai) = f12acf028c90659bde26bdb5d20692a6daf810c7 diff --git a/games/nethack-qt/patches/patch-aa b/games/nethack-qt/patches/patch-aa deleted file mode 100644 index 8d8011b19ac..00000000000 --- a/games/nethack-qt/patches/patch-aa +++ /dev/null @@ -1,59 +0,0 @@ -$NetBSD: patch-aa,v 1.12 2005/12/19 19:45:02 joerg Exp $ - ---- include/config.h.old 2003-12-08 01:39:13.000000000 +0200 -+++ include/config.h 2004-03-05 17:00:59.000000000 +0200 -@@ -42,9 +42,9 @@ - * Define all of those you want supported in your binary. - * Some combinations make no sense. See the installation document. - */ --#define TTY_GRAPHICS /* good old tty based graphics */ -+/* #define TTY_GRAPHICS */ /* good old tty based graphics */ - /* #define X11_GRAPHICS */ /* X11 interface */ --/* #define QT_GRAPHICS */ /* Qt interface */ -+#define QT_GRAPHICS /* Qt interface */ - /* #define GNOME_GRAPHICS */ /* Gnome interface */ - /* #define MSWIN_GRAPHICS */ /* Windows NT, CE, Graphics */ - -@@ -85,7 +85,7 @@ - #ifdef QT_GRAPHICS - # define DEFAULT_WC_TILED_MAP /* Default to tiles if users doesn't say wc_ascii_map */ - # define USER_SOUNDS /* Use sounds */ --# ifndef __APPLE__ -+# if !(defined(__APPLE__) || defined(__NetBSD__) || defined(__DragonFly__)) - # define USER_SOUNDS_REGEX - # endif - # define USE_XPM /* Use XPM format for images (required) */ -@@ -169,11 +169,11 @@ - - #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 */ -+/* #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 */ -+#define COMPRESS "@GZIP_PROGRAM@" /* FSF gzip compression */ -+#define COMPRESS_EXTENSION ".gz" /* normal gzip extension */ - #endif - - #ifndef COMPRESS -@@ -204,7 +204,7 @@ - * otherwise it will be the current directory. - */ - # ifndef HACKDIR --# define HACKDIR "/usr/games/lib/nethackdir" -+# define HACKDIR "XXXPREFIXXXX/share/nethackdir340" - # endif - - /* -@@ -300,7 +300,7 @@ - * functions that have been macroized. - */ - --/* #define VISION_TABLES */ /* use vision tables generated at compile time */ -+#define VISION_TABLES /* use vision tables generated at compile time */ - #ifndef VISION_TABLES - # ifndef NO_MACRO_CPATH - # define MACRO_CPATH /* use clear_path macros instead of functions */ diff --git a/games/nethack-qt/patches/patch-ab b/games/nethack-qt/patches/patch-ab deleted file mode 100644 index 5e2b1e0025b..00000000000 --- a/games/nethack-qt/patches/patch-ab +++ /dev/null @@ -1,121 +0,0 @@ -$NetBSD: patch-ab,v 1.7 2003/09/02 00:30:55 pooka Exp $ - ---- sys/unix/Makefile.top.orig 2003-08-30 03:08:04.000000000 +0300 -+++ sys/unix/Makefile.top 2003-09-02 02:42:07.000000000 +0300 -@@ -14,18 +14,17 @@ - # MAKE = make - - # make NetHack --PREFIX = /usr - GAME = nethack - # GAME = nethack.prg --GAMEUID = games --GAMEGRP = bin -+GAMEUID = root -+GAMEGRP = games - - # Permissions - some places use setgid instead of setuid, for instance - # See also the option "SECURE" in include/config.h --GAMEPERM = 04755 --FILEPERM = 0644 -+GAMEPERM = 2755 -+FILEPERM = 0664 - EXEPERM = 0755 --DIRPERM = 0755 -+DIRPERM = 0775 - - # GAMEDIR also appears in config.h as "HACKDIR". - # VARDIR may also appear in unixconf.h as "VAR_PLAYGROUND" else GAMEDIR -@@ -35,12 +34,12 @@ - # 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 -+GAMEDIR = $(PREFIX)/share/$(GAME)dir340 - VARDIR = $(GAMEDIR) --SHELLDIR = $(PREFIX)/games -+SHELLDIR = $(PREFIX)/bin - - # per discussion in Install.X11 and Install.Qt --VARDATND = -+VARDATND = pet_mark.xbm rip.xpm - # VARDATND = x11tiles NetHack.ad pet_mark.xbm - # VARDATND = x11tiles NetHack.ad pet_mark.xbm rip.xpm - # for Atari/Gem -@@ -87,9 +86,12 @@ - $(GAME): - ( cd src ; $(MAKE) ) - --all: $(GAME) recover Guidebook $(VARDAT) dungeon spec_levs check-dlb -+all: $(GAME) datastuff - @echo "Done." - -+datastuff: recover Guidebook $(VARDAT) dungeon spec_levs check-dlb -+ @echo "Data Sets Built." -+ - # Note: many of the dependencies below are here to allow parallel make - # to generate valid output - -@@ -183,18 +185,15 @@ - -e '}' \ - -e '$$s/.*/nodlb/p' < dat/options` ; \ - $(MAKE) dofiles-$${target-nodlb} -- cp src/$(GAME) $(GAMEDIR) -- cp util/recover $(GAMEDIR) -+ cp util/recover $(PREFIX)/bin - -rm -f $(SHELLDIR)/$(GAME) - sed -e 's;/usr/games/lib/nethackdir;$(GAMEDIR);' \ - -e 's;HACKDIR/nethack;HACKDIR/$(GAME);' \ -+ -e 's;XXXPREFIXXXX;$(PREFIX);' \ - < sys/unix/nethack.sh \ - > $(SHELLDIR)/$(GAME) - # set up their permissions -- -( cd $(GAMEDIR) ; $(CHOWN) $(GAMEUID) $(GAME) recover ; \ -- $(CHGRP) $(GAMEGRP) $(GAME) recover ) -- chmod $(GAMEPERM) $(GAMEDIR)/$(GAME) -- chmod $(EXEPERM) $(GAMEDIR)/recover -+ chmod $(EXEPERM) $(PREFIX)/bin/recover - -$(CHOWN) $(GAMEUID) $(SHELLDIR)/$(GAME) - $(CHGRP) $(GAMEGRP) $(SHELLDIR)/$(GAME) - chmod $(EXEPERM) $(SHELLDIR)/$(GAME) -@@ -230,16 +229,16 @@ - # and a reminder - @echo You may also want to install the man pages via the doc Makefile. - --install: $(GAME) recover $(VARDAT) dungeon spec_levs -+install-dat: recover $(VARDAT) dungeon spec_levs - # set up the directories - # not all mkdirs have -p; those that don't will create a -p directory - -mkdir -p $(SHELLDIR) -- -rm -rf $(GAMEDIR) $(VARDIR) - -mkdir -p $(GAMEDIR) $(VARDIR) $(VARDIR)/save - -rmdir ./-p - -$(CHOWN) $(GAMEUID) $(GAMEDIR) $(VARDIR) $(VARDIR)/save - $(CHGRP) $(GAMEGRP) $(GAMEDIR) $(VARDIR) $(VARDIR)/save -- chmod $(DIRPERM) $(GAMEDIR) $(VARDIR) $(VARDIR)/save -+ chmod $(DIRPERM) $(GAMEDIR) $(VARDIR) -+ chmod 770 $(VARDIR)/save - # set up the game files - ( $(MAKE) dofiles ) - # set up some additional files -@@ -247,9 +246,20 @@ - -( cd $(VARDIR) ; $(CHOWN) $(GAMEUID) perm record logfile ; \ - $(CHGRP) $(GAMEGRP) perm record logfile ; \ - chmod $(FILEPERM) perm record logfile ) -+ -touch -c $(VARDIR)/bones* $(VARDIR)/?lock* $(VARDIR)/wizard* -+ -touch -c $(VARDIR)/save/* -+ -mkdir -p $(PREFIX)/share/doc/nethack -+ cp doc/Guidebook $(PREFIX)/share/doc/nethack -+ chown $(GAMEUID):$(GAMEGRP) $(PREFIX)/share/doc/nethack/Guidebook -+ chmod $(FILEPERM) $(PREFIX)/share/doc/nethack/Guidebook - # and a reminder - @echo You may also want to reinstall the man pages via the doc Makefile. - -+binfiles: $(GAME) -+ cp src/$(GAME) $(SHELLDIR)/$(GAME)$(GTYPE) -+ -( cd $(GAMEDIR) ; $(CHOWN) $(GAMEUID) $(SHELLDIR)/$(GAME)$(GTYPE) ; \ -+ $(CHGRP) $(GAMEGRP) $(SHELLDIR)/$(GAME)$(GTYPE) ) -+ chmod $(GAMEPERM) $(SHELLDIR)/$(GAME)$(GTYPE) - - # 'make clean' removes all the .o files, but leaves around all the executables - # and compiled data files diff --git a/games/nethack-qt/patches/patch-ac b/games/nethack-qt/patches/patch-ac deleted file mode 100644 index 4aa02c1bbdb..00000000000 --- a/games/nethack-qt/patches/patch-ac +++ /dev/null @@ -1,49 +0,0 @@ -$NetBSD: patch-ac,v 1.14 2005/12/19 19:45:02 joerg Exp $ - ---- include/system.h.orig 2003-08-30 03:07:23.000000000 +0300 -+++ include/system.h 2003-09-02 02:49:23.000000000 +0300 -@@ -79,10 +79,10 @@ - # if !defined(__SC__) && !defined(LINUX) - E long NDECL(random); - # endif --# if (!defined(SUNOS4) && !defined(bsdi) && !defined(__FreeBSD__)) || defined(RANDOM) -+# if (!defined(SUNOS4) && !defined(bsdi) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__)) || defined(RANDOM) - E void FDECL(srandom, (unsigned int)); - # else --# if !defined(bsdi) && !defined(__FreeBSD__) -+# if !defined(bsdi) && !defined(__NetBSD__) && !defined(__FreeBSD__) && !defined(__DragonFly__) - E int FDECL(srandom, (unsigned int)); - # endif - # endif -@@ -132,7 +132,7 @@ - E void FDECL(qsort, (genericptr_t,size_t,size_t, - int(*)(const genericptr,const genericptr))); - #else --# if defined(BSD) || defined(ULTRIX) -+# if defined(BSD) || defined(ULTRIX) && !defined(__NetBSD__) - E int qsort(); - # else - # if !defined(LATTICE) && !defined(AZTEC_50) -@@ -421,7 +421,7 @@ - # ifdef HPUX - E unsigned int FDECL(strlen, (char *)); - # else --# if !(defined(ULTRIX_PROTO) && defined(__GNUC__)) -+# if !(defined(ULTRIX_PROTO) && defined(__GNUC__)) && !defined(__NetBSD__) && !defined(__DragonFly__) - E int FDECL(strlen, (const char *)); - # endif - # endif /* HPUX */ -@@ -521,11 +521,13 @@ - # endif - # endif - -+#ifndef __NetBSD__ - # if defined(ULTRIX) || (defined(BSD) && defined(POSIX_TYPES)) || 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 */ -+#endif - - #ifdef VMS - /* used in makedefs.c, but missing from gcc-vms's <time.h> */ diff --git a/games/nethack-qt/patches/patch-ae b/games/nethack-qt/patches/patch-ae deleted file mode 100644 index 703ced03d32..00000000000 --- a/games/nethack-qt/patches/patch-ae +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-ae,v 1.3 2003/09/02 00:30:55 pooka Exp $ - ---- sys/unix/Makefile.doc.orig 2003-02-23 16:43:39.000000000 +0200 -+++ sys/unix/Makefile.doc 2003-03-01 16:36:19.000000000 +0200 -@@ -38,7 +38,7 @@ - - - GAME = nethack --MANDIR = /usr/man/man6 -+MANDIR = $(PREFIX)/man/man6 - MANEXT = 6 - - # manual installation for most BSD-style systems diff --git a/games/nethack-qt/patches/patch-af b/games/nethack-qt/patches/patch-af deleted file mode 100644 index 3e558da5584..00000000000 --- a/games/nethack-qt/patches/patch-af +++ /dev/null @@ -1,65 +0,0 @@ -$NetBSD: patch-af,v 1.5 2011/04/03 01:33:51 markd Exp $ - ---- include/unixconf.h.orig 2003-12-08 12:39:13.000000000 +1300 -+++ include/unixconf.h -@@ -19,20 +19,21 @@ - */ - - /* define exactly one of the following four choices */ --/* #define BSD 1 */ /* define for 4.n/Free/Open/Net BSD */ -+#define __NETHACK_OS__ 1 -+/* #define BSD */ /* define for 4.n/Free/Open/Net BSD */ - /* also for relatives like SunOS 4.x, DG/UX, and */ - /* older versions of Linux */ - /* #define ULTRIX */ /* define for Ultrix v3.0 or higher (but not lower) */ - /* Use BSD for < v3.0 */ - /* "ULTRIX" not to be confused with "ultrix" */ --#define SYSV /* define for System V, Solaris 2.x, newer versions */ -+/* #define SYSV */ /* define for System V, Solaris 2.x, newer versions */ - /* of Linux */ - /* #define HPUX */ /* Hewlett-Packard's Unix, version 6.5 or higher */ - /* use SYSV for < v6.5 */ - - - /* define any of the following that are appropriate */ --#define SVR4 /* use in addition to SYSV for System V Release 4 */ -+/* #define SVR4 */ /* use in addition to SYSV for System V Release 4 */ - /* including Solaris 2+ */ - #define NETWORK /* if running on a networked system */ - /* e.g. Suns sharing a playground through NFS */ -@@ -47,7 +48,7 @@ - * job control (note that AIX is SYSV otherwise) - * Also define this for AIX 3.2 */ - --#define TERMINFO /* uses terminfo rather than termcap */ -+/* #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 -@@ -168,6 +169,9 @@ - - #ifdef MAIL - # if defined(BSD) || defined(ULTRIX) -+# ifdef __NetBSD__ -+#define DEF_MAILREADER "/usr/bin/mail" -+# else - # ifdef AMS - #define AMS_MAILBOX "/Mailbox" - # else -@@ -177,6 +181,7 @@ - #define DEF_MAILREADER "/usr/ucb/Mail" - # endif - # endif -+#endif - #else - # if (defined(SYSV) || defined(DGUX) || defined(HPUX)) && !defined(LINUX) - # if defined(M_XENIX) -@@ -284,7 +289,7 @@ - #endif - - #if defined(BSD) || defined(ULTRIX) --# if !defined(DGUX) && !defined(SUNOS4) -+# if !defined(DGUX) && !defined(SUNOS4) && !defined(BSD) - #define memcpy(d, s, n) bcopy(s, d, n) - #define memcmp(s1, s2, n) bcmp(s2, s1, n) - # endif diff --git a/games/nethack-qt/patches/patch-ag b/games/nethack-qt/patches/patch-ag deleted file mode 100644 index c0725b1fc61..00000000000 --- a/games/nethack-qt/patches/patch-ag +++ /dev/null @@ -1,13 +0,0 @@ -$NetBSD: patch-ag,v 1.3 2003/09/02 00:30:55 pooka Exp $ - ---- src/mail.c.orig Wed Aug 9 21:02:04 2000 -+++ src/mail.c Thu Aug 10 18:32:30 2000 -@@ -71,7 +71,7 @@ - # if !defined(MAILPATH) && (defined(LINUX) || defined(__osf__)) - # define MAILPATH "/var/spool/mail/" - # endif --# if !defined(MAILPATH) && defined(__FreeBSD__) -+# if !defined(MAILPATH) && (defined(__FreeBSD__) || defined(__NetBSD__)) - # define MAILPATH "/var/mail/" - # endif - # if !defined(MAILPATH) && (defined(BSD) || defined(ULTRIX)) diff --git a/games/nethack-qt/patches/patch-ah b/games/nethack-qt/patches/patch-ah deleted file mode 100644 index 595bcfca55e..00000000000 --- a/games/nethack-qt/patches/patch-ah +++ /dev/null @@ -1,53 +0,0 @@ -$NetBSD: patch-ah,v 1.7 2005/12/19 19:45:02 joerg Exp $ - ---- sys/unix/Makefile.src.orig 2003-12-08 12:39:13.000000000 +1300 -+++ sys/unix/Makefile.src -@@ -151,15 +151,15 @@ GNOMEINC=-I/usr/lib/glib/include -I/usr/ - # flags for debugging: - # CFLAGS = -g -I../include - --CFLAGS = -O -I../include --LFLAGS = -+CFLAGS += -I../include -I${X11BASE}/include -+LFLAGS = ${LDFLAGS} - - # The Qt and Be window systems are written in C++, while the rest of - # NetHack is standard C. If using Qt, uncomment the LINK line here to get - # the C++ libraries linked in. - CXXFLAGS = $(CFLAGS) -I. -I$(QTDIR)/include --CXX=g++ --#LINK=g++ -+#CXX=g++ -+LINK=$(CXX) - # For cross-compiling, eg. with gcc on Linux (see also CC further up): - #CXX=arm-linux-g++ - #LINK=arm-linux-gcc -@@ -214,8 +214,8 @@ WINBEOBJ = - - # - # --WINSRC = $(WINTTYSRC) --WINOBJ = $(WINTTYOBJ) -+WINSRC = $(WINQTSRC) -+WINOBJ = $(WINQTOBJ) - - # on some systems the termcap library is in -ltermcap or -lcurses - # on 386 Xenix, the -ltermlib tputs() seems not to work; use -lcurses instead -@@ -241,7 +241,7 @@ WINX11LIB = -lXaw -lXmu -lXext -lXt -lX1 - # WINX11LIB = -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -lm # BSD/OS 2.0 - # - # libraries for Qt --WINQTLIB = -L$(QTDIR)/lib -lqt -+WINQTLIB = -L$(QTDIR)/lib -lqt-mt -lXpm -lX11 -lICE -lSM -lz -lpng -lXext ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS} - # - # libraries for KDE (with Qt) - WINKDELIB = -lkdecore -lkdeui -lXext -@@ -255,7 +255,7 @@ WINGEMLIB = -le_gem -lgem - # libraries for BeOS - WINBELIB = -lbe - --WINLIB = $(WINTTYLIB) -+WINLIB = $(WINQTLIB) - - # any other strange libraries your system needs (for Sysunix only -- the more - # specialized targets should already be right) diff --git a/games/nethack-qt/patches/patch-ai b/games/nethack-qt/patches/patch-ai deleted file mode 100644 index 45c7a59cddc..00000000000 --- a/games/nethack-qt/patches/patch-ai +++ /dev/null @@ -1,26 +0,0 @@ -$NetBSD: patch-ai,v 1.3 2007/08/08 20:30:27 joerg Exp $ - ---- win/Qt/qt_win.cpp.orig 2003-12-07 23:39:13.000000000 +0000 -+++ win/Qt/qt_win.cpp -@@ -102,11 +102,7 @@ extern "C" { - #include "qt_xpms.h" - - #include <dirent.h> --#ifdef Q_WS_MACX --# include <sys/malloc.h> --#else --# include <malloc.h> --#endif -+#include <stdlib.h> - - #ifdef _WS_X11_ - // For userid control -@@ -4278,7 +4274,7 @@ void NetHackQtYnDialog::done(int i) - - NetHackQtGlyphs::NetHackQtGlyphs() - { -- const char* tile_file = "nhtiles.bmp"; -+ const char* tile_file = "tiles.xpm"; - if ( iflags.wc_tile_file ) - tile_file = iflags.wc_tile_file; - |