diff options
author | jschauma <jschauma@pkgsrc.org> | 2003-06-06 14:41:29 +0000 |
---|---|---|
committer | jschauma <jschauma@pkgsrc.org> | 2003-06-06 14:41:29 +0000 |
commit | dd333bd0f940e938f3e35c90f665da9faa790ea2 (patch) | |
tree | 7bdeebb9f3e1478378dd5f45f90f9cc1dddcecf7 /graphics | |
parent | 872ed2bdebb3af60ab1c8cfe0eb053dfaca289d0 (diff) | |
download | pkgsrc-dd333bd0f940e938f3e35c90f665da9faa790ea2.tar.gz |
Same as plotutils:
If X11 is present, set the pkgname to gnuplot-x11 and conflict with
plain gnuplot (and the other way around).
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/gnuplot/Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/graphics/gnuplot/Makefile b/graphics/gnuplot/Makefile index 78fc4ab047a..f230f1b2b5a 100644 --- a/graphics/gnuplot/Makefile +++ b/graphics/gnuplot/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.19 2003/06/04 21:34:08 jschauma Exp $ +# $NetBSD: Makefile,v 1.20 2003/06/06 14:41:29 jschauma Exp $ # DISTNAME= gnuplot-3.7.3 @@ -24,9 +24,12 @@ CONFIGURE_ARGS+= --with-readline=${BUILDLINK_PREFIX.readline} .include "../../mk/bsd.prefs.mk" .if exists(${X11BASE}) +PKGNAME= ${DISTNAME:C/-/-x11-/} +CONFLICTS+= ${DISTNAME:C/-[0-9].*//} USE_X11= YES PLIST_SUBST+= XCOMM="" .else +CONFLICTS+= ${DISTNAME:C/-[0-9].*/-x11/} PLIST_SUBST+= XCOMM="@comment " .endif |