File tree 5 files changed +38
-7
lines changed
5 files changed +38
-7
lines changed Original file line number Diff line number Diff line change @@ -28,18 +28,38 @@ set_clangver
28
28
29
29
SKIP_LICENCES=Kitware
30
30
31
- MAKE= $NINJA
31
+ XFORM_ARGS= " -DPREFIX= ${PREFIX #/ } "
32
32
33
- CONFIGURE_OPTS[amd64]="
34
- --prefix=$PREFIX
35
- --generator=Ninja
36
- --system-curl
33
+ CONFIGURE_OPTS="
34
+ -DCMAKE_BUILD_TYPE=Release
35
+ -DCMAKE_INSTALL_PREFIX=$PREFIX
36
+ -DCMAKE_USE_SYSTEM_BZIP2=ON
37
+ -DCMAKE_USE_SYSTEM_CURL=ON
38
+ -DCMAKE_USE_SYSTEM_EXPAT=ON
39
+ -DCMAKE_USE_SYSTEM_LIBLZMA=ON
40
+ -DCMAKE_USE_SYSTEM_LIBUV=ON
41
+ -DCMAKE_USE_SYSTEM_ZLIB=ON
42
+ -DCMAKE_USE_SYSTEM_ZSTD=ON
37
43
"
44
+ CONFIGURE_OPTS[amd64]=
45
+ CONFIGURE_OPTS[aarch64]=
46
+
47
+ pre_configure () {
48
+ typeset arch=$1
49
+
50
+ ! cross_arch $arch && return
51
+
52
+ # setting CMAKE_SYSTEM_NAME will set the internal `CMAKE_CROSSCOMPILING`
53
+ # to true; this prevents it from using the cross-compiled cmake for install
54
+ CONFIGURE_OPTS[$arch ]+=" -DBUILD_CursesDialog=ON -DCMAKE_SYSTEM_NAME=SunOS"
55
+
56
+ LDFLAGS[$arch ]+=" -R$PREFIX /${LIBDIRS[$arch]} "
57
+ }
38
58
39
59
init
40
60
download_source $PROG $PROG $VER
41
61
patch_source
42
- prep_build autoconf-like
62
+ prep_build cmake+ninja
43
63
build
44
64
make_package
45
65
clean_up
Original file line number Diff line number Diff line change 8
8
# source. A copy of the CDDL is also available via the Internet at
9
9
# http://www.illumos.org/license/CDDL.
10
10
11
- # Copyright 2018 OmniOS Community Edition (OmniOSce) Association.
11
+ # Copyright 2024 OmniOS Community Edition (OmniOSce) Association.
12
12
13
13
license Copyright.txt license=Kitware
14
14
15
+ # cmake will use lib/64 instead of lib/amd64 but does not ship libraries
16
+ # itself. which will lead to a require-any dependency of packages that ship
17
+ # the 64 -> amd64 symlink.
18
+ $(i386_ONLY)link path=$(PREFIX)/lib/64 target=amd64
19
+
Original file line number Diff line number Diff line change @@ -50,6 +50,10 @@ CONFIGURE_OPTS[aarch64]+="
50
50
--with-examples
51
51
"
52
52
53
+ # Building in parallel produces occasional bad objects that then fail the
54
+ # linking stage. This needs investigation but disable parallelism for now.
55
+ NO_PARALLEL_MAKE=1
56
+
53
57
# The 'distclean' target clobbers too much including 'configure'
54
58
make_clean () {
55
59
logcmd $MAKE clean
Original file line number Diff line number Diff line change @@ -10,6 +10,7 @@ extra.omnios ooce/database/mariadb-106
10
10
extra.omnios ooce/database/mariadb-common
11
11
extra.omnios ooce/database/postgresql-14
12
12
extra.omnios ooce/database/postgresql-common
13
+ extra.omnios ooce/developer/cmake
13
14
extra.omnios ooce/developer/git-absorb
14
15
extra.omnios ooce/developer/ninja
15
16
extra.omnios ooce/editor/joe
Original file line number Diff line number Diff line change @@ -89,6 +89,7 @@ ooce/util/jq
89
89
ooce/security/minisign
90
90
ooce/application/links
91
91
ooce/database/mariadb-106
92
+ ooce/developer/cmake
92
93
###############################################################################
93
94
.SYSROOT
94
95
ooce/network/unbound
You can’t perform that action at this time.
0 commit comments