2004-11-28 17:41:14 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.30 2004/11/28 22:41:21 espie Exp $
|
2001-05-05 21:06:09 -04:00
|
|
|
|
|
|
|
COMMENT= "dungeon explorin', hackin' game, but harder than nethack"
|
1998-07-28 21:22:23 -04:00
|
|
|
|
|
|
|
DISTNAME= slash-e8
|
2000-04-22 07:45:32 -04:00
|
|
|
PKGNAME= slash-3.2.2-e8
|
1998-07-28 21:22:23 -04:00
|
|
|
CATEGORIES= games
|
2002-10-26 16:44:38 -04:00
|
|
|
|
2000-04-16 17:18:59 -04:00
|
|
|
MASTER_SITES= ftp://ftp.nethack.org/pub/nethack/oldver/3.2.2/src/ \
|
|
|
|
ftp://ftp.uu.net/pub/games/nethack/sources/ \
|
2002-05-13 14:50:36 -04:00
|
|
|
${MASTER_SITE_GNU:=nethack/}
|
2000-04-16 17:18:59 -04:00
|
|
|
|
|
|
|
MASTER_SITES0= ftp://ftp.nethack.org/pub/nethack/oldver/3.2.3/src/
|
1999-09-28 15:07:33 -04:00
|
|
|
MASTER_SITES1= http://www.rz.tu-ilmenau.de/~wi019/Slash/
|
2000-04-16 17:18:59 -04:00
|
|
|
|
|
|
|
DISTFILES= nethack-3.2.2.tar.gz Slash-Unix.tar.gz:1
|
|
|
|
PATCHFILES=nh-3.2.2-3.2.3.diff:0
|
1998-07-28 21:22:23 -04:00
|
|
|
|
1999-09-28 15:07:33 -04:00
|
|
|
|
2000-10-09 20:40:20 -04:00
|
|
|
MAINTAINER= Marc Espie <espie@openbsd.org>
|
1998-07-28 21:22:23 -04:00
|
|
|
|
2000-10-09 20:40:20 -04:00
|
|
|
# GPL
|
2000-04-16 17:18:59 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2004-11-28 17:41:14 -05:00
|
|
|
WANTLIB= c termlib
|
2000-04-16 17:18:59 -04:00
|
|
|
|
|
|
|
FAKE_FLAGS=PREFIX=${PREFIX} DESTDIR=${WRKINST}
|
2000-02-12 03:02:07 -05:00
|
|
|
|
2004-08-10 05:48:24 -04:00
|
|
|
GAMEDIR=lib/slashdir
|
|
|
|
NHDIR= ${PREFIX}/${GAMEDIR}
|
2000-04-16 17:18:59 -04:00
|
|
|
MAKE_ENV+= NHDIR=${NHDIR} NETHACKCONFIG=${NETHACKCONFIG}
|
2004-08-10 05:48:24 -04:00
|
|
|
SUBST_VARS=GAMEDIR
|
1998-07-28 21:22:23 -04:00
|
|
|
|
2000-12-26 18:29:26 -05:00
|
|
|
FLAVORS=no_x11
|
2000-04-16 17:18:59 -04:00
|
|
|
FLAVOR?=
|
|
|
|
|
2000-12-26 18:29:26 -05:00
|
|
|
.if ${FLAVOR:L} == "no_x11"
|
|
|
|
NETHACKCONFIG=${FILESDIR}/simple-config
|
|
|
|
.else
|
2000-04-16 17:18:59 -04:00
|
|
|
NETHACKCONFIG=${FILESDIR}/x-config
|
2004-11-28 17:41:14 -05:00
|
|
|
WANTLIB+= X11 Xaw Xext Xmu Xpm Xt
|
2000-04-16 17:18:59 -04:00
|
|
|
USE_X11= Yes
|
|
|
|
.endif
|
|
|
|
|
2001-09-19 12:03:09 -04:00
|
|
|
RUN_DEPENDS=:hackdata-*:games/hackdata
|
1998-07-28 21:22:23 -04:00
|
|
|
|
2002-10-26 16:44:38 -04:00
|
|
|
NO_REGRESS= Yes
|
|
|
|
|
1998-07-28 21:22:23 -04:00
|
|
|
post-extract:
|
2000-04-16 17:18:59 -04:00
|
|
|
@cd ${WRKDIR} && mv nethack-3.2.2 ${DISTNAME}
|
|
|
|
@cd ${WRKDIR} && mv dat/* ${DISTNAME}/dat
|
2000-02-10 20:09:59 -05:00
|
|
|
@cp ${FILESDIR}/blkmar.des ${WRKSRC}/dat
|
1998-07-28 21:22:23 -04:00
|
|
|
|
2000-04-16 17:18:59 -04:00
|
|
|
post-distpatch:
|
|
|
|
# Two patches failure, not to worry
|
2003-08-01 21:53:48 -04:00
|
|
|
@-cd ${WRKSRC} && ${PATCH} -p1 -z .bak.orig -s < ${WRKDIR}/slashe8.dif
|
2004-07-12 10:52:22 -04:00
|
|
|
@echo >>${WRKSRC}/dat/knox.des # add trailing newline
|
2003-08-01 21:53:48 -04:00
|
|
|
@cd ${WRKSRC} && ${PATCH} -p1 -z .bak.orig -s < ${WRKDIR}/e8p1.dif
|
2000-04-16 17:18:59 -04:00
|
|
|
|
|
|
|
do-configure:
|
|
|
|
@cd ${WRKSRC}/sys/unix && ${SH} setup.sh symlinks
|
1998-07-28 21:22:23 -04:00
|
|
|
|
2000-04-16 17:18:59 -04:00
|
|
|
post-build:
|
|
|
|
@cd ${WRKSRC}/util && ${MAKE_ENV} make recover
|
|
|
|
@cd ${WRKSRC}/util && ln -f recover srecover
|
|
|
|
@cd ${WRKSRC}/doc && perl -p ${FILESDIR}/substitute <nethack.6 >slash.6
|
|
|
|
@cd ${WRKSRC}/doc && perl -p ${FILESDIR}/substitute <recover.6 >srecover.6
|
1998-07-28 21:22:23 -04:00
|
|
|
|
|
|
|
post-install:
|
2000-04-16 17:18:59 -04:00
|
|
|
${INSTALL_PROGRAM} ${WRKBUILD}/util/srecover ${PREFIX}/bin
|
|
|
|
@cd ${WRKSRC}/doc && \
|
|
|
|
${INSTALL_MAN} slash.6 srecover.6 ${PREFIX}/man/man6
|
2001-01-31 17:43:44 -05:00
|
|
|
.if ${FLAVOR:L} == ""
|
2001-03-22 17:06:35 -05:00
|
|
|
${INSTALL_DATA_DIR} ${PREFIX}/lib/X11/app-defaults
|
1999-09-28 15:07:33 -04:00
|
|
|
@cd ${WRKSRC}/win/X11 && \
|
2000-02-10 20:09:59 -05:00
|
|
|
sed -e "s/^NetHack/Slash/; s/^!NetHack/!Slash/" <NetHack.ad > Slash && \
|
2000-04-16 17:18:59 -04:00
|
|
|
${INSTALL_DATA} Slash ${PREFIX}/lib/X11/app-defaults
|
|
|
|
.endif
|
2004-08-10 05:48:24 -04:00
|
|
|
@install -g games -m 0664 /dev/null ${NHDIR}/logfile
|
|
|
|
@install -g games -m 0664 /dev/null ${NHDIR}/perm
|
|
|
|
@install -g games -m 0664 /dev/null ${NHDIR}/record
|
1998-07-28 21:22:23 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|