diff options
author | jschauma <jschauma> | 2003-06-04 21:34:08 +0000 |
---|---|---|
committer | jschauma <jschauma> | 2003-06-04 21:34:08 +0000 |
commit | 65085ad17ba12e3419400754ab599736113e2003 (patch) | |
tree | 6cd95d2979c02ceafdaafc39b87273432f1cfaf5 /graphics/gnuplot/Makefile | |
parent | da0b9094e5141b75a3e954b9a1c68b877edd2ba6 (diff) | |
download | pkgsrc-65085ad17ba12e3419400754ab599736113e2003.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/Makefile')
-rw-r--r-- | graphics/gnuplot/Makefile | 11 |
1 files changed, 10 insertions, 1 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" |