aboutsummaryrefslogtreecommitdiff
path: root/math
diff options
context:
space:
mode:
authorJeremy Messenger <mezz@FreeBSD.org>2011-06-04 22:40:03 +0000
committerJeremy Messenger <mezz@FreeBSD.org>2011-06-04 22:40:03 +0000
commitba7d64a8cbb022be90bcc5975b5b8985f7cc0b97 (patch)
treef2e4eec5e9077edf6e3789ffbec1645c21b772fa /math
parent93d721ee8e715fe68420cd9229f546b88c0d4eb4 (diff)
downloadports-ba7d64a8cbb022be90bcc5975b5b8985f7cc0b97.tar.gz
ports-ba7d64a8cbb022be90bcc5975b5b8985f7cc0b97.zip
Notes
Diffstat (limited to 'math')
-rw-r--r--math/gnumeric/Makefile20
1 files changed, 15 insertions, 5 deletions
diff --git a/math/gnumeric/Makefile b/math/gnumeric/Makefile
index 79effcf20673..e3a89d49a787 100644
--- a/math/gnumeric/Makefile
+++ b/math/gnumeric/Makefile
@@ -24,8 +24,9 @@ LICENSE_FILE= ${WRKSRC}/COPYING
USE_BZIP2= yes
USE_GETTEXT= yes
USE_GMAKE= yes
-USE_GNOME= gnomeprefix intlhack gnomehack gnomehier \
- libgsf_gnome pygtk2 desktopfileutils libgnomeui
+USE_GNOME= gnomeprefix intlhack gnomehack gnomehier pygtk2 \
+ desktopfileutils
+WANT_GNOME= yes
USE_PYTHON= yes
INSTALLS_OMF= yes
USE_LDCONFIG= yes
@@ -37,8 +38,8 @@ CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
LIBS="-L${LOCALBASE}/lib -liconv ${PTHREAD_LIBS}" \
python_prog=${PYTHON_VERSION}
-GCONF_SCHEMAS= gnumeric-dialogs.schemas gnumeric-general.schemas \
- gnumeric-plugins.schemas
+MAKE_JOBS_SAFE= yes
+
GLIB_SCHEMAS= org.gnome.gnumeric.dialogs.gschema.xml \
org.gnome.gnumeric.gschema.xml \
org.gnome.gnumeric.plugin.gschema.xml
@@ -52,6 +53,14 @@ OPTIONS= PERL "Enable Perl as extension language" on
.include <bsd.port.pre.mk>
+.if ${HAVE_GNOME:Mlibgnomeui}!=""
+CONFIGURE_ARGS+=--with-gnome=yes
+USE_GNOME+= libgnomeui libgsf_gnome
+.else
+CONFIGURE_ARGS+=--with-gnome=no
+USE_GNOME+= libgsf
+.endif
+
.if defined(WITH_PERL)
USE_PERL5= yes
PLIST_SUB+= PERL=""
@@ -73,7 +82,8 @@ post-patch:
@${RM} -f ${WRKSRC}/GNOME_Gnumeric.server.in
@${REINPLACE_CMD} -e 's|gda-3.0 >= 3.1.1|gda-3.0 >= 3.0.1|g' \
-e 's|gnomedb-3.0 >= 3.0.1|gnomedb-3.0 >= 3.0.0|g' \
- ${WRKSRC}/configure
+ -e 's|gnumeric_with_gconf=true|gnumeric_with_gconf=false|g' \
+ ${WRKSRC}/configure
post-install:
${INSTALL_DATA} ${WRKSRC}/gnumeric.desktop ${PREFIX}/share/applications