summaryrefslogtreecommitdiff
path: root/graphics/plotutils/Makefile
diff options
context:
space:
mode:
authorjschauma <jschauma>2003-06-07 17:39:23 +0000
committerjschauma <jschauma>2003-06-07 17:39:23 +0000
commit9974df9b5db262691143ca26d432f005400c799f (patch)
treea635c2ef0e606a3a7cfaf5533744972927127086 /graphics/plotutils/Makefile
parenta870e98e9adfb7625342c2c17736782c895096af (diff)
downloadpkgsrc-9974df9b5db262691143ca26d432f005400c799f.tar.gz
Split plotutils and gnuplot into '<pkgname>' and '<pkgname>-nox11' each
(alternatively, we could have renamed one to '<pkgname>-x11', but for the element of least surprise, the default remains x11 enabled). This will work much better than the previous attempt to build two packages from one Makefile, which wasn't all thought out wrt to dependencies, buildlinks etc. Bump PKGREVISION on plotutils and gnuplot for this.
Diffstat (limited to 'graphics/plotutils/Makefile')
-rw-r--r--graphics/plotutils/Makefile27
1 files changed, 9 insertions, 18 deletions
diff --git a/graphics/plotutils/Makefile b/graphics/plotutils/Makefile
index 858232d2aa9..c8ad4f828fe 100644
--- a/graphics/plotutils/Makefile
+++ b/graphics/plotutils/Makefile
@@ -1,8 +1,8 @@
-# $NetBSD: Makefile,v 1.24 2003/06/06 14:39:06 jschauma Exp $
+# $NetBSD: Makefile,v 1.25 2003/06/07 17:39:24 jschauma Exp $
#
DISTNAME= plotutils-2.4.1
-PKGREVISION= 1
+PKGREVISION= 2
CATEGORIES= devel graphics x11
MASTER_SITES= ${MASTER_SITE_GNU:=plotutils/}
@@ -10,27 +10,18 @@ MAINTAINER= dmcmahill@netbsd.org
HOMEPAGE= http://www.gnu.org/software/plotutils/plotutils.html
COMMENT= Programs and library for plotting scientific data
-USE_BUILDLINK2= yes
-USE_GCC_SHLIB= yes
+CONFLICTS+= ${DISTNAME:C/-[0-9].*/-nox11/}
-GNU_CONFIGURE= yes
+USE_BUILDLINK2= YES
+USE_GCC_SHLIB= YES
+USE_X11= YES
+
+GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --enable-libplotter
-USE_LIBTOOL= yes
+USE_LIBTOOL= YES
LTCONFIG_OVERRIDE= ${WRKSRC}/ltconfig ${WRKSRC}/libxmi/ltconfig
-.include "../../mk/bsd.prefs.mk"
-
-# 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"
.include "../../mk/texinfo.mk"
.include "../../mk/bsd.pkg.mk"