blob: c8e8a8ca00c33fdb6222965b8d28297359fa25e8 (
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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# $NetBSD: options.mk,v 1.19 2022/02/05 04:53:43 ryoon Exp $
PKG_OPTIONS_VAR= PKG_OPTIONS.libreoffice
PKG_SUPPORTED_OPTIONS= java debug gtk3 cups ldap dbus
PKG_SUGGESTED_OPTIONS= cups ldap dbus gtk3
.include "../../mk/bsd.prefs.mk"
# "checking the installed JDK... configure: error: JDK is too old, you need at least 9"
#
# Only enable Java on platforms where OpenJDK>=9 is the default,
# see mk/java-vm.mk
.if !empty(MACHINE_PLATFORM:MNetBSD-[789].*-i386) || \
!empty(MACHINE_PLATFORM:MNetBSD-[789].*-x86_64)
PKG_SUGGESTED_OPTIONS+= java
.endif
.include "../../mk/bsd.options.mk"
PLIST_VARS+= ldap
.if !empty(PKG_OPTIONS:Mjava)
USE_JAVA= yes
USE_JAVA2= 9
.include "../../mk/java-env.mk"
.include "../../mk/java-vm.mk"
BUILD_DEPENDS+= apache-ant-[0-9]*:../../devel/apache-ant
CONFIGURE_ARGS+= --with-ant-home=${PREFIX}
DEPENDS+= hsqldb18-[0-9]*:../../databases/hsqldb18
CONFIGURE_ARGS+= --with-hsqldb-jar=${PREFIX}/lib/java/hsqldb18/hsqldb.jar
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
CONFIGURE_ARGS+= --with-export-validation
PLIST_SRC= ${PLIST_SRC_DFLT:Q} ${PKGDIR}/PLIST.java
.else
CONFIGURE_ARGS+= --without-java
.endif
.if !empty(PKG_OPTIONS:Mdebug)
CONFIGURE_ARGS+= --enable-debug
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
.else
CONFIGURE_ARGS+= --disable-gtk3
.endif
.if !empty(PKG_OPTIONS:Mcups)
.include "../../print/libcups/buildlink3.mk"
CONFIGURE_ARGS+= --enable-cups
.else
CONFIGURE_ARGS+= --disable-cups
.endif
.if !empty(PKG_OPTIONS:Mdbus)
.include "../../sysutils/dbus/buildlink3.mk"
.include "../../sysutils/dbus-glib/buildlink3.mk"
CONFIGURE_ARGS+= --enable-dbus
.else
CONFIGURE_ARGS+= --disable-dbus
.endif
.if !empty(PKG_OPTIONS:Mldap)
.include "../../databases/openldap-client/buildlink3.mk"
CONFIGURE_ARGS+= --enable-ldap
PLIST.ldap= yes
.else
CONFIGURE_ARGS+= --disable-ldap
.endif
|