2013-03-19 10:39:43 +01:00
|
|
|
# Created by: Yukihiro Nakai <Nakai@technologist.com>
|
1999-08-25 09:23:21 +02:00
|
|
|
# $FreeBSD$
|
2013-06-27 14:06:29 +02:00
|
|
|
# $MCom: ports/trunk/math/gnumeric/Makefile 18444 2013-05-11 12:51:26Z kwm $
|
1998-10-26 12:58:07 +01:00
|
|
|
|
2004-12-20 09:22:42 +01:00
|
|
|
PORTNAME= gnumeric
|
2014-02-16 21:39:06 +01:00
|
|
|
PORTVERSION= 1.12.11
|
2004-12-11 10:38:24 +01:00
|
|
|
CATEGORIES= math gnome
|
2009-02-02 02:36:16 +01:00
|
|
|
MASTER_SITES= GNOME
|
2013-06-27 14:06:29 +02:00
|
|
|
DIST_SUBDIR= gnome3
|
1998-10-26 12:58:07 +01:00
|
|
|
|
2004-12-11 10:38:24 +01:00
|
|
|
MAINTAINER= gnome@FreeBSD.org
|
2013-06-27 14:06:29 +02:00
|
|
|
COMMENT= GNOME spreadsheet program
|
2001-05-21 20:07:24 +02:00
|
|
|
|
2011-11-22 15:48:13 +01:00
|
|
|
LICENSE= GPLv2
|
|
|
|
LICENSE_FILE= ${WRKSRC}/COPYING
|
|
|
|
|
2011-06-09 18:10:46 +02:00
|
|
|
BUILD_DEPENDS= rarian-sk-config:${PORTSDIR}/textproc/rarian
|
2013-12-02 22:21:35 +01:00
|
|
|
LIB_DEPENDS= libgoffice-0.10.so:${PORTSDIR}/devel/goffice010 \
|
|
|
|
libpsiconv.so:${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
|
|
|
|
2011-06-23 20:33:57 +02:00
|
|
|
USE_XZ= yes
|
2013-12-02 22:21:35 +01:00
|
|
|
USES= desktop-file-utils gettext gmake pathfix pkgconfig \
|
2014-02-16 21:39:06 +01:00
|
|
|
shebangfix
|
2013-06-27 14:06:29 +02:00
|
|
|
USE_GNOME= gnomehier gnomeprefix intlhack libgsf pygobject3
|
2014-01-13 22:00:02 +01:00
|
|
|
USE_PYTHON= 2
|
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
|
2014-02-16 21:39:06 +01:00
|
|
|
CONFIGURE_ARGS= --disable-compile-warnings
|
2013-06-27 14:06:29 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2014-02-16 21:39:06 +01:00
|
|
|
INSTALL_TARGET= install-strip
|
2011-06-05 00:40:03 +02:00
|
|
|
|
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
|
|
|
|
2013-12-02 22:21:35 +01:00
|
|
|
SHEBANG_FILES= plugins/perl-func/perl_func.pl
|
2005-01-18 07:17:48 +01:00
|
|
|
|
2013-06-27 14:06:29 +02:00
|
|
|
PLIST_SUB= VERSION=${PORTVERSION} GOFFICE=0.10 SHORT_VER=1.12
|
2000-01-02 11:48:05 +01:00
|
|
|
|
2013-12-02 22:21:35 +01:00
|
|
|
OPTIONS_DEFINE= PERL GDA
|
2013-03-19 10:39:43 +01:00
|
|
|
OPTIONS_DEFAULT=PERL
|
2013-12-02 22:21:35 +01:00
|
|
|
GDA_DESC= Gnome Database Access plugin
|
2013-03-19 10:39:43 +01:00
|
|
|
PERL_DESC= Support Perl as extension language
|
2006-03-27 02:19:05 +02:00
|
|
|
|
2013-03-19 10:39:43 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2004-09-18 19:49:31 +02:00
|
|
|
|
2013-03-19 10:39:43 +01:00
|
|
|
.if ${PORT_OPTIONS:MPERL}
|
2013-09-12 19:55:41 +02:00
|
|
|
USES+= perl5
|
2009-04-25 22:50:53 +02:00
|
|
|
PLIST_SUB+= PERL=""
|
|
|
|
.else
|
|
|
|
CONFIGURE_ARGS+= --without-perl
|
|
|
|
PLIST_SUB+= PERL="@comment "
|
|
|
|
.endif
|
|
|
|
|
2013-12-02 22:21:35 +01:00
|
|
|
.if defined(WITH_GDA)
|
|
|
|
USE_GNOME+= libgda5-ui
|
|
|
|
CONFIGURE_ARGS+= --with-gda
|
|
|
|
PLIST_SUB+= GDA=""
|
|
|
|
.else
|
2006-03-27 01:24:28 +02:00
|
|
|
CONFIGURE_ARGS+= --without-gda
|
2013-12-02 22:21:35 +01:00
|
|
|
PLIST_SUB+= GDA="@comment "
|
|
|
|
.endif
|
2006-03-27 01:24:28 +02:00
|
|
|
|
2004-12-11 10:38:24 +01:00
|
|
|
post-patch:
|
2013-06-27 14:06:29 +02:00
|
|
|
@${REINPLACE_CMD} -e 's|^GETTEXT_PACKAGE=gnumeric-$${VERSION}|GETTEXT_PACKAGE=gnumeric|g' \
|
|
|
|
${WRKSRC}/configure
|
2004-12-11 10:38:24 +01:00
|
|
|
|
2002-01-02 13:01:04 +01:00
|
|
|
post-install:
|
2013-12-02 22:21:35 +01:00
|
|
|
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -d \
|
2014-02-16 21:39:06 +01:00
|
|
|
${PREFIX}/${dir}/gnumeric -f ${STAGEDIR}${PREFIX}/lib/gnumeric/${PORTVERSION}
|
2013-12-02 22:21:35 +01:00
|
|
|
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -d \
|
2014-02-16 21:39:06 +01:00
|
|
|
${PREFIX}/${dir}/gnumeric -f ${STAGEDIR}${PREFIX}/lib/gnumeric/${PORTVERSION}
|
2002-01-02 13:01:04 +01:00
|
|
|
|
2013-03-19 10:39:43 +01:00
|
|
|
.include <bsd.port.mk>
|
2013-12-02 22:21:35 +01:00
|
|
|
|