blob: 99ea398a39fee80f0e7a5de26b9f5cbc12e9cbd5 (
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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
# $NetBSD: options.mk,v 1.5 2014/05/29 23:03:55 wiz Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.libreoffice4
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)
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"
.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
|