2000-12-26 18:29:26 -05:00
|
|
|
# $OpenBSD: Makefile,v 1.18 2000/12/26 23:29:26 espie Exp $
|
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
|
2000-06-28 09:28:47 -04:00
|
|
|
NEED_VERSION= 1.307
|
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/ \
|
|
|
|
${MASTER_SITE_GNU}
|
|
|
|
|
|
|
|
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
|
|
|
|
1999-03-06 22:05:15 -05:00
|
|
|
MASTER_SITE_SUBDIR= nethack
|
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
|
|
|
|
|
|
|
|
FAKE_FLAGS=PREFIX=${PREFIX} DESTDIR=${WRKINST}
|
2000-02-12 03:02:07 -05:00
|
|
|
|
2000-04-16 17:18:59 -04:00
|
|
|
NHDIR= ${DESTDIR}${PREFIX}/lib/slashdir
|
|
|
|
MAKE_ENV+= NHDIR=${NHDIR} NETHACKCONFIG=${NETHACKCONFIG}
|
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
|
|
|
# Old text interface
|
|
|
|
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
|
|
|
|
USE_X11= Yes
|
|
|
|
.endif
|
|
|
|
|
|
|
|
RUN_DEPENDS=${LOCALBASE}/share/doc/nethack/Guidebook.txt::games/hackdata
|
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
|
|
|
|
@-cd ${WRKSRC} && ${PATCH} -p1 -b .bak.orig -s < ${WRKDIR}/slashe8.dif
|
|
|
|
@cd ${WRKSRC} && ${PATCH} -p1 -b .bak.orig -s < ${WRKDIR}/e8p1.dif
|
|
|
|
|
|
|
|
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
|
|
|
|
.if ${FLAVOR:U} == "X11"
|
|
|
|
@mkdir -p ${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
|
1998-07-28 21:22:23 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|