summaryrefslogtreecommitdiff
path: root/graphics/giram
diff options
context:
space:
mode:
authoragc <agc>2000-07-10 10:40:39 +0000
committeragc <agc>2000-07-10 10:40:39 +0000
commit2f0b09b588eff52a3b5220f8f4761fcc47fe8801 (patch)
treeeb8c75c4d78a779a039aa1995f70225e25ce9df1 /graphics/giram
parentba0f4a0faaf07ab1fae22236bcfedcff16165e50 (diff)
downloadpkgsrc-2f0b09b588eff52a3b5220f8f4761fcc47fe8801.tar.gz
Hardcoding X11PREFIX into package Makefiles forces the user to install
xpkgwedge once, before any other packages have been installed, and never to delete it. This change finds the prefix of the installed pre-req package using pkg_info(1), and allows packages to be found in ${X11BASE} and ${LOCALBASE}, not just ${X11PREFIX} - from mail from Dave Sainty <dave@dtsp.co.nz>, munged slightly by myself.
Diffstat (limited to 'graphics/giram')
-rw-r--r--graphics/giram/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/graphics/giram/Makefile b/graphics/giram/Makefile
index cb168fa5af5..7ba067d7de1 100644
--- a/graphics/giram/Makefile
+++ b/graphics/giram/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2000/06/30 10:04:47 agc Exp $
+# $NetBSD: Makefile,v 1.9 2000/07/10 10:40:41 agc Exp $
# FreeBSD Id: Makefile,v 1.1.1.1 1999/06/19 17:38:24 cpiazza Exp $
DISTNAME= Giram-0.1.2
@@ -17,7 +17,7 @@ DEPENDS+= povray-*:../../graphics/povray
USE_X11= yes
USE_GMAKE= yes
GNU_CONFIGURE= yes
-CONFIGURE_ENV= GTK_CONFIG="${X11PREFIX}/bin/gtk-config" \
+CONFIGURE_ENV= GTK_CONFIG="`${PKG_INFO} -qp gtk+ | ${AWK} '{print $$2}'`/bin/gtk-config" \
CFLAGS="-I${LOCALBASE}/include ${CFLAGS}"
ALL_TARGET= install-strip