pkgsrc/misc/libreoffice/options.mk
ryoon d543f1b6e9 Import libreoffice-5.0.0.5 as misc/libreoffice.
LibreOffice is a free, community-developed, multi-platform office
productivity suite. It includes key desktop applications:
word processor, spreadsheet, presentation manager, and drawing program,
with a user interface and feature set similar to other office suites.
2015-08-12 00:57:20 +00:00

69 lines
1.8 KiB
Makefile

# $NetBSD: options.mk,v 1.1 2015/08/12 00:57:20 ryoon Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.libreoffice
PKG_SUPPORTED_OPTIONS= java debug kde4 gtk3
.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD" || ${OPSYS} == "SunOS"
PKG_SUGGESTED_OPTIONS= java
.endif
.include "../../mk/bsd.options.mk"
PLIST_VARS+= java kde4 gtk3
.if !empty(PKG_OPTIONS:Mjava)
.include "../../mk/java-env.mk"
.include "../../mk/java-vm.mk"
USE_JAVA= yes
USE_JAVA2= yes
BUILD_DEPENDS+= apache-ant-[0-9]*:../../devel/apache-ant
FIND_PREFIX:= ANTDIR=apache-ant
CONFIGURE_ARGS+= --with-ant-home=${ANTDIR}
DEPENDS+= hsqldb18-[0-9]*:../../databases/hsqldb18
FIND_PREFIX+= HSQLDB_SYSDIR=hsqldb18
CONFIGURE_ARGS+= --with-hsqldb-jar=${HSQLDB_SYSDIR}/lib/java/hsqldb18/hsqldb.jar
.include "../../mk/find-prefix.mk"
CONFIGURE_ARGS+= --enable-ext-wiki-publisher \
--with-java \
--with-jdk-home=${PKG_JAVA_HOME} \
--without-system-beanshell \
--enable-scripting-beanshell \
--with-system-hsqldb \
--without-system-jfreereport
PLIST_SRC+= ${PLIST_SRC_DFLT:Q} ${PKGDIR}/PLIST.java
. if !empty(PKG_JVM:Mopenjdk7)
CONFIGURE_ARGS+= --disable-scripting-javascript
. else
PLIST_SRC+= ${PKGDIR}/PLIST.javascript
. endif
PLIST.java= yes
.else
CONFIGURE_ARGS+= --without-java
.endif
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= --enable-debug
CONFIGURE_ARGS+= --enable-selective-debuginfo="all"
PLIST_SRC= ${PLIST_SRC_DFLT:Q} ${PKGDIR}/PLIST.debug
.else
CONFIGURE_ARGS+= --enable-release-build
.endif
.if !empty(PKG_OPTIONS:Mgtk3)
CONFIGURE_ARGS+= --enable-gtk3
PLIST.gtk3= yes
.include "../../x11/gtk3/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-gtk3
.endif
.if !empty(PKG_OPTIONS:Mkde4)
CONFIGURE_ARGS+= --enable-kde4
CONFIGURE_ENV+= KDE4DIR="${LOCALBASE}"
PLIST.kde4= yes
.include "../../x11/kdelibs4/buildlink3.mk"
.else
CONFIGURE_ARGS+= --disable-kde4
.endif