diff options
author | jschauma <jschauma@pkgsrc.org> | 2003-06-04 21:34:08 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2003-06-04 21:34:08 +0000 |
commit | 03488b35c036ef5bd012f063fdf072b58b263c9f (patch) | |
tree | 6cd95d2979c02ceafdaafc39b87273432f1cfaf5 /graphics/gnuplot | |
parent | b956ed6b66b63ad15c5caae6527a76357d8585dc (diff) | |
download | pkgsrc-03488b35c036ef5bd012f063fdf072b58b263c9f.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/gnuplot')
-rw-r--r-- | graphics/gnuplot/Makefile | 11 | ||||
-rw-r--r-- | graphics/gnuplot/PLIST | 4 |
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 |