pkgsrc/misc/libreoffice4/options.mk
ryoon ae2a8efc0f Import libreoffice4-4.1.1.2nb1 as misc/libreoffice4.
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.

This package tracks 4 release branch.
2013-10-04 14:44:46 +00:00

38 lines
1.1 KiB
Makefile

# $NetBSD: options.mk,v 1.1 2013/10/04 14:44:46 ryoon Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.libreoffice4
PKG_SUPPORTED_OPTIONS= java debug
PKG_SUGGESTED_OPTIONS= java
.include "../../mk/bsd.options.mk"
PLIST_VARS+= java
.if !empty(PKG_OPTIONS:Mjava)
USE_JAVA= yes
USE_JAVA2= yes
BUILD_DEPENDS+= apache-ant-[0-9]*:../../devel/apache-ant
FIND_PREFIX:= ANTDIR=apache-ant
DEPENDS+= hsqldb18-[0-9]*:../../databases/hsqldb18
FIND_PREFIX:= HSQLDB_SYSDIR=hsqldb18
.include "../../mk/find-prefix.mk"
CONFIGURE_ARGS+= --enable-ext-wiki-publisher \
--with-java \
--with-jdk-home=${PKG_JAVA_HOME} \
--with-ant-home=${ANTDIR} \
--enable-scripting-beanshell \
--enable-scripting-javascript \
--with-system-hsqldb \
--with-hsqldb-jar=${HSQLDB_SYSDIR}/lib/java/hsqldb18/hsqldb.jar
.include "../../mk/java-env.mk"
.include "../../mk/java-vm.mk"
PLIST_SRC+= ${PLIST_SRC_DFLT:Q} PLIST.java
PLIST.java= yes
.else
CONFIGURE_ARGS+= --without-java
.endif
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= --enable-debug
CONFIGURE_ARGS+= --enable-selective-debuginfo="all"
.endif