summaryrefslogtreecommitdiff
path: root/graphics/plotutils
diff options
context:
space:
mode:
authorjschauma <jschauma@pkgsrc.org>2003-06-06 14:39:06 +0000
committerjschauma <jschauma@pkgsrc.org>2003-06-06 14:39:06 +0000
commit872ed2bdebb3af60ab1c8cfe0eb053dfaca289d0 (patch)
tree6f32d5582bb5224d55cda4bebb8fe4c37b13bad5 /graphics/plotutils
parentc813e24049c874330fafe0b6a16b3a2421a5cc48 (diff)
downloadpkgsrc-872ed2bdebb3af60ab1c8cfe0eb053dfaca289d0.tar.gz
If X11 is present, set the pkgname to plotutils-x11 and conflict with
plain plotutils (and the other way around). ok'd by agc.
Diffstat (limited to 'graphics/plotutils')
-rw-r--r--graphics/plotutils/Makefile6
1 files changed, 5 insertions, 1 deletions
diff --git a/graphics/plotutils/Makefile b/graphics/plotutils/Makefile
index 825cf37fcb0..858232d2aa9 100644
--- a/graphics/plotutils/Makefile
+++ b/graphics/plotutils/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2003/06/04 21:22:44 jschauma Exp $
+# $NetBSD: Makefile,v 1.24 2003/06/06 14:39:06 jschauma Exp $
#
DISTNAME= plotutils-2.4.1
@@ -24,7 +24,11 @@ LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig ${WRKSRC}/libxmi/ltconfig
# this package works with and without X11, but if X11 is present, we need the
# necessary compile and ld flags
.if exists(${X11BASE})
+PKGNAME= ${DISTNAME:C/-/-x11-/}
+CONFLICTS+= ${DISTNAME:C/-[0-9].*//}
USE_X11= YES
+.else
+CONFLICTS+= ${DISTNAME:C/-[0-9].*/-x11/}
.endif
.include "../../graphics/png/buildlink2.mk"