summaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authortron <tron@pkgsrc.org>2002-08-12 19:43:20 +0000
committertron <tron@pkgsrc.org>2002-08-12 19:43:20 +0000
commit03aa4a7cb115866c107fa2be6ae3c48632b9e44c (patch)
tree265f86929a46cf0bae85042c6483f20d01bb3d6a /math
parent8064004a9bc2341fe9f1d9f7449b22b0564c2cb2 (diff)
downloadpkgsrc-03aa4a7cb115866c107fa2be6ae3c48632b9e44c.tar.gz
The "guppi" package doesn't work with version 0.75 of the "gnumeric"
package. Depend on "gnumeric" 1.0.x on platforms which can build this package and disable "gnumeric" support on other platforms.
Diffstat (limited to 'math')
-rw-r--r--math/guppi/Makefile15
-rw-r--r--math/guppi/PLIST8
2 files changed, 19 insertions, 4 deletions
diff --git a/math/guppi/Makefile b/math/guppi/Makefile
index 20ec8417eec..55b2e87fe0d 100644
--- a/math/guppi/Makefile
+++ b/math/guppi/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.16 2002/05/15 20:44:15 mjl Exp $
+# $NetBSD: Makefile,v 1.17 2002/08/12 19:43:20 tron Exp $
DISTNAME= Guppi-0.40.3
PKGNAME= ${DISTNAME:S/G/g/}
@@ -10,7 +10,18 @@ MAINTAINER= packages@netbsd.org
HOMEPAGE= http://www.gnome.org/guppi/
COMMENT= Plot program with integrated statistics capabilities
-DEPENDS+= gnumeric>=0.75:../../math/gnumeric0
+# "guppi" only accepts newer versions of the "gnumeric" package which
+# cannot be build on all platforms. We only enable "gnumeric" support
+# on platforms which can build the "gnumeric" 1.0.x packages.
+.if exists(/usr/include/wctype.h)
+DEPENDS+= gnumeric>=1.0.9:../../math/gnumeric
+
+CONFIGURE_ARGS= --enable-gnumeric
+PLIST_SUBST+= GNUMERIC=
+.else
+CONFIGURE_ARGS= --disable-gnumeric
+PLIST_SUBST+= GNUMERIC="@comment "
+.endif
DEPENDS+= guile>=1.4:../../lang/guile
BUILDLINK_DEPENDS.gnome-core= gnome-core>=1.4.0.4nb1
diff --git a/math/guppi/PLIST b/math/guppi/PLIST
index cdd546ec75e..ca6d38962c2 100644
--- a/math/guppi/PLIST
+++ b/math/guppi/PLIST
@@ -1,4 +1,5 @@
-@comment $NetBSD: PLIST,v 1.12 2002/08/09 11:02:02 tron Exp $
+@comment $NetBSD: PLIST,v 1.13 2002/08/12 19:43:20 tron Exp $
+${GNUMERIC}bin/guppi-gnumeric
include/gnome-1.0/libguppi/gnan.h
include/gnome-1.0/libguppi/guppi-2d.h
include/gnome-1.0/libguppi/guppi-alpha-template.h
@@ -198,7 +199,7 @@ share/gnome/help/guppi/C/docbook.css
share/gnome/help/guppi/C/guppi.html
share/gnome/help/guppi/C/ln14.html
share/gnome/help/guppi/C/topic.dat
-share/guppi/glade/guppi-gnumeric-format-guru.glade
+${GNUMERIC}share/guppi/glade/guppi-gnumeric-format-guru.glade
share/guppi/glade/view-properties.glade
${PKGLOCALEDIR}/locale/az/LC_MESSAGES/Guppi.mo
${PKGLOCALEDIR}/locale/da/LC_MESSAGES/Guppi.mo
@@ -219,6 +220,7 @@ ${PKGLOCALEDIR}/locale/sv/LC_MESSAGES/Guppi.mo
${PKGLOCALEDIR}/locale/tr/LC_MESSAGES/Guppi.mo
${PKGLOCALEDIR}/locale/uk/LC_MESSAGES/Guppi.mo
${PKGLOCALEDIR}/locale/zh_CN/LC_MESSAGES/Guppi.mo
+${GNUMERIC}share/oaf/GNOME_Guppi_Gnumeric.oaf
share/pixmaps/gnome-guppi.png
share/pixmaps/guppi/area.xpm
share/pixmaps/guppi/bar.xpm
@@ -298,7 +300,9 @@ share/pixmaps/guppi/resize-to-win.png
share/pixmaps/guppi/scatter.xpm
share/pixmaps/guppi/stock.xpm
share/pixmaps/guppi/surface.xpm
+${GNUMERIC}share/guppi/scripts/guppi-gnumeric-plots.xml
@dirrm share/pixmaps/guppi
+${GNUMERIC}@dirrm share/guppi/scripts
@dirrm share/guppi/glade
@dirrm share/guppi
@dirrm share/gnome/help/guppi/C/images