freebsd-ports/math/gnumeric/Makefile

76 lines
2 KiB
Makefile

# Created by: Yukihiro Nakai <Nakai@technologist.com>
# $FreeBSD$
# $MCom: ports/trunk/math/gnumeric/Makefile 18444 2013-05-11 12:51:26Z kwm $
PORTNAME= gnumeric
PORTVERSION= 1.12.3
CATEGORIES= math gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome3
MAINTAINER= gnome@FreeBSD.org
COMMENT= GNOME spreadsheet program
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= rarian-sk-config:${PORTSDIR}/textproc/rarian
LIB_DEPENDS= goffice-0.10:${PORTSDIR}/devel/goffice010 \
psiconv:${PORTSDIR}/converters/psiconv
RUN_DEPENDS= rarian-sk-config:${PORTSDIR}/textproc/rarian
USE_XZ= yes
USES= desktop-file-utils gettext pathfix shared-mime-info gmake pkgconfig
USE_GNOME= gnomehier gnomeprefix intlhack libgsf pygobject3
USE_PYTHON= -2.7
INSTALLS_OMF= yes
USE_LDCONFIG= yes
INSTALLS_ICONS= yes
GNU_CONFIGURE= yes
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
GLIB_SCHEMAS= org.gnome.gnumeric.dialogs.gschema.xml \
org.gnome.gnumeric.gschema.xml \
org.gnome.gnumeric.plugin.gschema.xml
MAN1= gnumeric.1 ssconvert.1 ssdiff.1 ssindex.1 ssgrep.1
PLIST_SUB= VERSION=${PORTVERSION} GOFFICE=0.10 SHORT_VER=1.12
OPTIONS_DEFINE= PERL
OPTIONS_DEFAULT=PERL
PERL_DESC= Support Perl as extension language
NO_STAGE= yes
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MPERL}
USES+= perl5
PLIST_SUB+= PERL=""
.else
CONFIGURE_ARGS+= --without-perl
PLIST_SUB+= PERL="@comment "
.endif
#.if defined(WITH_GNOMEDB)
#USE_GNOME+= libgnomedb
#CONFIGURE_ARGS+= --with-gda
#PLIST_SUB+= GNOMEDB=""
#.else
CONFIGURE_ARGS+= --without-gda
PLIST_SUB+= GNOMEDB="@comment "
#.endif
post-patch:
@${REINPLACE_CMD} -e 's|^GETTEXT_PACKAGE=gnumeric-$${VERSION}|GETTEXT_PACKAGE=gnumeric|g' \
${WRKSRC}/configure
post-install:
${INSTALL_DATA} ${WRKSRC}/gnumeric.desktop ${PREFIX}/share/applications
${INSTALL_DATA} ${WRKSRC}/gnumeric.mime ${PREFIX}/share/mime-info
.for dir in share lib
@${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py ${PREFIX}/${dir}/gnumeric
.endfor
.include <bsd.port.mk>