summaryrefslogtreecommitdiff
path: root/graphics
diff options
context:
space:
mode:
authorjschauma <jschauma>2003-06-04 21:34:08 +0000
committerjschauma <jschauma>2003-06-04 21:34:08 +0000
commit8595daa2322b03d25b845a656087a89d38df0010 (patch)
tree6cd95d2979c02ceafdaafc39b87273432f1cfaf5 /graphics
parent707faed3992fa04f8d1ab61af9b0a4175fbca191 (diff)
downloadpkgsrc-8595daa2322b03d25b845a656087a89d38df0010.tar.gz
If X is found to be present, this package builds and installs gnuplot_x11,
if not, not. Fix accordingly. Pointed out by wiz@. Sorry.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/gnuplot/Makefile11
-rw-r--r--graphics/gnuplot/PLIST4
2 files changed, 12 insertions, 3 deletions
diff --git a/graphics/gnuplot/Makefile b/graphics/gnuplot/Makefile
index fc0bd198c93..78fc4ab047a 100644
--- a/graphics/gnuplot/Makefile
+++ b/graphics/gnuplot/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.18 2003/06/04 18:21:50 jschauma Exp $
+# $NetBSD: Makefile,v 1.19 2003/06/04 21:34:08 jschauma Exp $
#
DISTNAME= gnuplot-3.7.3
@@ -21,6 +21,15 @@ CONFIGURE_ARGS+= --with-pdf
CONFIGURE_ARGS+= --with-plot=${LOCALBASE}
CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline}
+.include "../../mk/bsd.prefs.mk"
+
+.if exists(${X11BASE})
+USE_X11= YES
+PLIST_SUBST+= XCOMM=""
+.else
+PLIST_SUBST+= XCOMM="@comment "
+.endif
+
.include "../../devel/readline/buildlink2.mk"
.include "../../graphics/plotutils/buildlink2.mk"
.include "../../graphics/png/buildlink2.mk"
diff --git a/graphics/gnuplot/PLIST b/graphics/gnuplot/PLIST
index 24442fc7ac4..5329e29f97f 100644
--- a/graphics/gnuplot/PLIST
+++ b/graphics/gnuplot/PLIST
@@ -1,6 +1,6 @@
-@comment $NetBSD: PLIST,v 1.2 2003/03/05 14:01:25 wiz Exp $
+@comment $NetBSD: PLIST,v 1.3 2003/06/04 21:34:08 jschauma Exp $
bin/gnuplot
-bin/gnuplot_x11
+${XCOMM}bin/gnuplot_x11
@unexec ${INSTALL_INFO} --delete --info-dir=%D/info %D/info/gnuplot.info
info/gnuplot.info
@exec ${INSTALL_INFO} --info-dir=%D/info %D/info/gnuplot.info