1999-01-05 09:00:41 +01:00
|
|
|
# New ports collection makefile for: gnumeric
|
|
|
|
# Date created: 08 October 1998
|
|
|
|
# Whom: Yukihiro Nakai <Nakai@technologist.com>
|
1998-10-26 12:58:07 +01:00
|
|
|
#
|
1999-08-25 09:23:21 +02:00
|
|
|
# $FreeBSD$
|
2010-07-25 12:36:21 +02:00
|
|
|
# $MCom: ports-stable/math/gnumeric/Makefile,v 1.5 2010/06/29 11:24:22 kwm Exp $
|
1998-10-26 12:58:07 +01:00
|
|
|
#
|
2010-07-25 12:36:21 +02:00
|
|
|
# When updating, remember to update pkg-plist of gchemutils.
|
1998-10-26 12:58:07 +01:00
|
|
|
|
2004-12-20 09:22:42 +01:00
|
|
|
PORTNAME= gnumeric
|
2011-06-14 05:56:25 +02:00
|
|
|
PORTVERSION= 1.10.15
|
2004-12-11 10:38:24 +01:00
|
|
|
CATEGORIES= math gnome
|
2009-02-02 02:36:16 +01:00
|
|
|
MASTER_SITES= GNOME
|
2004-12-11 10:38:24 +01:00
|
|
|
DIST_SUBDIR= gnome2
|
1998-10-26 12:58:07 +01:00
|
|
|
|
2004-12-11 10:38:24 +01:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
|
|
|
COMMENT= The GNOME 2 spreadsheet
|
2001-05-21 20:07:24 +02:00
|
|
|
|
2011-06-09 18:10:46 +02:00
|
|
|
BUILD_DEPENDS= rarian-sk-config:${PORTSDIR}/textproc/rarian
|
2010-02-14 21:46:55 +01:00
|
|
|
LIB_DEPENDS= goffice-0.8.8:${PORTSDIR}/devel/goffice \
|
2005-11-15 00:36:58 +01:00
|
|
|
psiconv.10:${PORTSDIR}/converters/psiconv
|
2011-06-09 18:10:46 +02:00
|
|
|
RUN_DEPENDS= rarian-sk-config:${PORTSDIR}/textproc/rarian
|
2005-03-13 17:28:27 +01:00
|
|
|
|
2010-07-25 12:36:21 +02:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
2001-07-09 18:46:59 +02:00
|
|
|
USE_BZIP2= yes
|
2006-03-27 01:24:28 +02:00
|
|
|
USE_GETTEXT= yes
|
1999-10-14 11:20:39 +02:00
|
|
|
USE_GMAKE= yes
|
2011-06-05 00:40:03 +02:00
|
|
|
USE_GNOME= gnomeprefix intlhack gnomehack gnomehier pygtk2 \
|
|
|
|
desktopfileutils
|
|
|
|
WANT_GNOME= yes
|
2000-10-20 18:25:09 +02:00
|
|
|
USE_PYTHON= yes
|
2004-12-11 10:38:24 +01:00
|
|
|
INSTALLS_OMF= yes
|
2006-11-05 04:45:05 +01:00
|
|
|
USE_LDCONFIG= yes
|
2011-06-21 00:39:43 +02:00
|
|
|
USE_CSTD= gnu89
|
2009-08-30 12:41:41 +02:00
|
|
|
WANT_PERL= yes
|
2009-01-10 06:22:13 +01:00
|
|
|
INSTALLS_ICONS= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2009-04-25 22:50:53 +02:00
|
|
|
CONFIGURE_ARGS= --with-gnome
|
2011-06-09 18:10:46 +02:00
|
|
|
CONFIGURE_ENV= LIBS="-L${LOCALBASE}/lib -liconv ${PTHREAD_LIBS}" \
|
2004-12-11 10:38:24 +01:00
|
|
|
python_prog=${PYTHON_VERSION}
|
2011-06-09 18:10:46 +02:00
|
|
|
CPPFLAGS= -I${LOCALBASE}/include ${PTHREAD_CFLAGS}
|
2011-06-05 00:40:03 +02:00
|
|
|
MAKE_JOBS_SAFE= yes
|
|
|
|
|
2011-03-25 13:32:07 +01:00
|
|
|
GLIB_SCHEMAS= org.gnome.gnumeric.dialogs.gschema.xml \
|
|
|
|
org.gnome.gnumeric.gschema.xml \
|
|
|
|
org.gnome.gnumeric.plugin.gschema.xml
|
1998-10-26 12:58:07 +01:00
|
|
|
|
2009-01-10 06:22:13 +01:00
|
|
|
MAN1= gnumeric.1 ssconvert.1 ssindex.1 ssgrep.1
|
2005-01-18 07:17:48 +01:00
|
|
|
|
2011-06-14 05:56:25 +02:00
|
|
|
PLIST_SUB= VERSION=${PORTVERSION} GOFFICE=0.8.15
|
2000-01-02 11:48:05 +01:00
|
|
|
|
2009-05-03 02:37:32 +02:00
|
|
|
OPTIONS= PERL "Enable Perl as extension language" on
|
|
|
|
#GNOMEDB "Enable libgnomedb support" off
|
2006-03-27 02:19:05 +02:00
|
|
|
|
2004-09-18 19:49:31 +02:00
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
|
2011-06-05 00:40:03 +02:00
|
|
|
.if ${HAVE_GNOME:Mlibgnomeui}!=""
|
|
|
|
CONFIGURE_ARGS+=--with-gnome=yes
|
|
|
|
USE_GNOME+= libgnomeui libgsf_gnome
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+=--with-gnome=no
|
|
|
|
USE_GNOME+= libgsf
|
|
|
|
.endif
|
|
|
|
|
2009-04-25 22:50:53 +02:00
|
|
|
.if defined(WITH_PERL)
|
|
|
|
USE_PERL5= yes
|
|
|
|
PLIST_SUB+= PERL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-perl
|
|
|
|
PLIST_SUB+= PERL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2009-05-03 02:37:32 +02:00
|
|
|
#.if defined(WITH_GNOMEDB)
|
|
|
|
#USE_GNOME+= libgnomedb
|
|
|
|
#CONFIGURE_ARGS+= --with-gda
|
|
|
|
#PLIST_SUB+= GNOMEDB=""
|
|
|
|
#.else
|
2006-03-27 01:24:28 +02:00
|
|
|
CONFIGURE_ARGS+= --without-gda
|
|
|
|
PLIST_SUB+= GNOMEDB="@comment "
|
2009-05-03 02:37:32 +02:00
|
|
|
#.endif
|
2006-03-27 01:24:28 +02:00
|
|
|
|
2004-12-11 10:38:24 +01:00
|
|
|
post-patch:
|
|
|
|
@${RM} -f ${WRKSRC}/GNOME_Gnumeric.server.in
|
2008-03-24 04:52:36 +01:00
|
|
|
@${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' \
|
2011-06-05 00:40:03 +02:00
|
|
|
-e 's|gnumeric_with_gconf=true|gnumeric_with_gconf=false|g' \
|
|
|
|
${WRKSRC}/configure
|
2004-12-11 10:38:24 +01:00
|
|
|
|
2002-01-02 13:01:04 +01:00
|
|
|
post-install:
|
2007-10-25 01:37:25 +02:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/gnumeric.desktop ${PREFIX}/share/applications
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/gnumeric.mime ${PREFIX}/share/mime-info
|
2005-11-05 07:10:56 +01:00
|
|
|
@-update-desktop-database
|
2007-10-25 01:37:25 +02:00
|
|
|
.for dir in share lib
|
2002-01-02 13:01:04 +01:00
|
|
|
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/${dir}/gnumeric
|
|
|
|
.endfor
|
|
|
|
|
2004-09-18 19:49:31 +02:00
|
|
|
.include <bsd.port.post.mk>
|