blob: 59c729b41e2654890b7a4311d601f2847f9fad41 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
# $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
|