summaryrefslogtreecommitdiff
path: root/games/nethack-tty
diff options
context:
space:
mode:
authortv <tv@pkgsrc.org>1998-12-31 13:20:52 +0000
committertv <tv@pkgsrc.org>1998-12-31 13:20:52 +0000
commite433d0e3f7374cdb3b92471a5836f6db35b7cffc (patch)
treed1d4356e742c4e354301e1eda858d7c6d2d67cf5 /games/nethack-tty
parentbce3d0411e3c93d572af97792b4f091a0e29d20b (diff)
downloadpkgsrc-e433d0e3f7374cdb3b92471a5836f6db35b7cffc.tar.gz
DO NOT REACH OVER INTO ANOTHER PKG'S ${WRKDIR}!
This breaks many things, not the least of which are `make fetch-list' and `WRKOBJDIR'.
Diffstat (limited to 'games/nethack-tty')
-rw-r--r--games/nethack-tty/Makefile19
-rw-r--r--games/nethack-tty/files/md53
2 files changed, 13 insertions, 9 deletions
diff --git a/games/nethack-tty/Makefile b/games/nethack-tty/Makefile
index 31b312bf80b..4a1747489c0 100644
--- a/games/nethack-tty/Makefile
+++ b/games/nethack-tty/Makefile
@@ -1,25 +1,26 @@
-# $NetBSD: Makefile,v 1.3 1998/12/31 06:19:38 garbled Exp $
+# $NetBSD: Makefile,v 1.4 1998/12/31 13:20:53 tv Exp $
DISTNAME= nethack-3.2.2
PKGNAME= nethack-tty-3.2.2
CATEGORIES= games
-MASTER_SITES= # empty
+MASTER_SITES= http://pinky.wtower.com/nethack/sources/
MAINTAINER= root@garbled.net
HOMEPAGE= http://www.win.tue.nl/games/roguelike/nethack/
DEPENDS+= nethack-lib-3.2.2:../nethack-lib
-WRKSRC= ../nethack-lib/${WRKDIR_BASENAME}/${DISTNAME}
-NO_CHECKSUM= yes
+HAS_CONFIGURE= yes
+CONFIGURE_SCRIPT= sys/unix/setup.sh
ALL_TARGET= nethack
INSTALL_TARGET= binfiles
MAKE_ENV+= GTYPE=-tty
-do-fetch: #empty
-do-extract:
- -@mkdir ${WRKDIR_BASENAME}
- (cd ../nethack-lib && make clean)
- (cd ../nethack-lib && make configure)
+PATCHDIR= ${PKGSRCDIR}/games/nethack-lib/patches
+
+post-patch:
+ @${MV} ${WRKSRC}/include/config.h ${WRKSRC}/foo
+ @${SED} -e 's@XXXLOCALBASEXXX@${LOCALBASE}@g' <${WRKSRC}/foo> ${WRKSRC}/include/config.h
+ @${RM} -f ${WRKSRC}/foo
.include "../../mk/bsd.pkg.mk"
diff --git a/games/nethack-tty/files/md5 b/games/nethack-tty/files/md5
new file mode 100644
index 00000000000..adccd5fe5bf
--- /dev/null
+++ b/games/nethack-tty/files/md5
@@ -0,0 +1,3 @@
+$NetBSD: md5,v 1.1 1998/12/31 13:20:53 tv Exp $
+
+MD5 (nethack-3.2.2.tar.gz) = c85de4d14453b3a2d182d1dfc2ca04df