summaryrefslogtreecommitdiff
path: root/games/nethack-x11/Makefile
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-x11/Makefile
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-x11/Makefile')
-rw-r--r--games/nethack-x11/Makefile26
1 files changed, 12 insertions, 14 deletions
diff --git a/games/nethack-x11/Makefile b/games/nethack-x11/Makefile
index eb595a39532..b7e97711aad 100644
--- a/games/nethack-x11/Makefile
+++ b/games/nethack-x11/Makefile
@@ -1,31 +1,29 @@
-# $NetBSD: Makefile,v 1.2 1998/12/31 06:19:38 garbled Exp $
+# $NetBSD: Makefile,v 1.3 1998/12/31 13:20:54 tv Exp $
#
DISTNAME= nethack-3.2.2
PKGNAME= nethack-x11-3.2.2
CATEGORIES= games x11
-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
-DEPENDS+= xpm-3.4k:../../graphics/xpm
+#DEPENDS+= nethack-lib-3.2.2:../nethack-lib
+#DEPENDS+= xpm-3.4k:../../graphics/xpm
-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=-x11
-do-fetch: #empty
-do-extract:
- -@mkdir ${WRKDIR_BASENAME}
- (cd ../nethack-lib && make clean)
- (cd ../nethack-lib && make configure)
- (cd ${WRKSRC}/src && make clean)
+PATCHFILES+= ${PKGSRCDIR}/games/nethack-lib/patches/patch-*
+ALLFILES= ${DISTFILES} # don't checksum shared patches
-do-clean:
- -@rm -r ${WRKDIR_BASENAME}
+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"