summaryrefslogtreecommitdiff
path: root/comms/jpilot
diff options
context:
space:
mode:
authoragc <agc@pkgsrc.org>2000-07-10 10:40:39 +0000
committeragc <agc@pkgsrc.org>2000-07-10 10:40:39 +0000
commite05e4735ddf3f9207384f7ffab7fa66a65f20df7 (patch)
treeeb8c75c4d78a779a039aa1995f70225e25ce9df1 /comms/jpilot
parentb16e065ccc96b67b06741355aaed54c93e111998 (diff)
downloadpkgsrc-e05e4735ddf3f9207384f7ffab7fa66a65f20df7.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 'comms/jpilot')
-rw-r--r--comms/jpilot/Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/comms/jpilot/Makefile b/comms/jpilot/Makefile
index f8840de61f9..072b55b3681 100644
--- a/comms/jpilot/Makefile
+++ b/comms/jpilot/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2000/06/30 10:04:46 agc Exp $
+# $NetBSD: Makefile,v 1.4 2000/07/10 10:40:39 agc Exp $
#
DISTNAME= jpilot-0.98.1
@@ -16,7 +16,7 @@ USE_LIBTOOL= YES
USE_X11= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig
-CONFIGURE_ARGS+= --with-gtk-prefix=${X11PREFIX}
+CONFIGURE_ARGS+= --with-gtk-prefix="`${PKG_INFO} -qp gtk+ | ${AWK} '{print $$2}'`"
CONFIGURE_ARGS+= --with-pilot-prefix=${LOCALBASE}
post-install: