libreoffice: update to 24.2.1.2
[oi-userland.git] / components / desktop / libreoffice / Makefile
blobf99ac8575ad8e5f8ee9223ce836a40c7e3190df9
2 # This file and its contents are supplied under the terms of the
3 # Common Development and Distribution License ("CDDL"). You may
4 # only use this file in accordance with the terms of the CDDL.
6 # A full copy of the text of the CDDL should have accompanied this
7 # source. A copy of the CDDL is also available via the Internet at
8 # http://www.illumos.org/license/CDDL.
12 # Copyright 2020 Alexander Pyhalov
13 # Copyright 2022 Daniel Bell
16 OPENSSL_VERSION= 3.1
17 USE_PARALLEL_BUILD = yes
18 include ../../../make-rules/shared-macros.mk
19 BITS=64
20 ENV = /usr/bin/env
22 # BUILD_BETA is the beta version; define with build number for beta release
23 # BUILD_BETA=1
25 # BUILD_ALPHA is the alpha version; define with build number for beta release
26 # BUILD_ALPHA=1
28 # BUILD_FIX is the build fix number, i.e. libreoffice-7.6.0.2-buildfix1
29 # Define only if needed.
30 # BUILD_FIX=1
32 # BUILD_GITHUB is defined only if the source is from github instead of the
33 # documentfoundation website
34 # BUILD_GITHUB=1
36 COMPONENT_NAME= libreoffice
37 COMPONENT_VERSION= 24.2.1
38 COMPONENT_RC_VERSION= 2
39 # Since IPS only has version x.y.z, then COMPONENT_REVISION needs to be increased when just the RC_VERSION increases
40 COMPONENT_REVISION= 1
41 ifdef BUILD_ALPHA
42 COMPONENT_FULL_VERSION=$(COMPONENT_VERSION).$(COMPONENT_RC_VERSION).alpha$(BUILD_ALPHA)
43 else ifdef BUILD_BETA
44 COMPONENT_FULL_VERSION=$(COMPONENT_VERSION).$(COMPONENT_RC_VERSION).beta$(BUILD_BETA)
45 else
46 COMPONENT_FULL_VERSION=$(COMPONENT_VERSION).$(COMPONENT_RC_VERSION)
47 endif
48 ifdef BUILD_FIX
49 COMPONENT_FULL_VERSION=$(COMPONENT_FULL_VERSION)-buildfix$(BUILD_FIX)
50 endif
51 # repology wants to use HUMAN_VERSION
52 HUMAN_VERSION= $(COMPONENT_FULL_VERSION)
53 COMPONENT_SUMMARY= LibreOffice is a powerful office suite
54 COMPONENT_PROJECT_URL= https://www.libreoffice.org/
55 ifdef BUILD_GITHUB
56 COMPONENT_SHA= db4def46b0453cc22e2d0305797cf981b68ef5ac
57 COMPONENT_SRC= core-$(COMPONENT_SHA)
58 COMPONENT_ARCHIVE= $(COMPONENT_SHA).zip
59 COMPONENT_ARCHIVE_URL= https://github.com/LibreOffice/core/archive/$(COMPONENT_ARCHIVE)
60 COMPONENT_ARCHIVE_HASH= sha256:43ec07dce69512b5464eb37a1b13ffde363c08846df1a851d258bd46529cb02f
61 else
62 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_FULL_VERSION)
63 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
64 COMPONENT_ARCHIVE_URL= https://download.documentfoundation.org/libreoffice/src/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
65 COMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).asc
66 endif
67 COMPONENT_FMRI= desktop/office/libreoffice
68 COMPONENT_CLASSIFICATION= Applications/Office
69 COMPONENT_LICENSE= MPL2.0
70 COMPONENT_LICENSE_FILE= $(COMPONENT_NAME).license
72 COMPONENT_ARCHIVE_1 = 0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz
73 COMPONENT_ARCHIVE_HASH_1 = sha256:983941d31ee8d366085cadf28db75eb1f5cb03ba1e5853b98f12f7f51c63b776
74 COMPONENT_ARCHIVE_URL_1 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_1)
76 COMPONENT_ARCHIVE_2 = 1f5def51ca0026cd192958ef07228b52-rasqal-0.9.33.tar.gz
77 COMPONENT_ARCHIVE_HASH_2 = sha256:6924c9ac6570bd241a9669f83b467c728a322470bf34f4b2da4f69492ccfd97c
78 COMPONENT_ARCHIVE_URL_2 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_2)
80 COMPONENT_ARCHIVE_3 = 26b3e95ddf3d9c077c480ea45874b3b8-lp_solve_5.5.tar.gz
81 COMPONENT_ARCHIVE_HASH_3 = sha256:171816288f14215c69e730f7a4f1c325739873e21f946ff83884b350574e6695
82 COMPONENT_ARCHIVE_URL_3 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_3)
84 COMPONENT_ARCHIVE_4 = 48d647fbd8ef8889e5a7f422c1bfda94-clucene-core-2.3.3.4.tar.gz
85 COMPONENT_ARCHIVE_HASH_4 = sha256:ddfdc433dd8ad31b5c5819cc4404a8d2127472a3b720d3e744e8c51d79732eab
86 COMPONENT_ARCHIVE_URL_4 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_4)
88 COMPONENT_ARCHIVE_5 = 5ade6ae2a99bc1e9e57031ca88d36dad-hyphen-2.8.8.tar.gz
89 COMPONENT_ARCHIVE_HASH_5 = sha256:304636d4eccd81a14b6914d07b84c79ebb815288c76fe027b9ebff6ff24d5705
90 COMPONENT_ARCHIVE_URL_5 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_5)
92 COMPONENT_ARCHIVE_6 = f543e6e2d7275557a839a164941c0a86e5f2c3f2a0042bfc434c88c6dde9e140-opens___.ttf
93 COMPONENT_ARCHIVE_HASH_6 = sha256:f543e6e2d7275557a839a164941c0a86e5f2c3f2a0042bfc434c88c6dde9e140
94 COMPONENT_ARCHIVE_URL_6 = https://dev-www.libreoffice.org/extern/$(COMPONENT_ARCHIVE_6)
96 COMPONENT_ARCHIVE_7 = mariadb-connector-c-3.1.8-src.tar.gz
97 COMPONENT_ARCHIVE_HASH_7 = sha256:431434d3926f4bcce2e5c97240609983f60d7ff50df5a72083934759bb863f7b
98 COMPONENT_ARCHIVE_URL_7 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_7)
100 COMPONENT_ARCHIVE_8 = a39f6c07ddb20d7dd2ff1f95fa21e2cd-raptor2-2.0.15.tar.gz
101 COMPONENT_ARCHIVE_HASH_8 = sha256:ada7f0ba54787b33485d090d3d2680533520cd4426d2f7fb4782dd4a6a1480ed
102 COMPONENT_ARCHIVE_URL_8 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_8)
104 COMPONENT_ARCHIVE_9 = mythes-1.2.5.tar.xz
105 COMPONENT_ARCHIVE_HASH_9 = sha256:19279f70707bbe5ffa619f2dc319f888cec0c4a8d339dc0a21330517bd6f521d
106 COMPONENT_ARCHIVE_URL_9 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_9)
108 COMPONENT_ARCHIVE_10 = glm-0.9.9.8.zip
109 COMPONENT_ARCHIVE_HASH_10 = sha256:6bba5f032bed47c73ad9397f2313b9acbfb56253d0d0576b5873d3dcb25e99ad
110 COMPONENT_ARCHIVE_URL_10 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_10)
112 COMPONENT_ARCHIVE_11 = CoinMP-1.8.4.tgz
113 COMPONENT_ARCHIVE_HASH_11 = sha256:3459fb0ccbdd39342744684338984ac4cc153fb0434f4cae8cf74bd67490a38d
114 COMPONENT_ARCHIVE_URL_11 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_11)
116 COMPONENT_ARCHIVE_12 = e5be03eda13ef68aabab6e42aa67715e-redland-1.0.17.tar.gz
117 COMPONENT_ARCHIVE_HASH_12 = sha256:de1847f7b59021c16bdc72abb4d8e2d9187cd6124d69156f3326dd34ee043681
118 COMPONENT_ARCHIVE_URL_12 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_12)
120 COMPONENT_ARCHIVE_13 = language-subtag-registry-2023-05-11.tar.bz2
121 COMPONENT_ARCHIVE_HASH_13 = sha256:9042b64cd473bf36073513b474046f13778107b57c2ac47fb2633104120d69da
122 COMPONENT_ARCHIVE_URL_13 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_13)
124 COMPONENT_ARCHIVE_14 = libexttextcat-3.4.6.tar.xz
125 COMPONENT_ARCHIVE_HASH_14 = sha256:6d77eace20e9ea106c1330e268ede70c9a4a89744ddc25715682754eca3368df
126 COMPONENT_ARCHIVE_URL_14 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_14)
128 COMPONENT_ARCHIVE_15 = libnumbertext-1.0.11.tar.xz
129 COMPONENT_ARCHIVE_HASH_15 = sha256:5dcb4db3b2340f81f601ce86d8d76b69e34d70f84f804192c901e4b7f84d5fb0
130 COMPONENT_ARCHIVE_URL_15 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_15)
132 COMPONENT_ARCHIVE_16 = liborcus-0.19.2.tar.xz
133 COMPONENT_ARCHIVE_HASH_16 = sha256:69ed26a00d4aaa7688e62a6e003cbc81928521a45e96605e53365aa499719e39
134 COMPONENT_ARCHIVE_URL_16 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_16)
136 COMPONENT_ARCHIVE_17 = QR-Code-generator-1.4.0.tar.gz
137 COMPONENT_ARCHIVE_HASH_17 = sha256:fcdf9fd69fde07ae4dca2351d84271a9de8093002f733b77c70f52f1630f6e4a
138 COMPONENT_ARCHIVE_URL_17 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_17)
140 COMPONENT_ARCHIVE_18 = xmlsec1-1.3.2.tar.gz
141 COMPONENT_ARCHIVE_HASH_18 = sha256:4003c56b3d356d21b1db7775318540fad6bfedaf5f117e8f7c010811219be3cf
142 COMPONENT_ARCHIVE_URL_18 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_18)
144 #libreoffice-translations
145 ifdef BUILD_GITHUB
146 COMPONENT_ARCHIVE_19_GIT_HASH = 277285f93a1d9f24362b0f96d05cd310cacdf1b1
147 COMPONENT_ARCHIVE_19 = $(COMPONENT_ARCHIVE_19_GIT_HASH).tar.gz
148 COMPONENT_ARCHIVE_HASH_19 = sha256:e6ea8655c61ffabe135444e97c1fe5ac7fe7626ae7c51c8db29585125c2aef5e
149 COMPONENT_ARCHIVE_URL_19 = https://github.com/LibreOffice/translations/archive/$(COMPONENT_ARCHIVE_19)
150 else
151 COMPONENT_ARCHIVE_19 = libreoffice-translations-$(COMPONENT_FULL_VERSION).tar.xz
152 COMPONENT_ARCHIVE_URL_19 = https://download.documentfoundation.org/libreoffice/src/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE_19)
153 COMPONENT_SIG_URL_19= $(COMPONENT_ARCHIVE_URL_19).asc
154 endif
156 # libreoffice-dictionaries
157 ifdef BUILD_GITHUB
158 COMPONENT_ARCHIVE_20_GIT_HASH = 0baeab5a9e584d1b699bef69e49a9074137be365
159 COMPONENT_ARCHIVE_20 = $(COMPONENT_ARCHIVE_20_GIT_HASH).tar.gz
160 COMPONENT_ARCHIVE_HASH_20 = sha256:9dba847658dc2934c8d2962233110fa0e330319d43bf8952b2c6896e8da0e1be
161 COMPONENT_ARCHIVE_URL_20 = https://github.com/LibreOffice/dictionaries/archive/$(COMPONENT_ARCHIVE_20)
162 else
163 COMPONENT_ARCHIVE_20 = libreoffice-dictionaries-$(COMPONENT_FULL_VERSION).tar.xz
164 COMPONENT_ARCHIVE_URL_20 = https://download.documentfoundation.org/libreoffice/src/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE_20)
165 COMPONENT_SIG_URL_20= $(COMPONENT_ARCHIVE_URL_20).asc
166 endif
168 #COMPONENT_ARCHIVE_21 = boost_1_69_0.tar.bz2
169 #COMPONENT_ARCHIVE_HASH_21 = sha256:8f32d4617390d1c2d16f26a27ab60d97807b35440d45891fa340fc2648b04406
170 #COMPONENT_ARCHIVE_URL_21 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_21)
172 COMPONENT_ARCHIVE_22 = neon-0.31.2.tar.gz
173 COMPONENT_ARCHIVE_HASH_22 = sha256:cf1ee3ac27a215814a9c80803fcee4f0ede8466ebead40267a9bd115e16a8678
174 COMPONENT_ARCHIVE_URL_22 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_22)
176 COMPONENT_ARCHIVE_23 = zxing-cpp-2.1.0.tar.gz
177 COMPONENT_ARCHIVE_HASH_23 = sha256:6d54e403592ec7a143791c6526c1baafddf4c0897bb49b1af72b70a0f0c4a3fe
178 COMPONENT_ARCHIVE_URL_23 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_23)
180 COMPONENT_ARCHIVE_24 = box2d-2.4.1.tar.gz
181 COMPONENT_ARCHIVE_HASH_24 = sha256:d6b4650ff897ee1ead27cf77a5933ea197cbeef6705638dd181adc2e816b23c2
182 COMPONENT_ARCHIVE_URL_24 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_24)
185 COMPONENT_ARCHIVE_25 = dtoa-20180411.tgz
186 COMPONENT_ARCHIVE_HASH_25 = sha256:0082d0684f7db6f62361b76c4b7faba19e0c7ce5cb8e36c4b65fea8281e711b4
187 COMPONENT_ARCHIVE_URL_25 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_25)
189 COMPONENT_ARCHIVE_26 = skia-m116-2ddcf183eb260f63698aa74d1bb380f247ad7ccd.tar.xz
190 COMPONENT_ARCHIVE_HASH_26 = sha256:2223ebce534458a37826e8fe4f24635b0712cde7ed1bd3208f089f6fdd796e01
191 COMPONENT_ARCHIVE_URL_26 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_26)
193 COMPONENT_ARCHIVE_27 = libcmis-0.6.1.tar.xz
194 COMPONENT_ARCHIVE_HASH_27 = sha256:d54d19d86153dbc88e2d468f7136269a2cfe71b73227e12fded01d29ac268074
195 COMPONENT_ARCHIVE_URL_27 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_27)
197 COMPONENT_ARCHIVE_28 = gpgme-1.20.0.tar.bz2
198 COMPONENT_ARCHIVE_HASH_28 = sha256:25a5785a5da356689001440926b94e967d02e13c49eb7743e35ef0cf22e42750
199 COMPONENT_ARCHIVE_URL_28 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_28)
201 COMPONENT_ARCHIVE_29 = libassuan-2.5.6.tar.bz2
202 COMPONENT_ARCHIVE_HASH_29 = sha256:e9fd27218d5394904e4e39788f9b1742711c3e6b41689a31aa3380bd5aa4f426
203 COMPONENT_ARCHIVE_URL_29 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_29)
205 COMPONENT_ARCHIVE_30 = libgpg-error-1.47.tar.bz2
206 COMPONENT_ARCHIVE_HASH_30 = sha256:9e3c670966b96ecc746c28c2c419541e3bcb787d1a73930f5e5f5e1bcbbb9bdb
207 COMPONENT_ARCHIVE_URL_30 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_30)
209 COMPONENT_ARCHIVE_31 = frozen-1.1.1.tar.gz
210 COMPONENT_ARCHIVE_HASH_31 = sha256:f7c7075750e8fceeac081e9ef01944f221b36d9725beac8681cbd2838d26be45
211 COMPONENT_ARCHIVE_URL_31 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_31)
213 COMPONENT_ARCHIVE_32 = dragonbox-1.1.3.tar.gz
214 COMPONENT_ARCHIVE_HASH_32 = sha256:09d63b05e9c594ec423778ab59b7a5aa1d76fdd71d25c7048b0258c4ec9c3384
215 COMPONENT_ARCHIVE_URL_32 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_32)
217 COMPONENT_ARCHIVE_33 = mdds-2.1.1.tar.xz
218 COMPONENT_ARCHIVE_HASH_33 = sha256:1483d90cefb8aa4563c4d0a85cb7b243aa95217d235d422e9ca6722fd5b97e56
219 COMPONENT_ARCHIVE_URL_33 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_33)
221 COMPONENT_ARCHIVE_34 = zxcvbn-c-2.5.tar.gz
222 COMPONENT_ARCHIVE_HASH_34 = sha256:77d6c6ecb35952a8d8ce7f736b7a2bf466275c48210e309b73782d6b7e84dffd
223 COMPONENT_ARCHIVE_URL_34 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_34)
225 COMPONENT_ARCHIVE_35 = beeca87be45ec87d241ddd0e1bad80c1-bsh-2.0b6-src.zip
226 COMPONENT_ARCHIVE_HASH_35 = sha256:9e93c73e23aff644b17dfff656444474c14150e7f3b38b19635e622235e01c96
227 COMPONENT_ARCHIVE_URL_35 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_35)
229 COMPONENT_ARCHIVE_36 = 17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip
230 COMPONENT_ARCHIVE_HASH_36 = sha256:d30b13f4ba2e3b6a2d4f020c0dee0a9fb9fc6fbcc2d561f36b78da4bf3802370
231 COMPONENT_ARCHIVE_URL_36 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_36)
233 COMPONENT_ARCHIVE_37 = Java-WebSocket-1.5.4.tar.gz
234 COMPONENT_ARCHIVE_HASH_37 = sha256:a6828b35d1f938fee2335945f3d3c563cbbfa58ce7eb0bf72778d0fa7a550720
235 COMPONENT_ARCHIVE_URL_37 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_37)
237 COMPONENT_ARCHIVE_38 = ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip
238 COMPONENT_ARCHIVE_HASH_38 = sha256:233f66e8d25c5dd971716d4200203a612a407649686ef3b52075d04b4c9df0dd
239 COMPONENT_ARCHIVE_URL_38 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_38)
241 COMPONENT_ARCHIVE_39 = d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip
242 COMPONENT_ARCHIVE_HASH_39 = sha256:1b5b24f7bc543c0362b667692f78db8bab4ed6dafc6172f104d0bd3757d8a133
243 COMPONENT_ARCHIVE_URL_39 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_39)
245 COMPONENT_ARCHIVE_40 = eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip
246 COMPONENT_ARCHIVE_HASH_40 = sha256:75c80359c9ce343c20aab8a36a45cb3b9ee7c61cf92c13ae45399d854423a9ba
247 COMPONENT_ARCHIVE_URL_40 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_40)
249 COMPONENT_ARCHIVE_41 = 3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip
250 COMPONENT_ARCHIVE_HASH_41 = sha256:e0531091787c0f16c83965fdcbc49162c059d7f0c64669e7f119699321549743
251 COMPONENT_ARCHIVE_URL_41 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_41)
253 COMPONENT_ARCHIVE_42 = 3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip
254 COMPONENT_ARCHIVE_HASH_42 = sha256:5826d1551bf599b85742545f6e01a0079b93c1b2c8434bf409eddb3a29e4726b
255 COMPONENT_ARCHIVE_URL_42 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_42)
257 COMPONENT_ARCHIVE_43 = db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip
258 COMPONENT_ARCHIVE_HASH_43 = sha256:e1fb87f3f7b980d33414473279615c4644027e013012d156efa538bc2b031772
259 COMPONENT_ARCHIVE_URL_43 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_43)
261 COMPONENT_ARCHIVE_44 = 97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip
262 COMPONENT_ARCHIVE_HASH_44 = sha256:3d853b19b1d94a6efa69e7af90f7f2b09ecf302913bee3da796c15ecfebcfac8
263 COMPONENT_ARCHIVE_URL_44 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_44)
265 COMPONENT_ARCHIVE_45 = 8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip
266 COMPONENT_ARCHIVE_HASH_45 = sha256:abe2c57ac12ba45d83563b02e240fa95d973376de2f720aab8fe11f2e621c095
267 COMPONENT_ARCHIVE_URL_45 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_45)
269 COMPONENT_ARCHIVE_46 = f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip
270 COMPONENT_ARCHIVE_HASH_46 = sha256:05640a1f6805b2b2d7e2cb9c50db9a5cb084e3c52ab1a71ce015239b4a1d4343
271 COMPONENT_ARCHIVE_URL_46 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_46)
273 COMPONENT_ARCHIVE_47 = ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip
274 COMPONENT_ARCHIVE_HASH_47 = sha256:7d2797fe9f79a77009721e3f14fa4a1dec17a6d706bdc93f85f1f01d124fab66
275 COMPONENT_ARCHIVE_URL_47 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_47)
277 COMPONENT_ARCHIVE_48 = 39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip
278 COMPONENT_ARCHIVE_HASH_48 = sha256:085f2112c51fa8c1783fac12fbd452650596415121348393bb51f0f7e85a9045
279 COMPONENT_ARCHIVE_URL_48 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_48)
281 COMPONENT_ARCHIVE_49 = 798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip
282 COMPONENT_ARCHIVE_HASH_49 = sha256:1fb458d6aab06932693cc8a9b6e4e70944ee1ff052fa63606e3131df34e21753
283 COMPONENT_ARCHIVE_URL_49 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_49)
285 COMPONENT_ARCHIVE_50 = 35c94d2df8893241173de1d16b6034c0-swingExSrc.zip
286 COMPONENT_ARCHIVE_HASH_50 = sha256:64585ac36a81291a58269ec5347e7e3e2e8596dbacb9221015c208191333c6e1
287 COMPONENT_ARCHIVE_URL_50 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_50)
289 COMPONENT_ARCHIVE_51 = a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip
290 COMPONENT_ARCHIVE_HASH_51 = sha256:75823776fb51a9c526af904f1503a7afaaab900fba83eda64f8a41073724c870
291 COMPONENT_ARCHIVE_URL_51 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_51)
293 COMPONENT_ARCHIVE_52 = odfvalidator-0.9.0-RC2-SNAPSHOT-jar-with-dependencies-2726ab578664434a545f8379a01a9faffac0ae73.jar
294 COMPONENT_ARCHIVE_HASH_52 = sha256:d55495ab3a86544650587de2a72180ddf8bfc6376d14ddfa923992dbc86a06e0
295 COMPONENT_ARCHIVE_URL_52 = https://dev-www.libreoffice.org/extern/$(COMPONENT_ARCHIVE_52)
297 # libreoffice-help
298 ifdef BUILD_GITHUB
299 COMPONENT_ARCHIVE_53_GIT_HASH = 7a81813c09246d73a7cb182a7af0a0e0e2d99382
300 COMPONENT_ARCHIVE_53 = $(COMPONENT_ARCHIVE_53_GIT_HASH).tar.gz
301 COMPONENT_ARCHIVE_HASH_53 = sha256:419bcb2ff2b3d6ecda2f699a38ddeae67455ae95ecf916164d567da41a0c5909
302 COMPONENT_ARCHIVE_URL_53 = https://github.com/LibreOffice/help/archive/$(COMPONENT_ARCHIVE_53)
303 else
304 COMPONENT_ARCHIVE_53 = libreoffice-help-$(COMPONENT_FULL_VERSION).tar.xz
305 COMPONENT_ARCHIVE_URL_53 = https://download.documentfoundation.org/libreoffice/src/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE_53)
306 COMPONENT_SIG_URL_53= $(COMPONENT_ARCHIVE_URL_53).asc
307 endif
309 COMPONENT_ARCHIVE_54 = 8249374c274932a21846fa7629c2aa9b-officeotron-0.7.4-master.jar
310 COMPONENT_ARCHIVE_HASH_54 = sha256:f2443f27561af52324eee03a1892d9f569adc8db9e7bca55614898bc2a13a770
311 COMPONENT_ARCHIVE_URL_54 = https://dev-www.libreoffice.org/extern/$(COMPONENT_ARCHIVE_54)
313 COMPONENT_ARCHIVE_55 = phc-winner-argon2-20190702.tar.gz
314 COMPONENT_ARCHIVE_HASH_55 = sha256:4d1dac6ef66528b7a2bc910ff45c1015a1b83cb928515ca18a78dc76e688627b
315 COMPONENT_ARCHIVE_URL_55 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_55)
317 # ignore archive 21 (boost)
318 NUM_EXTRA_ARCHIVES = $(shell seq 1 20) $(shell 22 54)
320 # github source archive files are a different compression than what is found on
321 # the documentfoundation site
322 ifdef BUILD_GITHUB
323 ADDITIONAL_PATCHES += patches/dictionaries-translations-help-already-downloaded-as-tar-gz.patch.github
324 endif
326 include $(WS_MAKE_RULES)/common.mk
328 PATH= $(GCC_BINDIR):$(PATH.gnu)
330 #Ensure asm is built in 64-bit.
331 AFLAGS= -m64
333 #CFLAGS / CXXFLAGS not passed to all external libraries! Add -m64 to ensure 64-bit is built.
334 CC+= -m64
335 CXX+= -m64
337 COMPONENT_BUILD_ENV= CONFIG_SHELL="$(CONFIG_SHELL)"
338 COMPONENT_BUILD_ENV+= SHELL="$(CONFIG_SHELL)"
339 COMPONENT_BUILD_ENV+= AFLAGS="$(AFLAGS)"
340 COMPONENT_BUILD_ENV+= LD_LIBRARY_PATH="$(GCC_LIBDIR)"
342 COMPONENT_TEST_ENV= LD_LIBRARY_PATH='$(GCC_LIBDIR):$(BUILD_DIR_64)/instdir/program/' GMAKE_OPTIONS=-rsk
344 CONFIGURE_ENV = $(COMPONENT_BUILD_ENV)
345 CONFIGURE_ENV += PYTHON=$(PYTHON)
346 CONFIGURE_ENV += GPG=/usr/bin/gpg2
347 CONFIGURE_ENV += GPGCONF=/usr/bin/gpgconf
349 CONFIGURE_ENV += MARIADBCONFIG=$(MYSQL_CONFIG)
350 MARIADB_LIBDIR= $(MYSQL_LIBDIR)
352 CONFIGURE_LIBDIR= $(CONFIGURE_LIBDIR.64)
354 CONFIGURE_SCRIPT= $(SOURCE_DIR)/autogen.sh
356 COMPONENT_PREP_ACTION = ( mkdir -p $(@D)/external/tarballs && \
357 for i in $(ARCHIVES) ; do \
358 rm -f $(@D)/external/tarballs/$$i && \
359 ln -s $(USERLAND_ARCHIVES)/$$i $(@D)/external/tarballs/$$i ; \
360 done
362 # Add missing files that exist in the documentfoundation source archives that
363 # are not included in the github source--this allows the build steps to be the
364 # same using source from either location
365 # Note: need this adds the closing parenthesis for COMPONENT_PREP_ACTION
366 ifdef BUILD_GITHUB
367 COMPONENT_PREP_ACTION += && \
368 ln -s $(USERLAND_ARCHIVES)/$(COMPONENT_ARCHIVE_20) $(@D)/external/tarballs/libreoffice-dictionaries-$(COMPONENT_VERSION).$(COMPONENT_RC_VERSION).tar.gz && \
369 ln -s $(USERLAND_ARCHIVES)/$(COMPONENT_ARCHIVE_19) $(@D)/external/tarballs/libreoffice-translations-$(COMPONENT_VERSION).$(COMPONENT_RC_VERSION).tar.gz && \
370 ln -s $(USERLAND_ARCHIVES)/$(COMPONENT_ARCHIVE_53) $(@D)/external/tarballs/libreoffice-help-$(COMPONENT_VERSION).$(COMPONENT_RC_VERSION).tar.gz && \
371 touch $(SOURCE_DIR)/dictionaries/Repository.mk && \
372 touch $(SOURCE_DIR)/translations/Repository.mk && \
373 touch $(SOURCE_DIR)/helpcontent2/Repository.mk && \
374 touch $(SOURCE_DIR)/dictionaries/sources.ver && \
375 touch $(SOURCE_DIR)/translations/sources.ver && \
376 touch $(SOURCE_DIR)/helpcontent2/sources.ver && \
377 ln -s $(SOURCE_DIR)/helpcontent2 $(SOURCE_DIR)/help && \
378 echo "lo_sources_ver=$(COMPONENT_VERSION).$(COMPONENT_RC_VERSION)" > $(SOURCE_DIR)/sources.ver )
379 else
380 COMPONENT_PREP_ACTION += )
381 endif
383 LDFLAGS += $(JPEG_LDFLAGS) -lX11-xcb -lX11
385 CFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CFLAGS) -lssp_nonshared
386 #CONFIGURE_OPTIONS += --enable-debug
387 #CONFIGURE_OPTIONS += --enable-optimized=no
388 CXXFLAGS = $(CFLAGS)
390 # 64-bit
391 CONFIGURE_OPTIONS += --build=amd64-pc-solaris2.11
393 ifdef DEBUG
394 CONFIGURE_OPTIONS += --enable-debug
395 else
396 CONFIGURE_OPTIONS += --enable-release-build
397 endif
399 CONFIGURE_OPTIONS += --with-myspell-dicts
400 CONFIGURE_OPTIONS += --with-help=common
401 CONFIGURE_OPTIONS += --enable-gstreamer-1-0
402 CONFIGURE_OPTIONS += --enable-gtk3
403 # gtk4 works, but not added to openindiana yet
404 # CONFIGURE_OPTIONS += --enable-gtk4
405 CONFIGURE_OPTIONS += --enable-qt5
406 CONFIGURE_OPTIONS += --enable-qt6
407 CONFIGURE_OPTIONS += --disable-odk
408 CONFIGURE_OPTIONS += --with-system-cairo
409 CONFIGURE_OPTIONS += --with-system-expat
410 CONFIGURE_OPTIONS += --with-system-libxml
411 CONFIGURE_OPTIONS += --with-system-icu
412 CONFIGURE_OPTIONS += --with-system-poppler
413 CONFIGURE_OPTIONS += --with-system-curl
414 CONFIGURE_OPTIONS += --with-system-boost
415 CONFIGURE_OPTIONS += --with-system-nss
416 # library/libneon < 0.31.2
417 # CONFIGURE_OPTIONS += --with-system-neon
418 CONFIGURE_OPTIONS += --with-system-openssl
419 CONFIGURE_OPTIONS += --with-system-libpng
420 CONFIGURE_OPTIONS += --with-system-jpeg
421 CONFIGURE_OPTIONS += --with-system-harfbuzz
423 CONFIGURE_OPTIONS += --with-system-graphite
424 CONFIGURE_OPTIONS += --with-system-cppunit
426 CONFIGURE_OPTIONS += --with-system-lcms2
427 CONFIGURE_OPTIONS += --with-system-dicts
428 CONFIGURE_OPTIONS += --with-system-epoxy
429 CONFIGURE_OPTIONS += --with-system-hunspell
430 # We have mdds-2.0.3 now which is not compatible with this libreoffice version:
431 #CONFIGURE_OPTIONS += --with-system-mdds
432 CONFIGURE_OPTIONS += --with-system-libabw
433 CONFIGURE_OPTIONS += --with-system-libcdr
434 # libreoffice uses functionality not packaged in latest libcmis (0.5.2)
435 #CONFIGURE_OPTIONS += --with-system-libcmis
436 CONFIGURE_OPTIONS += --with-system-libetonyek
437 CONFIGURE_OPTIONS += --with-system-libebook
438 CONFIGURE_OPTIONS += --with-system-libepubgen
439 CONFIGURE_OPTIONS += --with-system-libfreehand
440 CONFIGURE_OPTIONS += --with-system-liblangtag
441 CONFIGURE_OPTIONS += --with-system-libmspub
442 CONFIGURE_OPTIONS += --with-system-libmwaw
443 CONFIGURE_OPTIONS += --with-system-libodfgen
444 CONFIGURE_OPTIONS += --with-system-libpagemaker
445 CONFIGURE_OPTIONS += --with-system-libqxp
446 CONFIGURE_OPTIONS += --with-system-librevenge
447 CONFIGURE_OPTIONS += --with-system-libstaroffice
448 CONFIGURE_OPTIONS += --with-system-libtiff
449 CONFIGURE_OPTIONS += --with-system-libvisio
450 CONFIGURE_OPTIONS += --with-system-libwebp
451 CONFIGURE_OPTIONS += --with-system-libwpd
452 CONFIGURE_OPTIONS += --with-system-libwpg
453 CONFIGURE_OPTIONS += --with-system-libwps
454 CONFIGURE_OPTIONS += --with-system-libzmf
456 # Use packaged mariadb client with solaris patches
457 CONFIGURE_OPTIONS += --with-system-mariadb
458 CONFIGURE_OPTIONS += --enable-gio
459 CONFIGURE_OPTIONS += --with-lang=ALL
460 CONFIGURE_OPTIONS += --disable-firebird-sdbc
461 CONFIGURE_OPTIONS += --disable-postgresql-sdbc
462 CONFIGURE_OPTIONS += --disable-pdfium
463 CONFIGURE_OPTIONS += --with-help
464 CONFIGURE_OPTIONS += --without-fonts
465 CONFIGURE_OPTIONS += --enable-cups
466 CONFIGURE_OPTIONS += --enable-dbus
467 CONFIGURE_OPTIONS += --with-epm=internal
468 CONFIGURE_OPTIONS += --with-vendor="OpenIndiana"
469 CONFIGURE_OPTIONS += --with-tls="openssl"
470 CONFIGURE_OPTIONS += --with-system-openldap
471 CONFIGURE_OPTIONS += --enable-python=system
472 CONFIGURE_OPTIONS += --disable-cve-tests
473 CONFIGURE_OPTIONS += --with-java
474 CONFIGURE_OPTIONS += --with-jdk-home="/usr/jdk/openjdk17/"
475 CONFIGURE_OPTIONS += --without-system-beanshell
476 CONFIGURE_OPTIONS += --without-system-hsqldb
477 CONFIGURE_OPTIONS += --without-system-jfreereport
478 CONFIGURE_OPTIONS += --enable-ext-wiki-publisher
479 CONFIGURE_OPTIONS += --enable-ext-nlpsolver
480 CONFIGURE_OPTIONS += --with-export-validation
481 CONFIGURE_OPTIONS += --enable-scripting-beanshell
482 CONFIGURE_OPTIONS += --enable-scripting-javascript
483 CONFIGURE_OPTIONS += SED=/usr/bin/gsed
485 COMPONENT_BUILD_ENV += GMAKE_OPTIONS='VERBOSE=1 gb_SUPPRESS_TESTS=x'
487 COMPONENT_INSTALL_TARGETS = distro-pack-install
489 LIBREOFFICE_PROGRAM_DIR = /usr/lib/amd64/libreoffice/program
490 LIBREOFFICE_SHARE_DIR = /usr/lib/amd64/libreoffice/share
492 NSS_LIB_DIR=/usr/lib/mps/amd64
494 JAVA17_LIB_DIR=/usr/jdk/openjdk17/lib
496 COMPONENT_POST_INSTALL_ACTION = \
497 for file in $(PROTO_DIR)$(LIBREOFFICE_PROGRAM_DIR)/*.so*; do \
498 /usr/bin/elfedit -e 'dyn:value -s RUNPATH "$(GCC_LIBDIR):$(LIBREOFFICE_PROGRAM_DIR):$(NSS_LIB_DIR):$(JPEG_LIBDIR):$(MARIADB_LIBDIR):$(QT5_LIBDIR):$(QT6_LIBDIR):$(JAVA17_LIB_DIR)"' $$file ; \
499 /usr/bin/elfedit -e 'dyn:value -s RPATH "$(GCC_LIBDIR):$(LIBREOFFICE_PROGRAM_DIR):$(NSS_LIB_DIR):$(JPEG_LIBDIR):$(MARIADB_LIBDIR):$(QT5_LIBDIR):$(QT6_LIBDIR):$(JAVA17_LIB_DIR)"' $$file ; \
500 done ;
502 # Replace "#!/usr/bin/env ..." shebang line with properly versioned one
503 COMPONENT_POST_INSTALL_ACTION += \
504 $(GSED) -i 's/env\ python3/python$(PYTHON_VERSION)/' \
505 $(PROTO_DIR)$(LIBREOFFICE_SHARE_DIR)/extensions/dict-pt-BR/test_compile_rules.py ;
507 # dynamically generate license file to include all of the third party component licenses
508 COMPONENT_POST_INSTALL_ACTION += \
509 LC_ALL=en_US.UTF-8 lynx --display_charset=utf-8 --dump -nolist $(PROTOUSRLIBDIR64)/$(COMPONENT_NAME)/LICENSE.html > $(COMPONENT_NAME).license ;
512 # the license file is dynamically built, thus we need to remove it:
513 clean::
514 $(RM) $(COMPONENT_LICENSE_FILE)
516 # Filter out test result lines with truncated $(BUILD_DIR) paths
517 COMPONENT_TEST_TRANSFORMS += "-e 's|$(COMPONENT_DIR)|\$$(COMPONENT_DIR)|g'"
518 COMPONENT_TEST_TRANSFORMS += '-e "s/ [0-9]*ms//g"'
520 # debug specific test
521 testtrace:
522 @[ -n "$(SPECTEST)" ] || (echo "No SPECTEST specified."; exit 1;)
523 (cd $(BUILD_DIR); \
524 $(COMPONENT_TEST_ENV_CMD) $(COMPONENT_TEST_ENV) CPPUNITTRACE="gdb --args" \
525 $(COMPONENT_TEST_CMD) \
526 $(COMPONENT_TEST_ARGS) $(CPPUNIT_TEST_NAME) $(SPECTEST))
528 # Build dependencies
529 REQUIRED_PACKAGES += developer/assembler/nasm
530 REQUIRED_PACKAGES += developer/build/ant
531 REQUIRED_PACKAGES += developer/cppunit
532 REQUIRED_PACKAGES += developer/gperf
533 REQUIRED_PACKAGES += developer/icu
534 REQUIRED_PACKAGES += file/gnu-coreutils
535 REQUIRED_PACKAGES += library/c++/mdds
536 REQUIRED_PACKAGES += $(MYSQL_CLIENT_PKG)
538 # Auto-generated dependencies
539 PYTHON_REQUIRED_PACKAGES += runtime/python
540 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
541 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
542 REQUIRED_PACKAGES += $(ICU_LIBRARY_PKG)
543 REQUIRED_PACKAGES += $(JPEG_IMPLEM_PKG)
544 REQUIRED_PACKAGES += $(MYSQL_LIBRARY_PKG)
545 REQUIRED_PACKAGES += gnome/config/dconf
546 REQUIRED_PACKAGES += image/library/libpng16
547 REQUIRED_PACKAGES += image/library/libtiff
548 REQUIRED_PACKAGES += library/audio/gstreamer1
549 REQUIRED_PACKAGES += library/audio/gstreamer1/plugin/base
550 REQUIRED_PACKAGES += library/c++/graphite2
551 REQUIRED_PACKAGES += library/c++/harfbuzz
552 REQUIRED_PACKAGES += library/c++/libabw
553 REQUIRED_PACKAGES += library/c++/libcdr
554 REQUIRED_PACKAGES += library/c++/libe-book
555 REQUIRED_PACKAGES += library/c++/libepubgen
556 REQUIRED_PACKAGES += library/c++/libetonyek
557 REQUIRED_PACKAGES += library/c++/libfreehand
558 REQUIRED_PACKAGES += library/c++/libmspub
559 REQUIRED_PACKAGES += library/c++/libmwaw
560 REQUIRED_PACKAGES += library/c++/libodfgen
561 REQUIRED_PACKAGES += library/c++/libpagemaker
562 REQUIRED_PACKAGES += library/c++/libqxp
563 REQUIRED_PACKAGES += library/c++/librevenge
564 REQUIRED_PACKAGES += library/c++/libstaroffice
565 REQUIRED_PACKAGES += library/c++/libvisio
566 REQUIRED_PACKAGES += library/c++/libwpd
567 REQUIRED_PACKAGES += library/c++/libwpg
568 REQUIRED_PACKAGES += library/c++/libwps
569 REQUIRED_PACKAGES += library/c++/libzmf
570 REQUIRED_PACKAGES += library/desktop/atk
571 REQUIRED_PACKAGES += library/desktop/cairo
572 REQUIRED_PACKAGES += library/desktop/gdk-pixbuf
573 REQUIRED_PACKAGES += library/desktop/gtk3
574 REQUIRED_PACKAGES += library/desktop/pango
575 REQUIRED_PACKAGES += library/expat
576 REQUIRED_PACKAGES += library/glib2
577 REQUIRED_PACKAGES += library/lcms2
578 REQUIRED_PACKAGES += library/liblangtag
579 REQUIRED_PACKAGES += library/libpoppler
580 REQUIRED_PACKAGES += library/libwebp
581 REQUIRED_PACKAGES += library/libxml2
582 REQUIRED_PACKAGES += library/libxslt
583 REQUIRED_PACKAGES += library/nspr
584 REQUIRED_PACKAGES += library/openldap
585 REQUIRED_PACKAGES += library/print/cups-libs
586 REQUIRED_PACKAGES += library/qt5
587 REQUIRED_PACKAGES += library/qt6
588 REQUIRED_PACKAGES += library/security/openssl-31
589 REQUIRED_PACKAGES += library/zlib
590 REQUIRED_PACKAGES += runtime/java/openjdk17
591 REQUIRED_PACKAGES += shell/ksh93
592 REQUIRED_PACKAGES += system/library
593 REQUIRED_PACKAGES += system/library/boost
594 REQUIRED_PACKAGES += system/library/fontconfig
595 REQUIRED_PACKAGES += system/library/freetype-2
596 REQUIRED_PACKAGES += system/library/libdbus
597 REQUIRED_PACKAGES += system/library/math
598 REQUIRED_PACKAGES += system/library/mozilla-nss
599 REQUIRED_PACKAGES += text/hunspell
600 REQUIRED_PACKAGES += web/curl
601 REQUIRED_PACKAGES += x11/library/libepoxy
602 REQUIRED_PACKAGES += x11/library/libice
603 REQUIRED_PACKAGES += x11/library/libsm
604 REQUIRED_PACKAGES += x11/library/libx11
605 REQUIRED_PACKAGES += x11/library/libxcb
606 REQUIRED_PACKAGES += x11/library/libxext
607 REQUIRED_PACKAGES += x11/library/libxinerama
608 REQUIRED_PACKAGES += x11/library/libxrandr
609 REQUIRED_PACKAGES += x11/library/libxrender