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$
|
2009-01-10 06:22:13 +01:00
|
|
|
# $MCom: ports/math/gnumeric/Makefile,v 1.46 2008/10/20 21:37:28 kwm Exp $
|
1998-10-26 12:58:07 +01:00
|
|
|
#
|
|
|
|
|
2004-12-20 09:22:42 +01:00
|
|
|
PORTNAME= gnumeric
|
2009-01-10 06:22:13 +01:00
|
|
|
PORTVERSION= 1.9.3
|
2009-01-12 05:51:33 +01:00
|
|
|
PORTREVISION= 2
|
2004-12-11 10:38:24 +01:00
|
|
|
CATEGORIES= math gnome
|
1999-01-27 09:31:54 +01:00
|
|
|
MASTER_SITES= ${MASTER_SITE_GNOME}
|
2004-12-20 09:22:42 +01:00
|
|
|
MASTER_SITE_SUBDIR= sources/${PORTNAME}/${PORTVERSION:R}
|
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
|
|
|
|
2009-01-10 06:22:13 +01:00
|
|
|
LIB_DEPENDS= goffice-0.8.7:${PORTSDIR}/devel/goffice \
|
2005-11-15 00:36:58 +01:00
|
|
|
psiconv.10:${PORTSDIR}/converters/psiconv
|
2005-03-13 17:28:27 +01:00
|
|
|
|
2001-07-09 18:46:59 +02:00
|
|
|
USE_BZIP2= yes
|
2006-03-27 01:24:28 +02:00
|
|
|
USE_GETTEXT= yes
|
1999-03-09 02:13:40 +01:00
|
|
|
USE_PERL5= yes
|
1999-10-14 11:20:39 +02:00
|
|
|
USE_GMAKE= yes
|
2007-04-22 18:19:04 +02:00
|
|
|
USE_GNOME= gnomeprefix intlhack gnomehack gnomehier \
|
2006-03-27 19:23:16 +02:00
|
|
|
libgsf_gnome pygtk2 desktopfileutils libgnomeui
|
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
|
2009-01-10 06:22:13 +01:00
|
|
|
INSTALLS_ICONS= yes
|
2006-02-23 11:40:44 +01:00
|
|
|
GNU_CONFIGURE= yes
|
2007-07-23 11:36:51 +02:00
|
|
|
CONFIGURE_ARGS= --without-guile --with-bonobo
|
2001-08-13 13:19:45 +02:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include ${PTHREAD_CFLAGS}" \
|
2004-12-11 10:38:24 +01:00
|
|
|
LIBS="-L${LOCALBASE}/lib -liconv ${PTHREAD_LIBS}" \
|
|
|
|
python_prog=${PYTHON_VERSION}
|
|
|
|
|
|
|
|
GCONF_SCHEMAS= gnumeric-dialogs.schemas gnumeric-general.schemas \
|
|
|
|
gnumeric-plugins.schemas
|
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
|
|
|
|
2004-12-11 10:38:24 +01:00
|
|
|
PLIST_SUB= VERSION=${PORTVERSION}
|
2000-01-02 11:48:05 +01:00
|
|
|
|
2006-03-27 02:22:08 +02:00
|
|
|
OPTIONS= 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>
|
|
|
|
|
2006-03-27 02:19:05 +02:00
|
|
|
.if defined(WITH_GNOMEDB)
|
2006-03-27 01:24:28 +02:00
|
|
|
USE_GNOME+= libgnomedb
|
|
|
|
CONFIGURE_ARGS+= --with-gda
|
|
|
|
PLIST_SUB+= GNOMEDB=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-gda
|
|
|
|
PLIST_SUB+= GNOMEDB="@comment "
|
|
|
|
.endif
|
|
|
|
|
2008-01-10 08:07:46 +01:00
|
|
|
post-extract:
|
|
|
|
@${CP} ${FILESDIR}/gnumeric-C.omf ${WRKSRC}/doc/C
|
|
|
|
|
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' \
|
|
|
|
${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>
|