summaryrefslogtreecommitdiff
path: root/games
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2000-07-10 16:03:47 +0000
committeragc <agc@pkgsrc.org>2000-07-10 16:03:47 +0000
commitf1bc5a3e73685c7a23afff38d607dbfdfacb7b6f (patch)
treed18e88610f0e1610a6df0707db9f9f25f547acdb /games
parent52c1afc38c6c1387969433578010efd90e8e3278 (diff)
downloadpkgsrc-f1bc5a3e73685c7a23afff38d607dbfdfacb7b6f.tar.gz
Find qt2 prefix via pkg_info(1), rather than hardcoding it as ${X11BASE}.
Pointed out by Dave Sainty <dave@dtsp.co.nz>, munged slightly by me.
Diffstat (limited to 'games')
-rw-r--r--games/nethack-qt/Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/games/nethack-qt/Makefile b/games/nethack-qt/Makefile
index c062a2ebf80..714171a96e7 100644
--- a/games/nethack-qt/Makefile
+++ b/games/nethack-qt/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.15 2000/04/28 10:12:43 drochner Exp $
+# $NetBSD: Makefile,v 1.16 2000/07/10 16:03:48 agc Exp $
#
DISTNAME= nethack-3.3.0
@@ -21,8 +21,8 @@ HAS_CONFIGURE= yes
CONFIGURE_SCRIPT= ./sys/unix/setup.sh
ALL_TARGET= x11tiles nethack
INSTALL_TARGET= binfiles
-PATH= ${X11BASE}/qt2/bin:$$PATH
-MAKE_ENV+= GTYPE=-qt QTDIR=${X11BASE}/qt2
+PATH= `${PKG_INFO} -qp qt2 | ${AWK} '{print $$2}'`/qt2/bin:$$PATH
+MAKE_ENV+= GTYPE=-qt QTDIR=`${PKG_INFO} -qp qt2 | ${AWK} '{print $$2}'`/qt2
PATCHFILES+= ${PKGSRCDIR}/games/nethack-lib/patches/patch-*
ALLFILES= ${DISTFILES} # don't checksum shared patches