Yet another nethack variant.
This commit is contained in:
parent
be2fe737cd
commit
90f10c31d7
63
games/slash-em/Makefile
Normal file
63
games/slash-em/Makefile
Normal file
@ -0,0 +1,63 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2001/07/04 11:14:53 espie Exp $
|
||||
|
||||
COMMENT= "dungeon explorin', hackin', game. Hard"
|
||||
DISTNAME= se006e4f4
|
||||
CATEGORIES= games
|
||||
NEED_VERSION= 1.363
|
||||
|
||||
HOMEPAGE= http://slashem.sourceforge.net
|
||||
MASTER_SITES= http://avrc.city.ac.uk/nethack/slashem/
|
||||
|
||||
MAINTAINER= Marc Espie <espie@openbsd.org>
|
||||
|
||||
# GPL
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
PKGNAME=slash-em-3.3.1.6e4f4
|
||||
WRKDIST=${WRKDIR}/slashem-0.0.6E4F4
|
||||
|
||||
FAKE_FLAGS=PREFIX=${PREFIX} DESTDIR=${WRKINST}
|
||||
|
||||
NHDIR= ${PREFIX}/lib/slashemdir
|
||||
MAKE_ENV+= NHDIR=${NHDIR} NETHACKCONFIG=${NETHACKCONFIG}
|
||||
|
||||
# qt flavor is apparently not working yet
|
||||
FLAVORS=no_x11 #qt
|
||||
FLAVOR?=
|
||||
|
||||
.if ${FLAVOR:L} == "no_x11"
|
||||
NETHACKCONFIG=${FILESDIR}/simple-config
|
||||
.elif ${FLAVOR:L} == "qt"
|
||||
SED_PLIST=|sed -e '/^!%%no_x11%%/d'
|
||||
NETHACKCONFIG=${FILESDIR}/qt-config
|
||||
PORTPATH=${LOCALBASE}/lib/qt2/bin:/usr/bin:/bin:/usr/sbin:/sbin:${LOCALBASE}/bin
|
||||
LIB_DEPENDS=qt.2.::x11/qt2
|
||||
.else
|
||||
NETHACKCONFIG=${FILESDIR}/x-config
|
||||
USE_X11= Yes
|
||||
.endif
|
||||
|
||||
RUN_DEPENDS=${LOCALBASE}/share/doc/nethack/Guidebook.txt:hackdata-*:games/hackdata
|
||||
|
||||
do-configure:
|
||||
@cd ${WRKSRC}/sys/unix; ${SH} setup.sh symlinks
|
||||
|
||||
post-build:
|
||||
@cd ${WRKSRC}/util && ${MAKE_ENV} make recover
|
||||
@cd ${WRKSRC}/util && ln -f recover strecover
|
||||
@cd ${WRKSRC}/doc && perl -p ${FILESDIR}/substitute <recover.6 >strecover.6
|
||||
|
||||
post-install:
|
||||
${INSTALL_PROGRAM} ${WRKBUILD}/util/strecover ${PREFIX}/bin
|
||||
@cd ${WRKSRC}/doc && \
|
||||
${INSTALL_MAN} slashem.6 strecover.6 ${PREFIX}/man/man6
|
||||
.if ${FLAVOR:L} == ""
|
||||
${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/app-defaults
|
||||
@cd ${WRKSRC}/win/X11 && \
|
||||
${INSTALL_DATA} SlashEM.ad ${PREFIX}/lib/X11/app-defaults/SlashEM
|
||||
.endif
|
||||
|
||||
.include <bsd.port.mk>
|
3
games/slash-em/files/md5
Normal file
3
games/slash-em/files/md5
Normal file
@ -0,0 +1,3 @@
|
||||
MD5 (se006e4f4.tar.gz) = 7899a948c64ed4d4e716c1080e1bb980
|
||||
RMD160 (se006e4f4.tar.gz) = 1587293ae904e932b2e5b72622888d27c958e221
|
||||
SHA1 (se006e4f4.tar.gz) = 6bef5875c5bfa576dd445b19a913bbc55bcecf47
|
12
games/slash-em/files/qt-config
Normal file
12
games/slash-em/files/qt-config
Normal file
@ -0,0 +1,12 @@
|
||||
# Not yet:
|
||||
# qt flavor needs qt 2.0 to work
|
||||
VARDATND = x11tiles pet_mark.xbm rip.xpm
|
||||
VARDAT = $(VARDATD) $(VARDATND)
|
||||
CFLAGS+=-DQT_GRAPHICS -I$(LOCALBASE)/include/X11/qt2
|
||||
LFLAGS =-L$(LOCALBASE)/lib/qt2 -L$(X11BASE)/lib -L$(LOCALBASE)/lib
|
||||
|
||||
WINSRC = $(WINTTYSRC) $(WINQTSRC)
|
||||
WINOBJ = $(WINTTYOBJ) $(WINQTOBJ)
|
||||
WINLIB = $(WINTTYLIB) -lqt -lSM
|
||||
QTDIR = $(LOCALBASE)
|
||||
LD = g++
|
7
games/slash-em/files/simple-config
Normal file
7
games/slash-em/files/simple-config
Normal file
@ -0,0 +1,7 @@
|
||||
VARDATND =
|
||||
CFLAGS+=
|
||||
LFLAGS =
|
||||
|
||||
WINSRC = $(WINTTYSRC)
|
||||
WINOBJ = $(WINTTYOBJ)
|
||||
WINLIB = $(WINTTYLIB)
|
6
games/slash-em/files/substitute
Normal file
6
games/slash-em/files/substitute
Normal file
@ -0,0 +1,6 @@
|
||||
s/\bNETHACK\b/SLASH/g;
|
||||
s/\bNet[hH]ack\b(?!\s+v3.1)/Slash/g;
|
||||
s/\bnethack\b/slash/g;
|
||||
s/\bnethackdir\b/slashdir/g;
|
||||
s|/usr/games|/usr/local|g;
|
||||
s/\brecover\b/srecover/g;
|
7
games/slash-em/files/x-config
Normal file
7
games/slash-em/files/x-config
Normal file
@ -0,0 +1,7 @@
|
||||
VARDATND = x11tiles pet_mark.xbm rip.xpm
|
||||
CFLAGS+=-DX11_GRAPHICS -I${X11BASE}/include
|
||||
LFLAGS =-L${X11BASE}/lib
|
||||
|
||||
WINSRC = $(WINTTYSRC) $(WINX11SRC)
|
||||
WINOBJ = $(WINTTYOBJ) $(WINX11OBJ)
|
||||
WINLIB = $(WINTTYLIB) $(WINX11LIB)
|
46
games/slash-em/patches/patch-include_config_h
Normal file
46
games/slash-em/patches/patch-include_config_h
Normal file
@ -0,0 +1,46 @@
|
||||
$OpenBSD: patch-include_config_h,v 1.1.1.1 2001/07/04 11:14:54 espie Exp $
|
||||
--- include/config.h.orig Wed May 2 01:07:54 2001
|
||||
+++ include/config.h Tue Jul 3 18:57:56 2001
|
||||
@@ -139,7 +139,7 @@
|
||||
* xpmtoppm <x11tiles.xpm | pnmscale 1.25 | pnmdepth 255 |
|
||||
* ppmquant 90 | ppmtoxpm >x11tiles_big.xpm
|
||||
*/
|
||||
-/* # define USE_XPM */ /* Disable if you do not have the XPM library */
|
||||
+# define USE_XPM /* Disable if you do not have the XPM library */
|
||||
# ifdef USE_XPM
|
||||
# define GRAPHIC_TOMBSTONE /* Use graphical tombstone (rip.xpm) */
|
||||
# endif
|
||||
@@ -152,6 +152,7 @@
|
||||
* LOGFILE and NEWS refer to files in the playground.
|
||||
*/
|
||||
|
||||
+#define WIZARD "games"
|
||||
#ifndef WIZARD /* allow for compile-time or Makefile changes */
|
||||
# ifndef KR1ED
|
||||
# define WIZARD "wizard" /* the person allowed to use the -D option */
|
||||
@@ -181,12 +182,12 @@
|
||||
|
||||
#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 "/usr/bin/gzip" /* FSF gzip compression */
|
||||
+# define COMPRESS_EXTENSION ".gz" /* normal gzip extension */
|
||||
|
||||
/* # define COMPRESS "/usr/bin/bzip2" *//* bzip2 compression */
|
||||
/* # define COMPRESS_EXTENSION ".bz2" *//* bzip2 extension */
|
||||
@@ -315,7 +316,7 @@ typedef unsigned char uchar;
|
||||
* functions that have been macroized.
|
||||
*/
|
||||
/* WAC Can be defined under DJGPP, even though it's DOS*/
|
||||
-/*#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 */
|
21
games/slash-em/patches/patch-include_system_h
Normal file
21
games/slash-em/patches/patch-include_system_h
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-include_system_h,v 1.1.1.1 2001/07/04 11:14:54 espie Exp $
|
||||
--- include/system.h.orig Wed May 2 01:07:19 2001
|
||||
+++ include/system.h Tue Jul 3 18:58:55 2001
|
||||
@@ -517,6 +517,9 @@ E struct tm *FDECL(localtime, (const tim
|
||||
# endif
|
||||
# endif
|
||||
|
||||
+#if defined(BSD)
|
||||
+/* no declaration needed; it's in time.h */
|
||||
+#else
|
||||
# if defined(ULTRIX) || defined(SYSV) || defined(MICRO) || defined(VMS) || defined(MAC) || (defined(HPUX) && defined(_POSIX_SOURCE))
|
||||
# ifndef __WATCOMC__
|
||||
E time_t FDECL(time, (time_t *));
|
||||
@@ -524,6 +527,7 @@ 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> */
|
61
games/slash-em/patches/patch-include_unixconf_h
Normal file
61
games/slash-em/patches/patch-include_unixconf_h
Normal file
@ -0,0 +1,61 @@
|
||||
$OpenBSD: patch-include_unixconf_h,v 1.1.1.1 2001/07/04 11:14:54 espie Exp $
|
||||
--- include/unixconf.h.orig Wed May 2 01:07:56 2001
|
||||
+++ include/unixconf.h Tue Jul 3 18:59:43 2001
|
||||
@@ -20,7 +20,12 @@
|
||||
*/
|
||||
|
||||
/* define exactly one of the following four choices */
|
||||
-/* #define BSD 1 */ /* define for 4.n BSD */
|
||||
+/* procure the real define BSD */
|
||||
+#ifdef HAVE_SYS_PARAM_H
|
||||
+#include <sys/param.h>
|
||||
+#endif
|
||||
+/* #define BSD 1 /* define for 4.n 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) */
|
||||
@@ -33,7 +38,7 @@
|
||||
|
||||
|
||||
/* 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 */
|
||||
@@ -48,6 +53,7 @@
|
||||
* job control (note that AIX is SYSV otherwise)
|
||||
* Also define this for AIX 3.2 */
|
||||
|
||||
+#define TERMLIB
|
||||
#define TERMINFO /* uses terminfo rather than termcap */
|
||||
/* Should be defined for most SYSV, SVR4 (including
|
||||
* Solaris 2+), HPUX, and Linux systems. In
|
||||
@@ -195,7 +201,7 @@
|
||||
* "extra output" method is used, but not all systems provide access to
|
||||
* a fine-grained timer.
|
||||
*/
|
||||
-/* #define TIMED_DELAY */ /* usleep() */
|
||||
+#define TIMED_DELAY /* usleep() */
|
||||
#endif
|
||||
|
||||
/*
|
||||
@@ -206,7 +212,7 @@
|
||||
* A stat system call is done on the mailbox every MAILCKFREQ moves.
|
||||
*/
|
||||
|
||||
-#define MAIL /* Deliver mail during the game */
|
||||
+/* #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
|
||||
@@ -368,7 +374,7 @@
|
||||
#endif
|
||||
|
||||
#ifdef TIMED_DELAY
|
||||
-# if defined(SUNOS4) || defined(LINUX) || defined(SVR4) /* [max] added SVR4 */
|
||||
+# if defined(SUNOS4) || defined(LINUX) || defined(SVR4) || (defined(BSD) && BSD > 199103) /* [max] added SVR4 */
|
||||
# define msleep(k) usleep((k)*1000)
|
||||
# endif
|
||||
# ifdef ULTRIX
|
25
games/slash-em/patches/patch-sys_unix_Makefile_doc
Normal file
25
games/slash-em/patches/patch-sys_unix_Makefile_doc
Normal file
@ -0,0 +1,25 @@
|
||||
$OpenBSD: patch-sys_unix_Makefile_doc,v 1.1.1.1 2001/07/04 11:14:54 espie Exp $
|
||||
--- sys/unix/Makefile.doc.orig Wed May 2 01:07:43 2001
|
||||
+++ sys/unix/Makefile.doc Tue Jul 3 19:02:04 2001
|
||||
@@ -54,15 +54,15 @@ Guidebook.dvi: Guidebook.tex
|
||||
|
||||
GAME = slashem
|
||||
#GAME = nethack
|
||||
-MANDIR = /games/slash/doc
|
||||
+MANDIR = ${PREFIX}/man/man6
|
||||
MANEXT = 1n
|
||||
|
||||
# manual installation for most BSD-style systems
|
||||
-GAMEMANCREATE = cp $(GAME).6
|
||||
-LEVMANCREATE = cp lev_comp.6
|
||||
-DGNMANCREATE = cp dgn_comp.6
|
||||
-RCVRMANCREATE = cp recover.6
|
||||
-DLBMANCREATE = cp dlb.6
|
||||
+GAMEMANCREATE = ${INSTALL_MAN} $(GAME).6
|
||||
+LEVMANCREATE = ${INSTALL_MAN} lev_comp.6
|
||||
+DGNMANCREATE = ${INSTALL_MAN} dgn_comp.6
|
||||
+RCVRMANCREATE = ${INSTALL_MAN} recover.6
|
||||
+DLBMANCREATE = ${INSTALL_MAN} dlb.6
|
||||
# manual installation for most SYSV-style systems
|
||||
# and for man files readable in less (eg dos DJGPP+GNU)
|
||||
# GAMEMANCREATE = groff -Wall -mtty-char -Tascii -man $(GAME).6 >
|
60
games/slash-em/patches/patch-sys_unix_Makefile_src
Normal file
60
games/slash-em/patches/patch-sys_unix_Makefile_src
Normal file
@ -0,0 +1,60 @@
|
||||
$OpenBSD: patch-sys_unix_Makefile_src,v 1.1.1.1 2001/07/04 11:14:54 espie Exp $
|
||||
--- sys/unix/Makefile.src.orig Wed May 2 01:08:03 2001
|
||||
+++ sys/unix/Makefile.src Tue Jul 3 19:03:00 2001
|
||||
@@ -1,6 +1,7 @@
|
||||
# NetHack Makefile.
|
||||
# SCCS Id: @(#)Makefile.src 3.3 97/04/17
|
||||
|
||||
+include ${NETHACKCONFIG}
|
||||
# newer makes predefine $(MAKE) to 'make' and do smarter processing of
|
||||
# recursive make calls if $(MAKE) is used
|
||||
# these makes allow $(MAKE) to be overridden by the environment if someone
|
||||
@@ -144,8 +145,7 @@ GNOMEINC=-I/usr/lib/glib/include -I/usr/
|
||||
# flags for debugging:
|
||||
# CFLAGS = -g -I../include
|
||||
|
||||
-CFLAGS = -O -I../include
|
||||
-LFLAGS =
|
||||
+CFLAGS += -DHACKDIR=\"${NHDIR}\" -DHAVE_SYS_PARAM_H -I../include
|
||||
|
||||
# QT windowing system
|
||||
# SuSE 6.1
|
||||
@@ -239,8 +239,6 @@ WINBEOBJ =
|
||||
#WINBEOBJ = winbe.o NHWindow.o NHMenuWindow.o NHMapWindow.o nhwin.a
|
||||
|
||||
# Use these declarations if you only want to support the TTY windowing system
|
||||
-WINSRC = $(WINTTYSRC)
|
||||
-WINOBJ = $(WINTTYOBJ)
|
||||
# Use these declarations if you want to support the X11 windowing system
|
||||
# WINSRC = $(WINTTYSRC) $(WINX11SRC)
|
||||
# WINOBJ = $(WINTTYOBJ) $(WINX11OBJ)
|
||||
@@ -271,7 +269,7 @@ WINTTYLIB = -ltermlib
|
||||
#
|
||||
# libraries for X11
|
||||
# If USE_XPM is defined in config.h, you will also need -lXpm here.
|
||||
-WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11
|
||||
+WINX11LIB = -lXaw -lXmu -lXext -lXt -lX11 -lXpm
|
||||
# WINX11LIB = -lXaw -lXmu -lXt -lX11
|
||||
# WINX11LIB = -lXaw -lXmu -lXext -lXt -lXpm -lX11 -lm
|
||||
# WINX11LIB = -lXaw -lXmu -lXpm -lXext -lXt -lX11 -lSM -lICE -lm # BSD/OS 2.0
|
||||
@@ -295,7 +293,6 @@ WINGEMLIB = -le_gem -lgem
|
||||
WINBELIB = -lbe
|
||||
|
||||
# Use this declaration if you only want to support the TTY windowing system
|
||||
-WINLIB = $(WINTTYLIB)
|
||||
# Use this declaration if you want to support the X11 windowing system
|
||||
# WINLIB = $(WINTTYLIB) $(WINX11LIB)
|
||||
# Use this declaration if you want to support the Qt windowing system
|
||||
@@ -508,10 +505,10 @@ objects.o:
|
||||
|
||||
# Qt windowport meta-object-compiler output
|
||||
qt_kde0.moc: ../include/qt_kde0.h
|
||||
- $(QTBINDIR)/moc ../include/qt_kde0.h > qt_kde0.moc
|
||||
+ moc2 ../include/qt_kde0.h > qt_kde0.moc
|
||||
|
||||
qt_win.moc: ../include/qt_win.h
|
||||
- $(QTBINDIR)/moc ../include/qt_win.h > qt_win.moc
|
||||
+ moc2 ../include/qt_win.h > qt_win.moc
|
||||
|
||||
# NetHack windows library for modules needed by more than one windows
|
||||
# interface.
|
58
games/slash-em/patches/patch-sys_unix_Makefile_top
Normal file
58
games/slash-em/patches/patch-sys_unix_Makefile_top
Normal file
@ -0,0 +1,58 @@
|
||||
$OpenBSD: patch-sys_unix_Makefile_top,v 1.1.1.1 2001/07/04 11:14:54 espie Exp $
|
||||
--- sys/unix/Makefile.top.orig Wed May 2 01:07:44 2001
|
||||
+++ sys/unix/Makefile.top Tue Jul 3 19:06:32 2001
|
||||
@@ -13,19 +13,19 @@
|
||||
# execute things like 'data' and 'rumors')
|
||||
# MAKE = make
|
||||
|
||||
+include ${NETHACKCONFIG}
|
||||
+
|
||||
# make NetHack
|
||||
-PREFIX = /usr
|
||||
GAME = slashem
|
||||
-# GAME = slashem.prg
|
||||
-GAMEUID = games
|
||||
-GAMEGRP = bin
|
||||
+GAMEUID = bin
|
||||
+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 = 02755
|
||||
+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
|
||||
@@ -38,7 +38,8 @@ DIRPERM = 0755
|
||||
# These must agree with the definitions in unixconf.h
|
||||
|
||||
# Defs. for non file areas support.
|
||||
-GAMEDIR = $(PREFIX)/local/slashemdir
|
||||
+REALGAMEDIR = $(PREFIX)/lib/$(GAME)dir
|
||||
+GAMEDIR = $(DESTDIR)${REALGAMEDIR}
|
||||
VARDIR = $(GAMEDIR)
|
||||
FILE_AREA_VAR = $(VARDIR)
|
||||
FILE_AREA_SAVE = $(VARDIR)/save
|
||||
@@ -47,7 +48,7 @@ FILE_AREA_UNSHARE = $(GAMEDIR)
|
||||
FILE_AREA_DOC = $(GAMEDIR)
|
||||
FILE_AREA_BONES = $(FILE_AREA_VAR)
|
||||
FILE_AREA_LEVL = $(FILE_AREA_VAR)
|
||||
-SHELLDIR = $(PREFIX)/local/bin
|
||||
+SHELLDIR = $(DESTDIR)$(PREFIX)/bin
|
||||
|
||||
# Defs. compatible with Linux's FSSTND 1.2
|
||||
# FILE_AREA_VAR = /var/lib/games/slashem
|
||||
@@ -242,7 +243,7 @@ dofiles:
|
||||
cp license doc/Guidebook.txt $(FILE_AREA_DOC)
|
||||
# cp win/Qt/KDE/kslashem.kdelnk $(KDEDIR)/share/applnk/Games
|
||||
-rm -f $(SHELLDIR)/$(GAME)
|
||||
- sed -e 's;/usr/games/lib/nethackdir;$(FILE_AREA_UNSHARE);' \
|
||||
+ sed -e 's;/usr/games/lib/nethackdir;$(REALGAMEDIR);' \
|
||||
-e 's;HACKDIR/nethack;HACKDIR/$(GAME);' \
|
||||
< sys/unix/nethack.sh \
|
||||
> $(SHELLDIR)/$(GAME)
|
21
games/slash-em/patches/patch-sys_unix_Makefile_utl
Normal file
21
games/slash-em/patches/patch-sys_unix_Makefile_utl
Normal file
@ -0,0 +1,21 @@
|
||||
$OpenBSD: patch-sys_unix_Makefile_utl,v 1.1.1.1 2001/07/04 11:14:54 espie Exp $
|
||||
--- sys/unix/Makefile.utl.orig Mon Apr 17 15:36:44 2000
|
||||
+++ sys/unix/Makefile.utl Fri Mar 23 03:09:23 2001
|
||||
@@ -1,6 +1,7 @@
|
||||
# Makefile for NetHack's utility programs.
|
||||
# SCCS Id: @(#)Makefile.utl 3.3 97/04/19
|
||||
|
||||
+include ${NETHACKCONFIG}
|
||||
# newer makes predefine $(MAKE) to 'make' and do smarter processing of
|
||||
# recursive make calls if $(MAKE) is used
|
||||
# these makes allow $(MAKE) to be overridden by the environment if someone
|
||||
@@ -89,8 +90,7 @@
|
||||
# flags for debugging:
|
||||
# CFLAGS = -g -I../include
|
||||
|
||||
-CFLAGS = -O -I../include
|
||||
-LFLAGS =
|
||||
+CFLAGS += -I../include
|
||||
|
||||
LIBS =
|
||||
|
13
games/slash-em/patches/patch-sys_unix_unixunix_c
Normal file
13
games/slash-em/patches/patch-sys_unix_unixunix_c
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-sys_unix_unixunix_c,v 1.1.1.1 2001/07/04 11:14:54 espie Exp $
|
||||
--- sys/unix/unixunix.c.orig Wed May 2 01:07:44 2001
|
||||
+++ sys/unix/unixunix.c Tue Jul 3 18:56:13 2001
|
||||
@@ -50,7 +50,9 @@ gethdate(name)
|
||||
* does not exist on all systems, and moreover, that it sometimes includes
|
||||
* <sys/types.h> again, so that the compiler sees these typedefs twice.
|
||||
*/
|
||||
+#ifndef HAVE_SYS_PARAM_H
|
||||
#define MAXPATHLEN 1024
|
||||
+#endif
|
||||
|
||||
register const char *np, *path;
|
||||
char filename[MAXPATHLEN+1];
|
13
games/slash-em/patches/patch-win_Qt_qt_win_cpp
Normal file
13
games/slash-em/patches/patch-win_Qt_qt_win_cpp
Normal file
@ -0,0 +1,13 @@
|
||||
$OpenBSD: patch-win_Qt_qt_win_cpp,v 1.1.1.1 2001/07/04 11:14:54 espie Exp $
|
||||
--- win/Qt/qt_win.cpp.orig Sat Dec 11 06:21:09 1999
|
||||
+++ win/Qt/qt_win.cpp Fri Apr 14 14:13:20 2000
|
||||
@@ -91,7 +91,8 @@ extern "C" {
|
||||
#include "qt_clust.h"
|
||||
#include "qt_xpms.h"
|
||||
|
||||
-#include <malloc.h>
|
||||
+//#include <malloc.h>
|
||||
+#include <stdlib.h>
|
||||
|
||||
#ifdef _WS_X11_
|
||||
// For userid control
|
23
games/slash-em/pkg/DESCR
Normal file
23
games/slash-em/pkg/DESCR
Normal file
@ -0,0 +1,23 @@
|
||||
This is slash'em. Will you dare explore this dungeon, kill creepier
|
||||
monsters, and even finish the game ? At least, you're starting with
|
||||
a bonus: a servant creature to help you.
|
||||
|
||||
This is a sequel to nethack: more classes, more objects, bigger dungeon,
|
||||
more difficult.
|
||||
|
||||
- in order to use slash with'em X11 graphics, you will have to add
|
||||
${PREFIX}/lib/X11/fonts/hack to your fontpath, see xset(1) and Xserver(1), also
|
||||
/usr/X11R6/lib/X11/xdm or /usr/X11R6/lib/X11/xinit for proper configuration.
|
||||
|
||||
- the tty with colors mode expects a black background and white foreground to
|
||||
run properly, e.g., xterm -fg white -bg black
|
||||
|
||||
Flavors:
|
||||
no_x11
|
||||
includes only the tty interface
|
||||
qt
|
||||
includes qt interface
|
||||
|
||||
P.S. This is a very addictive game, with its whole wacky culture. And even
|
||||
a newsgroup dedicated to it (rec.games.roguelike.nethack). Don't say we
|
||||
didn't warn you !
|
2
games/slash-em/pkg/PFRAG.no-no_x11
Normal file
2
games/slash-em/pkg/PFRAG.no-no_x11
Normal file
@ -0,0 +1,2 @@
|
||||
@comment $OpenBSD: PFRAG.no-no_x11,v 1.1.1.1 2001/07/04 11:14:54 espie Exp $
|
||||
lib/X11/app-defaults/SlashEM
|
196
games/slash-em/pkg/PLIST
Normal file
196
games/slash-em/pkg/PLIST
Normal file
@ -0,0 +1,196 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2001/07/04 11:14:54 espie Exp $
|
||||
@group games
|
||||
bin/strecover
|
||||
bin/slashem
|
||||
!%%no_x11%%
|
||||
%%qt%%
|
||||
lib/slashemdir/Arc-fila.lev
|
||||
lib/slashemdir/Arc-filb.lev
|
||||
lib/slashemdir/Arc-goal.lev
|
||||
lib/slashemdir/Arc-loca.lev
|
||||
lib/slashemdir/Arc-strt.lev
|
||||
lib/slashemdir/Bar-fila.lev
|
||||
lib/slashemdir/Bar-filb.lev
|
||||
lib/slashemdir/Bar-goal.lev
|
||||
lib/slashemdir/Bar-loca.lev
|
||||
lib/slashemdir/Bar-strt.lev
|
||||
lib/slashemdir/Cav-fila.lev
|
||||
lib/slashemdir/Cav-filb.lev
|
||||
lib/slashemdir/Cav-goal.lev
|
||||
lib/slashemdir/Cav-loca.lev
|
||||
lib/slashemdir/Cav-strt.lev
|
||||
lib/slashemdir/Fla-fila.lev
|
||||
lib/slashemdir/Fla-filb.lev
|
||||
lib/slashemdir/Fla-goal.lev
|
||||
lib/slashemdir/Fla-loca.lev
|
||||
lib/slashemdir/Fla-strt.lev
|
||||
lib/slashemdir/Guidebook.txt
|
||||
lib/slashemdir/Hea-fila.lev
|
||||
lib/slashemdir/Hea-filb.lev
|
||||
lib/slashemdir/Hea-goal.lev
|
||||
lib/slashemdir/Hea-loca.lev
|
||||
lib/slashemdir/Hea-strt.lev
|
||||
lib/slashemdir/Ice-fila.lev
|
||||
lib/slashemdir/Ice-filb.lev
|
||||
lib/slashemdir/Ice-goal.lev
|
||||
lib/slashemdir/Ice-loca.lev
|
||||
lib/slashemdir/Ice-strt.lev
|
||||
lib/slashemdir/Kni-fila.lev
|
||||
lib/slashemdir/Kni-filb.lev
|
||||
lib/slashemdir/Kni-goal.lev
|
||||
lib/slashemdir/Kni-loca.lev
|
||||
lib/slashemdir/Kni-strt.lev
|
||||
lib/slashemdir/Mon-fila.lev
|
||||
lib/slashemdir/Mon-filb.lev
|
||||
lib/slashemdir/Mon-goal.lev
|
||||
lib/slashemdir/Mon-loca.lev
|
||||
lib/slashemdir/Mon-strt.lev
|
||||
lib/slashemdir/Nec-fila.lev
|
||||
lib/slashemdir/Nec-filb.lev
|
||||
lib/slashemdir/Nec-goal.lev
|
||||
lib/slashemdir/Nec-loca.lev
|
||||
lib/slashemdir/Nec-strt.lev
|
||||
lib/slashemdir/Pri-fila.lev
|
||||
lib/slashemdir/Pri-filb.lev
|
||||
lib/slashemdir/Pri-goal.lev
|
||||
lib/slashemdir/Pri-loca.lev
|
||||
lib/slashemdir/Pri-strt.lev
|
||||
lib/slashemdir/Ran-fila.lev
|
||||
lib/slashemdir/Ran-filb.lev
|
||||
lib/slashemdir/Ran-goal.lev
|
||||
lib/slashemdir/Ran-loca.lev
|
||||
lib/slashemdir/Ran-strt.lev
|
||||
lib/slashemdir/Rog-fila.lev
|
||||
lib/slashemdir/Rog-filb.lev
|
||||
lib/slashemdir/Rog-goal.lev
|
||||
lib/slashemdir/Rog-loca.lev
|
||||
lib/slashemdir/Rog-strt.lev
|
||||
lib/slashemdir/Sam-fila.lev
|
||||
lib/slashemdir/Sam-filb.lev
|
||||
lib/slashemdir/Sam-goal.lev
|
||||
lib/slashemdir/Sam-loca.lev
|
||||
lib/slashemdir/Sam-strt.lev
|
||||
lib/slashemdir/Tou-fila.lev
|
||||
lib/slashemdir/Tou-filb.lev
|
||||
lib/slashemdir/Tou-goal.lev
|
||||
lib/slashemdir/Tou-loca.lev
|
||||
lib/slashemdir/Tou-strt.lev
|
||||
lib/slashemdir/Und-fila.lev
|
||||
lib/slashemdir/Und-filb.lev
|
||||
lib/slashemdir/Und-goal.lev
|
||||
lib/slashemdir/Und-loca.lev
|
||||
lib/slashemdir/Und-strt.lev
|
||||
lib/slashemdir/Val-fila.lev
|
||||
lib/slashemdir/Val-filb.lev
|
||||
lib/slashemdir/Val-goal.lev
|
||||
lib/slashemdir/Val-loca.lev
|
||||
lib/slashemdir/Val-strt.lev
|
||||
lib/slashemdir/Wiz-fila.lev
|
||||
lib/slashemdir/Wiz-filb.lev
|
||||
lib/slashemdir/Wiz-goal.lev
|
||||
lib/slashemdir/Wiz-loca.lev
|
||||
lib/slashemdir/Wiz-strt.lev
|
||||
lib/slashemdir/Yeo-fila.lev
|
||||
lib/slashemdir/Yeo-filb.lev
|
||||
lib/slashemdir/Yeo-goal.lev
|
||||
lib/slashemdir/Yeo-loca.lev
|
||||
lib/slashemdir/Yeo-strt.lev
|
||||
lib/slashemdir/air.lev
|
||||
lib/slashemdir/asmodeus.lev
|
||||
lib/slashemdir/astral.lev
|
||||
lib/slashemdir/baalz.lev
|
||||
lib/slashemdir/beholder.lev
|
||||
lib/slashemdir/bigrm-1.lev
|
||||
lib/slashemdir/bigrm-2.lev
|
||||
lib/slashemdir/bigrm-3.lev
|
||||
lib/slashemdir/bigrm-4.lev
|
||||
lib/slashemdir/bigrm-5.lev
|
||||
lib/slashemdir/blkmar.lev
|
||||
lib/slashemdir/castle.lev
|
||||
lib/slashemdir/cav2fill.lev
|
||||
lib/slashemdir/cavefill.lev
|
||||
lib/slashemdir/cmdhelp
|
||||
lib/slashemdir/data
|
||||
lib/slashemdir/demogorg.lev
|
||||
lib/slashemdir/dispater.lev
|
||||
lib/slashemdir/dragons.lev
|
||||
lib/slashemdir/dungeon
|
||||
lib/slashemdir/earth.lev
|
||||
lib/slashemdir/fakewiz1.lev
|
||||
lib/slashemdir/fakewiz2.lev
|
||||
lib/slashemdir/fire.lev
|
||||
lib/slashemdir/frnknstn.lev
|
||||
lib/slashemdir/geryon.lev
|
||||
lib/slashemdir/guild.lev
|
||||
lib/slashemdir/gypsy.txt
|
||||
lib/slashemdir/help
|
||||
lib/slashemdir/hh
|
||||
lib/slashemdir/history
|
||||
lib/slashemdir/juiblex.lev
|
||||
lib/slashemdir/knox.lev
|
||||
lib/slashemdir/kobold-1.lev
|
||||
lib/slashemdir/kobold-2.lev
|
||||
lib/slashemdir/license
|
||||
lib/slashemdir/lich.lev
|
||||
lib/slashemdir/logfile
|
||||
lib/slashemdir/mall-1.lev
|
||||
lib/slashemdir/mall-2.lev
|
||||
lib/slashemdir/mall.lev
|
||||
lib/slashemdir/medusa-1.lev
|
||||
lib/slashemdir/medusa-2.lev
|
||||
lib/slashemdir/minefill.lev
|
||||
lib/slashemdir/mineking.lev
|
||||
lib/slashemdir/minend-1.lev
|
||||
lib/slashemdir/minend-2.lev
|
||||
lib/slashemdir/minetn-1.lev
|
||||
lib/slashemdir/minetn-2.lev
|
||||
lib/slashemdir/mtemple.lev
|
||||
lib/slashemdir/nightmar.lev
|
||||
lib/slashemdir/nymph.lev
|
||||
lib/slashemdir/opthelp
|
||||
lib/slashemdir/options
|
||||
lib/slashemdir/oracle.lev
|
||||
lib/slashemdir/oracles
|
||||
lib/slashemdir/orcus.lev
|
||||
lib/slashemdir/perm
|
||||
lib/slashemdir/quest.dat
|
||||
lib/slashemdir/rats.lev
|
||||
lib/slashemdir/record
|
||||
lib/slashemdir/rumors
|
||||
lib/slashemdir/sanctum.lev
|
||||
lib/slashemdir/sea.lev
|
||||
lib/slashemdir/soko1-1.lev
|
||||
lib/slashemdir/soko1-2.lev
|
||||
lib/slashemdir/soko2-1.lev
|
||||
lib/slashemdir/soko2-2.lev
|
||||
lib/slashemdir/soko3-1.lev
|
||||
lib/slashemdir/soko3-2.lev
|
||||
lib/slashemdir/soko4-1.lev
|
||||
lib/slashemdir/soko4-2.lev
|
||||
lib/slashemdir/spiders.lev
|
||||
lib/slashemdir/stor-1.lev
|
||||
lib/slashemdir/stor-2.lev
|
||||
lib/slashemdir/stor-3.lev
|
||||
lib/slashemdir/tomb.lev
|
||||
lib/slashemdir/tower1.lev
|
||||
lib/slashemdir/tower2.lev
|
||||
lib/slashemdir/tower3.lev
|
||||
lib/slashemdir/valley.lev
|
||||
lib/slashemdir/water.lev
|
||||
lib/slashemdir/wizard1.lev
|
||||
lib/slashemdir/wizard2.lev
|
||||
lib/slashemdir/wizard3.lev
|
||||
lib/slashemdir/wizhelp
|
||||
lib/slashemdir/yeenoghu.lev
|
||||
man/man6/slashem.6
|
||||
man/man6/strecover.6
|
||||
@mode 2555
|
||||
lib/slashemdir/slashem
|
||||
@exec chmod 775 %B
|
||||
@exec install -g games -m 0664 /dev/null %B/logfile
|
||||
@exec install -g games -m 0664 /dev/null %B/perm
|
||||
@exec install -g games -m 0664 /dev/null %B/record
|
||||
@unexec rm %B/logfile %B/perm %B/record
|
||||
@exec install -d -g games -m 0575 %B/save
|
||||
@unexec rm -rf %B/save
|
||||
@dirrm lib/slashemdir
|
Loading…
x
Reference in New Issue
Block a user