1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-21 04:06:46 +00:00
freebsd-ports/math/gnumeric/Makefile
2021-04-06 16:31:07 +02:00

71 lines
1.8 KiB
Makefile

# Created by: Yukihiro Nakai <Nakai@technologist.com>
PORTNAME= gnumeric
PORTVERSION= 1.12.48
CATEGORIES= math gnome
MASTER_SITES= GNOME
DIST_SUBDIR= gnome
MAINTAINER= gnome@FreeBSD.org
COMMENT= GNOME spreadsheet program
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= itstool:textproc/itstool \
ginstall:sysutils/coreutils
LIB_DEPENDS= libgoffice-0.10.so:devel/goffice \
libfribidi.so:converters/fribidi \
libpsiconv.so:converters/psiconv
USES= cpe desktop-file-utils gettext gmake gnome libtool \
localbase pathfix pkgconfig python shebangfix tar:xz
USE_GNOME= cairo intlhack gtk30 libgsf pygobject3
USE_LDCONFIG= yes
INSTALLS_ICONS= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= \
--without-paradox \
--without-python \
--enable-introspection
INSTALL_TARGET= install-strip
CPE_VENDOR= gnome
GLIB_SCHEMAS= org.gnome.gnumeric.dialogs.gschema.xml \
org.gnome.gnumeric.gschema.xml \
org.gnome.gnumeric.plugin.gschema.xml
SHEBANG_FILES= plugins/perl-func/perl_func.pl
BINARY_ALIAS= python=${PYTHON_CMD} \
install=ginstall
PLIST_SUB= VERSION=${PORTVERSION} \
GOFFICE=0.10 \
SHORT_VER=${PORTVERSION:R}
OPTIONS_SUB= yes
OPTIONS_DEFINE= PERL GDA
OPTIONS_DEFAULT=PERL
GDA_DESC= Gnome Database Access plugin
PERL_DESC= Support Perl as extension language
PERL_USES= perl5
PERL_CONFIGURE_WITH= perl
GDA_CONFIGURE_WITH= gda
GDA_USE= GNOME=libgda5-ui
post-patch:
@${REINPLACE_CMD} -e 's|^GETTEXT_PACKAGE=gnumeric-$${VERSION}|GETTEXT_PACKAGE=gnumeric|g' \
${WRKSRC}/configure
post-install:
${PYTHON_CMD} -O ${PYTHON_LIBDIR}/compileall.py -d \
${PREFIX}/${dir}/gnumeric -f ${STAGEDIR}${PREFIX}/lib/gnumeric/${PORTVERSION}
${PYTHON_CMD} ${PYTHON_LIBDIR}/compileall.py -d \
${PREFIX}/${dir}/gnumeric -f ${STAGEDIR}${PREFIX}/lib/gnumeric/${PORTVERSION}
.include <bsd.port.mk>