aboutsummaryrefslogtreecommitdiffstats
path: root/math
diff options
context:
space:
mode:
authormarcus <marcus@FreeBSD.org>2006-03-27 07:24:28 +0800
committermarcus <marcus@FreeBSD.org>2006-03-27 07:24:28 +0800
commitcdc0414c1f0dfa32319dfabc6cffa343a46e8bc5 (patch)
tree73ac9f9dea277ea746de514bd15fb959abffe99d /math
parent5ad2c921b6279f64cf82c3845cf7c9591bdb5c9b (diff)
downloadfreebsd-ports-gnome-cdc0414c1f0dfa32319dfabc6cffa343a46e8bc5.tar.gz
freebsd-ports-gnome-cdc0414c1f0dfa32319dfabc6cffa343a46e8bc5.tar.zst
freebsd-ports-gnome-cdc0414c1f0dfa32319dfabc6cffa343a46e8bc5.zip
Optionalize libgnomedb support since libgda2 and libgda3 conflict.
Diffstat (limited to 'math')
-rw-r--r--math/gnumeric/Makefile14
-rw-r--r--math/gnumeric/pkg-plist18
2 files changed, 22 insertions, 10 deletions
diff --git a/math/gnumeric/Makefile b/math/gnumeric/Makefile
index c3bb99d4fc8b..a84489b270e7 100644
--- a/math/gnumeric/Makefile
+++ b/math/gnumeric/Makefile
@@ -8,6 +8,7 @@
PORTNAME= gnumeric
PORTVERSION= 1.6.3
+PORTREVISION= 1
CATEGORIES= math gnome
MASTER_SITES= ${MASTER_SITE_GNOME}
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:R}
@@ -20,11 +21,13 @@ LIB_DEPENDS= goffice-1.2:${PORTSDIR}/devel/goffice \
psiconv.10:${PORTSDIR}/converters/psiconv
USE_BZIP2= yes
+USE_GETTEXT= yes
USE_X_PREFIX= yes
USE_PERL5= yes
USE_GMAKE= yes
USE_GNOME= gnomeprefix intlhack gnomehack gnomehier libgnomeprintui \
- libgsf_gnome pygtk2 desktopfileutils libgnomedb
+ libgsf_gnome pygtk2 desktopfileutils
+WANT_GNOME= yes
USE_PYTHON= yes
INSTALLS_OMF= yes
INSTALLS_SHLIB= yes
@@ -49,6 +52,15 @@ PLIST_SUB+= PERL="@comment "
PLIST_SUB+= PERL=""
.endif
+.if ${HAVE_GNOME:Mlibgnomedb}!=""
+USE_GNOME+= libgnomedb
+CONFIGURE_ARGS+= --with-gda
+PLIST_SUB+= GNOMEDB=""
+.else
+CONFIGURE_ARGS+= --without-gda
+PLIST_SUB+= GNOMEDB="@comment "
+.endif
+
post-patch:
@${RM} -f ${WRKSRC}/GNOME_Gnumeric.server.in
diff --git a/math/gnumeric/pkg-plist b/math/gnumeric/pkg-plist
index 9e4da73142a6..20e15f4f9692 100644
--- a/math/gnumeric/pkg-plist
+++ b/math/gnumeric/pkg-plist
@@ -58,13 +58,13 @@ lib/gnumeric/%%VERSION%%/plugins/fn-stat/plugin.xml
lib/gnumeric/%%VERSION%%/plugins/fn-string/plugin.la
lib/gnumeric/%%VERSION%%/plugins/fn-string/plugin.so
lib/gnumeric/%%VERSION%%/plugins/fn-string/plugin.xml
-lib/gnumeric/%%VERSION%%/plugins/gdaif/gdaif.la
-lib/gnumeric/%%VERSION%%/plugins/gdaif/gdaif.so
-lib/gnumeric/%%VERSION%%/plugins/gdaif/plugin.xml
-lib/gnumeric/%%VERSION%%/plugins/gnome-db/gnomedb.la
-lib/gnumeric/%%VERSION%%/plugins/gnome-db/gnomedb.so
-lib/gnumeric/%%VERSION%%/plugins/gnome-db/plugin.xml
-lib/gnumeric/%%VERSION%%/plugins/gnome-db/ui.xml
+%%GNOMEDB%%lib/gnumeric/%%VERSION%%/plugins/gdaif/gdaif.la
+%%GNOMEDB%%lib/gnumeric/%%VERSION%%/plugins/gdaif/gdaif.so
+%%GNOMEDB%%lib/gnumeric/%%VERSION%%/plugins/gdaif/plugin.xml
+%%GNOMEDB%%lib/gnumeric/%%VERSION%%/plugins/gnome-db/gnomedb.la
+%%GNOMEDB%%lib/gnumeric/%%VERSION%%/plugins/gnome-db/gnomedb.so
+%%GNOMEDB%%lib/gnumeric/%%VERSION%%/plugins/gnome-db/plugin.xml
+%%GNOMEDB%%lib/gnumeric/%%VERSION%%/plugins/gnome-db/ui.xml
lib/gnumeric/%%VERSION%%/plugins/gnome-glossary/glossary-po-header
lib/gnumeric/%%VERSION%%/plugins/gnome-glossary/gnome_glossary.py
lib/gnumeric/%%VERSION%%/plugins/gnome-glossary/gnome_glossary.pyc
@@ -784,8 +784,8 @@ share/locale/zh_TW/LC_MESSAGES/gnumeric.mo
@dirrm lib/gnumeric/%%VERSION%%/plugins/lotus
@dirrm lib/gnumeric/%%VERSION%%/plugins/html
@dirrm lib/gnumeric/%%VERSION%%/plugins/gnome-glossary
-@dirrm lib/gnumeric/%%VERSION%%/plugins/gnome-db
-@dirrm lib/gnumeric/%%VERSION%%/plugins/gdaif
+%%GNOMEDB%%@dirrm lib/gnumeric/%%VERSION%%/plugins/gnome-db
+%%GNOMEDB%%@dirrm lib/gnumeric/%%VERSION%%/plugins/gdaif
@dirrm lib/gnumeric/%%VERSION%%/plugins/fn-string
@dirrm lib/gnumeric/%%VERSION%%/plugins/fn-stat
@dirrm lib/gnumeric/%%VERSION%%/plugins/fn-random