libsoup3: update to 3.6.0; fix GTK2/3 app startup
[oi-userland.git] / components / desktop / libreoffice / Makefile
blobc2c1ec93b7c39cc5dc717937a564a8a1679789c3
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.8.1
38 COMPONENT_RC_VERSION= 2
39 COMPONENT_REVISION= 1
40 ifdef BUILD_ALPHA
41 COMPONENT_FULL_VERSION=$(COMPONENT_VERSION).$(COMPONENT_RC_VERSION).alpha$(BUILD_ALPHA)
42 else ifdef BUILD_BETA
43 COMPONENT_FULL_VERSION=$(COMPONENT_VERSION).$(COMPONENT_RC_VERSION).beta$(BUILD_BETA)
44 else
45 COMPONENT_FULL_VERSION=$(COMPONENT_VERSION).$(COMPONENT_RC_VERSION)
46 endif
47 ifdef BUILD_FIX
48 COMPONENT_FULL_VERSION=$(COMPONENT_FULL_VERSION)-buildfix$(BUILD_FIX)
49 endif
50 # repology wants to use HUMAN_VERSION
51 HUMAN_VERSION= $(COMPONENT_FULL_VERSION)
52 COMPONENT_SUMMARY= LibreOffice is a powerful office suite
53 COMPONENT_PROJECT_URL= https://www.libreoffice.org/
54 ifdef BUILD_GITHUB
55 COMPONENT_SHA= ef51c4a0cd35185debf25ad9d0db6a1c14bed5a0
56 COMPONENT_SRC= core-$(COMPONENT_SHA)
57 COMPONENT_ARCHIVE= $(COMPONENT_SHA).zip
58 COMPONENT_ARCHIVE_URL= https://github.com/LibreOffice/core/archive/$(COMPONENT_ARCHIVE)
59 COMPONENT_ARCHIVE_HASH= sha256:3f637039aa0366de0f25288806100007d72d3e9d1f557aac985e8eecb64173b2
60 else
61 COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_FULL_VERSION)
62 COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.xz
63 COMPONENT_ARCHIVE_URL= https://download.documentfoundation.org/libreoffice/src/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
64 COMPONENT_SIG_URL= $(COMPONENT_ARCHIVE_URL).asc
65 endif
66 COMPONENT_FMRI= desktop/office/libreoffice
67 COMPONENT_CLASSIFICATION= Applications/Office
68 COMPONENT_LICENSE= MPL2.0
69 COMPONENT_LICENSE_FILE= $(COMPONENT_NAME).license
71 COMPONENT_ARCHIVE_1 = 0168229624cfac409e766913506961a8-ucpp-1.3.2.tar.gz
72 COMPONENT_ARCHIVE_HASH_1 = sha256:983941d31ee8d366085cadf28db75eb1f5cb03ba1e5853b98f12f7f51c63b776
73 COMPONENT_ARCHIVE_URL_1 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_1)
75 COMPONENT_ARCHIVE_2 = 1f5def51ca0026cd192958ef07228b52-rasqal-0.9.33.tar.gz
76 COMPONENT_ARCHIVE_HASH_2 = sha256:6924c9ac6570bd241a9669f83b467c728a322470bf34f4b2da4f69492ccfd97c
77 COMPONENT_ARCHIVE_URL_2 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_2)
79 COMPONENT_ARCHIVE_3 = 26b3e95ddf3d9c077c480ea45874b3b8-lp_solve_5.5.tar.gz
80 COMPONENT_ARCHIVE_HASH_3 = sha256:171816288f14215c69e730f7a4f1c325739873e21f946ff83884b350574e6695
81 COMPONENT_ARCHIVE_URL_3 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_3)
83 COMPONENT_ARCHIVE_4 = 48d647fbd8ef8889e5a7f422c1bfda94-clucene-core-2.3.3.4.tar.gz
84 COMPONENT_ARCHIVE_HASH_4 = sha256:ddfdc433dd8ad31b5c5819cc4404a8d2127472a3b720d3e744e8c51d79732eab
85 COMPONENT_ARCHIVE_URL_4 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_4)
87 COMPONENT_ARCHIVE_5 = 5ade6ae2a99bc1e9e57031ca88d36dad-hyphen-2.8.8.tar.gz
88 COMPONENT_ARCHIVE_HASH_5 = sha256:304636d4eccd81a14b6914d07b84c79ebb815288c76fe027b9ebff6ff24d5705
89 COMPONENT_ARCHIVE_URL_5 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_5)
91 COMPONENT_ARCHIVE_6 = f543e6e2d7275557a839a164941c0a86e5f2c3f2a0042bfc434c88c6dde9e140-opens___.ttf
92 COMPONENT_ARCHIVE_HASH_6 = sha256:f543e6e2d7275557a839a164941c0a86e5f2c3f2a0042bfc434c88c6dde9e140
93 COMPONENT_ARCHIVE_URL_6 = https://dev-www.libreoffice.org/extern/$(COMPONENT_ARCHIVE_6)
95 COMPONENT_ARCHIVE_7 = mariadb-connector-c-3.1.8-src.tar.gz
96 COMPONENT_ARCHIVE_HASH_7 = sha256:431434d3926f4bcce2e5c97240609983f60d7ff50df5a72083934759bb863f7b
97 COMPONENT_ARCHIVE_URL_7 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_7)
99 COMPONENT_ARCHIVE_8 = a39f6c07ddb20d7dd2ff1f95fa21e2cd-raptor2-2.0.15.tar.gz
100 COMPONENT_ARCHIVE_HASH_8 = sha256:ada7f0ba54787b33485d090d3d2680533520cd4426d2f7fb4782dd4a6a1480ed
101 COMPONENT_ARCHIVE_URL_8 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_8)
103 COMPONENT_ARCHIVE_9 = mythes-1.2.5.tar.xz
104 COMPONENT_ARCHIVE_HASH_9 = sha256:19279f70707bbe5ffa619f2dc319f888cec0c4a8d339dc0a21330517bd6f521d
105 COMPONENT_ARCHIVE_URL_9 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_9)
107 COMPONENT_ARCHIVE_10 = glm-1.0.1.zip
108 COMPONENT_ARCHIVE_HASH_10 = sha256:09c5716296787e1f7fcb87b1cbdbf26814ec1288ed6259ccd30d5d9795809fa5
109 COMPONENT_ARCHIVE_URL_10 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_10)
111 COMPONENT_ARCHIVE_11 = CoinMP-1.8.4.tgz
112 COMPONENT_ARCHIVE_HASH_11 = sha256:3459fb0ccbdd39342744684338984ac4cc153fb0434f4cae8cf74bd67490a38d
113 COMPONENT_ARCHIVE_URL_11 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_11)
115 COMPONENT_ARCHIVE_12 = e5be03eda13ef68aabab6e42aa67715e-redland-1.0.17.tar.gz
116 COMPONENT_ARCHIVE_HASH_12 = sha256:de1847f7b59021c16bdc72abb4d8e2d9187cd6124d69156f3326dd34ee043681
117 COMPONENT_ARCHIVE_URL_12 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_12)
119 COMPONENT_ARCHIVE_13 = language-subtag-registry-2023-05-11.tar.bz2
120 COMPONENT_ARCHIVE_HASH_13 = sha256:9042b64cd473bf36073513b474046f13778107b57c2ac47fb2633104120d69da
121 COMPONENT_ARCHIVE_URL_13 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_13)
123 COMPONENT_ARCHIVE_14 = libexttextcat-3.4.7.tar.xz
124 COMPONENT_ARCHIVE_HASH_14 = sha256:df0a59d413a5b202573d8d4f5159e33a8538da4f8e8e60979facc64d6290cebd
125 COMPONENT_ARCHIVE_URL_14 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_14)
127 COMPONENT_ARCHIVE_15 = libnumbertext-1.0.11.tar.xz
128 COMPONENT_ARCHIVE_HASH_15 = sha256:5dcb4db3b2340f81f601ce86d8d76b69e34d70f84f804192c901e4b7f84d5fb0
129 COMPONENT_ARCHIVE_URL_15 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_15)
131 COMPONENT_ARCHIVE_16 = liborcus-0.19.2.tar.xz
132 COMPONENT_ARCHIVE_HASH_16 = sha256:69ed26a00d4aaa7688e62a6e003cbc81928521a45e96605e53365aa499719e39
133 COMPONENT_ARCHIVE_URL_16 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_16)
135 COMPONENT_ARCHIVE_17 = QR-Code-generator-1.4.0.tar.gz
136 COMPONENT_ARCHIVE_HASH_17 = sha256:fcdf9fd69fde07ae4dca2351d84271a9de8093002f733b77c70f52f1630f6e4a
137 COMPONENT_ARCHIVE_URL_17 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_17)
139 COMPONENT_ARCHIVE_18 = xmlsec1-1.3.5.tar.gz
140 COMPONENT_ARCHIVE_HASH_18 = sha256:2ffd4ad1f860ec93e47a680310ab2bc94968bd07566e71976bd96133d9504917
141 COMPONENT_ARCHIVE_URL_18 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_18)
143 #libreoffice-translations
144 ifdef BUILD_GITHUB
145 COMPONENT_ARCHIVE_19_GIT_HASH = a26bda99ff1506defcf6bad3c2bcfec56f2893b1
146 COMPONENT_ARCHIVE_19 = $(COMPONENT_ARCHIVE_19_GIT_HASH).tar.gz
147 COMPONENT_ARCHIVE_HASH_19 = sha256:1e6bd8395cf8e38b7597992697066a2c1651c52aaf1fa71e2267910e96b700c8
148 COMPONENT_ARCHIVE_URL_19 = https://github.com/LibreOffice/translations/archive/$(COMPONENT_ARCHIVE_19)
149 else
150 COMPONENT_ARCHIVE_19 = libreoffice-translations-$(COMPONENT_FULL_VERSION).tar.xz
151 COMPONENT_ARCHIVE_URL_19 = https://download.documentfoundation.org/libreoffice/src/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE_19)
152 COMPONENT_SIG_URL_19= $(COMPONENT_ARCHIVE_URL_19).asc
153 endif
155 # libreoffice-dictionaries
156 ifdef BUILD_GITHUB
157 COMPONENT_ARCHIVE_20_GIT_HASH = 0fbb94c57efcb6b30b88a6e181de54651e395e7c
158 COMPONENT_ARCHIVE_20 = $(COMPONENT_ARCHIVE_20_GIT_HASH).tar.gz
159 COMPONENT_ARCHIVE_HASH_20 = sha256:eaa98be2b20e3ef1c90e5438a9dac1129a0a7aa5e92c31b240b08e0fa162ef86
160 COMPONENT_ARCHIVE_URL_20 = https://github.com/LibreOffice/dictionaries/archive/$(COMPONENT_ARCHIVE_20)
161 else
162 COMPONENT_ARCHIVE_20 = libreoffice-dictionaries-$(COMPONENT_FULL_VERSION).tar.xz
163 COMPONENT_ARCHIVE_URL_20 = https://download.documentfoundation.org/libreoffice/src/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE_20)
164 COMPONENT_SIG_URL_20= $(COMPONENT_ARCHIVE_URL_20).asc
165 endif
167 #COMPONENT_ARCHIVE_21 = boost_1_69_0.tar.bz2
168 #COMPONENT_ARCHIVE_HASH_21 = sha256:8f32d4617390d1c2d16f26a27ab60d97807b35440d45891fa340fc2648b04406
169 #COMPONENT_ARCHIVE_URL_21 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_21)
171 COMPONENT_ARCHIVE_22 = neon-0.31.2.tar.gz
172 COMPONENT_ARCHIVE_HASH_22 = sha256:cf1ee3ac27a215814a9c80803fcee4f0ede8466ebead40267a9bd115e16a8678
173 COMPONENT_ARCHIVE_URL_22 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_22)
175 COMPONENT_ARCHIVE_23 = zxing-cpp-2.2.1.tar.gz
176 COMPONENT_ARCHIVE_HASH_23 = sha256:02078ae15f19f9d423a441f205b1d1bee32349ddda7467e2c84e8f08876f8635
177 COMPONENT_ARCHIVE_URL_23 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_23)
179 COMPONENT_ARCHIVE_24 = box2d-2.4.1.tar.gz
180 COMPONENT_ARCHIVE_HASH_24 = sha256:d6b4650ff897ee1ead27cf77a5933ea197cbeef6705638dd181adc2e816b23c2
181 COMPONENT_ARCHIVE_URL_24 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_24)
184 COMPONENT_ARCHIVE_25 = dtoa-20180411.tgz
185 COMPONENT_ARCHIVE_HASH_25 = sha256:0082d0684f7db6f62361b76c4b7faba19e0c7ce5cb8e36c4b65fea8281e711b4
186 COMPONENT_ARCHIVE_URL_25 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_25)
188 COMPONENT_ARCHIVE_26 = skia-m116-2ddcf183eb260f63698aa74d1bb380f247ad7ccd.tar.xz
189 COMPONENT_ARCHIVE_HASH_26 = sha256:2223ebce534458a37826e8fe4f24635b0712cde7ed1bd3208f089f6fdd796e01
190 COMPONENT_ARCHIVE_URL_26 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_26)
192 COMPONENT_ARCHIVE_27 = libcmis-0.6.2.tar.xz
193 COMPONENT_ARCHIVE_HASH_27 = sha256:1b5c2d7258ff93eb5f9958ff0e4dfd7332dc75a071bb717dde2217a26602a644
194 COMPONENT_ARCHIVE_URL_27 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_27)
196 COMPONENT_ARCHIVE_28 = gpgme-1.23.2.tar.bz2
197 COMPONENT_ARCHIVE_HASH_28 = sha256:9499e8b1f33cccb6815527a1bc16049d35a6198a6c5fae0185f2bd561bce5224
198 COMPONENT_ARCHIVE_URL_28 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_28)
200 COMPONENT_ARCHIVE_29 = libassuan-3.0.1.tar.bz2
201 COMPONENT_ARCHIVE_HASH_29 = sha256:c8f0f42e6103dea4b1a6a483cb556654e97302c7465308f58363778f95f194b1
202 COMPONENT_ARCHIVE_URL_29 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_29)
204 COMPONENT_ARCHIVE_30 = libgpg-error-1.50.tar.bz2
205 COMPONENT_ARCHIVE_HASH_30 = sha256:69405349e0a633e444a28c5b35ce8f14484684518a508dc48a089992fe93e20a
206 COMPONENT_ARCHIVE_URL_30 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_30)
208 COMPONENT_ARCHIVE_31 = frozen-1.1.1.tar.gz
209 COMPONENT_ARCHIVE_HASH_31 = sha256:f7c7075750e8fceeac081e9ef01944f221b36d9725beac8681cbd2838d26be45
210 COMPONENT_ARCHIVE_URL_31 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_31)
212 COMPONENT_ARCHIVE_32 = dragonbox-1.1.3.tar.gz
213 COMPONENT_ARCHIVE_HASH_32 = sha256:09d63b05e9c594ec423778ab59b7a5aa1d76fdd71d25c7048b0258c4ec9c3384
214 COMPONENT_ARCHIVE_URL_32 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_32)
216 COMPONENT_ARCHIVE_33 = mdds-2.1.1.tar.xz
217 COMPONENT_ARCHIVE_HASH_33 = sha256:1483d90cefb8aa4563c4d0a85cb7b243aa95217d235d422e9ca6722fd5b97e56
218 COMPONENT_ARCHIVE_URL_33 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_33)
220 COMPONENT_ARCHIVE_34 = zxcvbn-c-2.5.tar.gz
221 COMPONENT_ARCHIVE_HASH_34 = sha256:77d6c6ecb35952a8d8ce7f736b7a2bf466275c48210e309b73782d6b7e84dffd
222 COMPONENT_ARCHIVE_URL_34 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_34)
224 COMPONENT_ARCHIVE_35 = bsh-2.1.1-src.zip
225 COMPONENT_ARCHIVE_HASH_35 = sha256:2248387ceaa319840434a3547a8b2fec12f95a8418ee039ce5ff5726053a139c
226 COMPONENT_ARCHIVE_URL_35 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_35)
228 COMPONENT_ARCHIVE_36 = 17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip
229 COMPONENT_ARCHIVE_HASH_36 = sha256:d30b13f4ba2e3b6a2d4f020c0dee0a9fb9fc6fbcc2d561f36b78da4bf3802370
230 COMPONENT_ARCHIVE_URL_36 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_36)
232 COMPONENT_ARCHIVE_37 = Java-WebSocket-1.5.6.tar.gz
233 COMPONENT_ARCHIVE_HASH_37 = sha256:167e86561cd7b5ed21b67d7543536134edcb14b373892739b28c417566a3832f
234 COMPONENT_ARCHIVE_URL_37 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_37)
236 COMPONENT_ARCHIVE_38 = ba2930200c9f019c2d93a8c88c651a0f-flow-engine-0.9.4.zip
237 COMPONENT_ARCHIVE_HASH_38 = sha256:233f66e8d25c5dd971716d4200203a612a407649686ef3b52075d04b4c9df0dd
238 COMPONENT_ARCHIVE_URL_38 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_38)
240 COMPONENT_ARCHIVE_39 = d8bd5eed178db6e2b18eeed243f85aa8-flute-1.1.6.zip
241 COMPONENT_ARCHIVE_HASH_39 = sha256:1b5b24f7bc543c0362b667692f78db8bab4ed6dafc6172f104d0bd3757d8a133
242 COMPONENT_ARCHIVE_URL_39 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_39)
244 COMPONENT_ARCHIVE_40 = eeb2c7ddf0d302fba4bfc6e97eac9624-libbase-1.1.6.zip
245 COMPONENT_ARCHIVE_HASH_40 = sha256:75c80359c9ce343c20aab8a36a45cb3b9ee7c61cf92c13ae45399d854423a9ba
246 COMPONENT_ARCHIVE_URL_40 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_40)
248 COMPONENT_ARCHIVE_41 = 3bdf40c0d199af31923e900d082ca2dd-libfonts-1.1.6.zip
249 COMPONENT_ARCHIVE_HASH_41 = sha256:e0531091787c0f16c83965fdcbc49162c059d7f0c64669e7f119699321549743
250 COMPONENT_ARCHIVE_URL_41 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_41)
252 COMPONENT_ARCHIVE_42 = 3404ab6b1792ae5f16bbd603bd1e1d03-libformula-1.1.7.zip
253 COMPONENT_ARCHIVE_HASH_42 = sha256:5826d1551bf599b85742545f6e01a0079b93c1b2c8434bf409eddb3a29e4726b
254 COMPONENT_ARCHIVE_URL_42 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_42)
256 COMPONENT_ARCHIVE_43 = db60e4fde8dd6d6807523deb71ee34dc-liblayout-0.2.10.zip
257 COMPONENT_ARCHIVE_HASH_43 = sha256:e1fb87f3f7b980d33414473279615c4644027e013012d156efa538bc2b031772
258 COMPONENT_ARCHIVE_URL_43 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_43)
260 COMPONENT_ARCHIVE_44 = 97b2d4dba862397f446b217e2b623e71-libloader-1.1.6.zip
261 COMPONENT_ARCHIVE_HASH_44 = sha256:3d853b19b1d94a6efa69e7af90f7f2b09ecf302913bee3da796c15ecfebcfac8
262 COMPONENT_ARCHIVE_URL_44 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_44)
264 COMPONENT_ARCHIVE_45 = 8ce2fcd72becf06c41f7201d15373ed9-librepository-1.1.6.zip
265 COMPONENT_ARCHIVE_HASH_45 = sha256:abe2c57ac12ba45d83563b02e240fa95d973376de2f720aab8fe11f2e621c095
266 COMPONENT_ARCHIVE_URL_45 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_45)
268 COMPONENT_ARCHIVE_46 = f94d9870737518e3b597f9265f4e9803-libserializer-1.1.6.zip
269 COMPONENT_ARCHIVE_HASH_46 = sha256:05640a1f6805b2b2d7e2cb9c50db9a5cb084e3c52ab1a71ce015239b4a1d4343
270 COMPONENT_ARCHIVE_URL_46 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_46)
272 COMPONENT_ARCHIVE_47 = ace6ab49184e329db254e454a010f56d-libxml-1.1.7.zip
273 COMPONENT_ARCHIVE_HASH_47 = sha256:7d2797fe9f79a77009721e3f14fa4a1dec17a6d706bdc93f85f1f01d124fab66
274 COMPONENT_ARCHIVE_URL_47 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_47)
276 COMPONENT_ARCHIVE_48 = 39bb3fcea1514f1369fcfc87542390fd-sacjava-1.3.zip
277 COMPONENT_ARCHIVE_HASH_48 = sha256:085f2112c51fa8c1783fac12fbd452650596415121348393bb51f0f7e85a9045
278 COMPONENT_ARCHIVE_URL_48 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_48)
280 COMPONENT_ARCHIVE_49 = rhino-1.7.14.zip
281 COMPONENT_ARCHIVE_HASH_49 = sha256:bf4d2d0c5ff8889fd494486db09291cb7965f0bf2f93ef005d3b08070a5a4f5c
282 COMPONENT_ARCHIVE_URL_49 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_49)
284 COMPONENT_ARCHIVE_50 = 35c94d2df8893241173de1d16b6034c0-swingExSrc.zip
285 COMPONENT_ARCHIVE_HASH_50 = sha256:64585ac36a81291a58269ec5347e7e3e2e8596dbacb9221015c208191333c6e1
286 COMPONENT_ARCHIVE_URL_50 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_50)
288 COMPONENT_ARCHIVE_51 = a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip
289 COMPONENT_ARCHIVE_HASH_51 = sha256:75823776fb51a9c526af904f1503a7afaaab900fba83eda64f8a41073724c870
290 COMPONENT_ARCHIVE_URL_51 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_51)
292 COMPONENT_ARCHIVE_52 = odfvalidator-0.9.0-RC2-SNAPSHOT-jar-with-dependencies-2726ab578664434a545f8379a01a9faffac0ae73.jar
293 COMPONENT_ARCHIVE_HASH_52 = sha256:d55495ab3a86544650587de2a72180ddf8bfc6376d14ddfa923992dbc86a06e0
294 COMPONENT_ARCHIVE_URL_52 = https://dev-www.libreoffice.org/extern/$(COMPONENT_ARCHIVE_52)
296 # libreoffice-help
297 ifdef BUILD_GITHUB
298 COMPONENT_ARCHIVE_53_GIT_HASH = 3542a6dade252f7d6b9e8332437e88a52e782db6
299 COMPONENT_ARCHIVE_53 = $(COMPONENT_ARCHIVE_53_GIT_HASH).tar.gz
300 COMPONENT_ARCHIVE_HASH_53 = sha256:745b89d0aeca93aded9f18e7060680c2cef1311453e5e43ec05ea3d40be8902b
301 COMPONENT_ARCHIVE_URL_53 = https://github.com/LibreOffice/help/archive/$(COMPONENT_ARCHIVE_53)
302 else
303 COMPONENT_ARCHIVE_53 = libreoffice-help-$(COMPONENT_FULL_VERSION).tar.xz
304 COMPONENT_ARCHIVE_URL_53 = https://download.documentfoundation.org/libreoffice/src/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE_53)
305 COMPONENT_SIG_URL_53= $(COMPONENT_ARCHIVE_URL_53).asc
306 endif
308 COMPONENT_ARCHIVE_54 = 8249374c274932a21846fa7629c2aa9b-officeotron-0.7.4-master.jar
309 COMPONENT_ARCHIVE_HASH_54 = sha256:f2443f27561af52324eee03a1892d9f569adc8db9e7bca55614898bc2a13a770
310 COMPONENT_ARCHIVE_URL_54 = https://dev-www.libreoffice.org/extern/$(COMPONENT_ARCHIVE_54)
312 COMPONENT_ARCHIVE_55 = phc-winner-argon2-20190702.tar.gz
313 COMPONENT_ARCHIVE_HASH_55 = sha256:4d1dac6ef66528b7a2bc910ff45c1015a1b83cb928515ca18a78dc76e688627b
314 COMPONENT_ARCHIVE_URL_55 = https://dev-www.libreoffice.org/src/$(COMPONENT_ARCHIVE_55)
316 # ignore archive 21 (boost)
317 NUM_EXTRA_ARCHIVES = $(shell seq 1 20) $(shell 22 54)
319 # github source archive files are a different compression than what is found on
320 # the documentfoundation site
321 ifdef BUILD_GITHUB
322 ADDITIONAL_PATCHES += patches/dictionaries-translations-help-already-downloaded-as-tar-gz.patch.github
323 endif
325 include $(WS_MAKE_RULES)/common.mk
327 PATH= $(GCC_BINDIR):$(PATH.gnu)
329 #Ensure asm is built in 64-bit.
330 AFLAGS= -m64
332 #CFLAGS / CXXFLAGS not passed to all external libraries! Add -m64 to ensure 64-bit is built.
333 CC+= -m64
334 CXX+= -m64
336 COMPONENT_BUILD_ENV= CONFIG_SHELL="$(CONFIG_SHELL)"
337 COMPONENT_BUILD_ENV+= SHELL="$(CONFIG_SHELL)"
338 COMPONENT_BUILD_ENV+= AFLAGS="$(AFLAGS)"
339 COMPONENT_BUILD_ENV+= LD_LIBRARY_PATH="$(GCC_LIBDIR)"
341 COMPONENT_TEST_ENV= LD_LIBRARY_PATH='$(GCC_LIBDIR):$(BUILD_DIR_64)/instdir/program/' GMAKE_OPTIONS=-rsk
343 CONFIGURE_ENV = $(COMPONENT_BUILD_ENV)
344 CONFIGURE_ENV += PYTHON=$(PYTHON.3.9)
345 CONFIGURE_ENV += GPG=/usr/bin/gpg2
346 CONFIGURE_ENV += GPGCONF=/usr/bin/gpgconf
348 CONFIGURE_ENV += MARIADBCONFIG=$(MYSQL_CONFIG)
349 MARIADB_LIBDIR= $(MYSQL_LIBDIR)
351 CONFIGURE_LIBDIR= $(CONFIGURE_LIBDIR.64)
353 CONFIGURE_SCRIPT= $(SOURCE_DIR)/autogen.sh
355 COMPONENT_PREP_ACTION = ( mkdir -p $(@D)/external/tarballs && \
356 for i in $(ARCHIVES) ; do \
357 rm -f $(@D)/external/tarballs/$$i && \
358 ln -s $(USERLAND_ARCHIVES)/$$i $(@D)/external/tarballs/$$i ; \
359 done
361 # Add missing files that exist in the documentfoundation source archives that
362 # are not included in the github source--this allows the build steps to be the
363 # same using source from either location
364 # Note: need this adds the closing parenthesis for COMPONENT_PREP_ACTION
365 ifdef BUILD_GITHUB
366 COMPONENT_PREP_ACTION += && \
367 ln -s $(USERLAND_ARCHIVES)/$(COMPONENT_ARCHIVE_20) $(@D)/external/tarballs/libreoffice-dictionaries-$(COMPONENT_VERSION).$(COMPONENT_RC_VERSION).tar.gz && \
368 ln -s $(USERLAND_ARCHIVES)/$(COMPONENT_ARCHIVE_19) $(@D)/external/tarballs/libreoffice-translations-$(COMPONENT_VERSION).$(COMPONENT_RC_VERSION).tar.gz && \
369 ln -s $(USERLAND_ARCHIVES)/$(COMPONENT_ARCHIVE_53) $(@D)/external/tarballs/libreoffice-help-$(COMPONENT_VERSION).$(COMPONENT_RC_VERSION).tar.gz && \
370 touch $(SOURCE_DIR)/dictionaries/Repository.mk && \
371 touch $(SOURCE_DIR)/translations/Repository.mk && \
372 touch $(SOURCE_DIR)/helpcontent2/Repository.mk && \
373 touch $(SOURCE_DIR)/dictionaries/sources.ver && \
374 touch $(SOURCE_DIR)/translations/sources.ver && \
375 touch $(SOURCE_DIR)/helpcontent2/sources.ver && \
376 ln -s $(SOURCE_DIR)/helpcontent2 $(SOURCE_DIR)/help && \
377 echo "lo_sources_ver=$(COMPONENT_VERSION).$(COMPONENT_RC_VERSION)" > $(SOURCE_DIR)/sources.ver )
378 else
379 COMPONENT_PREP_ACTION += )
380 endif
382 LDFLAGS += $(JPEG_LDFLAGS) -lX11-xcb -lX11
384 CFLAGS += $(JPEG_CPPFLAGS) $(JPEG_CFLAGS) -lssp_nonshared
385 #CONFIGURE_OPTIONS += --enable-debug
386 #CONFIGURE_OPTIONS += --enable-optimized=no
387 CXXFLAGS = $(CFLAGS)
389 # 64-bit
390 CONFIGURE_OPTIONS += --build=amd64-pc-solaris2.11
392 ifdef DEBUG
393 CONFIGURE_OPTIONS += --enable-debug
394 else
395 CONFIGURE_OPTIONS += --enable-release-build
396 endif
398 CONFIGURE_OPTIONS += --with-myspell-dicts
399 CONFIGURE_OPTIONS += --with-help=common
400 CONFIGURE_OPTIONS += --enable-gstreamer-1-0
401 CONFIGURE_OPTIONS += --enable-gtk3
402 CONFIGURE_OPTIONS += --enable-gtk4
403 CONFIGURE_OPTIONS += --enable-qt5
404 CONFIGURE_OPTIONS += --enable-qt6
405 CONFIGURE_OPTIONS += --disable-odk
406 CONFIGURE_OPTIONS += --with-system-cairo
407 CONFIGURE_OPTIONS += --with-system-expat
408 CONFIGURE_OPTIONS += --with-system-libxml
409 CONFIGURE_OPTIONS += --with-system-icu
410 CONFIGURE_OPTIONS += --with-system-poppler
411 CONFIGURE_OPTIONS += --with-system-curl
412 CONFIGURE_OPTIONS += --with-system-boost
413 CONFIGURE_OPTIONS += --with-system-nss
414 # library/libneon < 0.31.2
415 # CONFIGURE_OPTIONS += --with-system-neon
416 CONFIGURE_OPTIONS += --with-system-openssl
417 CONFIGURE_OPTIONS += --with-system-libpng
418 CONFIGURE_OPTIONS += --with-system-jpeg
419 CONFIGURE_OPTIONS += --with-system-harfbuzz
421 CONFIGURE_OPTIONS += --with-system-graphite
422 CONFIGURE_OPTIONS += --with-system-cppunit
424 CONFIGURE_OPTIONS += --with-system-lcms2
425 CONFIGURE_OPTIONS += --with-system-dicts
426 CONFIGURE_OPTIONS += --with-system-epoxy
427 CONFIGURE_OPTIONS += --with-system-hunspell
428 # We have mdds-2.0.3 now which is not compatible with this libreoffice version:
429 #CONFIGURE_OPTIONS += --with-system-mdds
430 CONFIGURE_OPTIONS += --with-system-libabw
431 CONFIGURE_OPTIONS += --with-system-libcdr
432 # libreoffice uses functionality not packaged in latest libcmis (0.5.2)
433 #CONFIGURE_OPTIONS += --with-system-libcmis
434 CONFIGURE_OPTIONS += --with-system-libetonyek
435 CONFIGURE_OPTIONS += --with-system-libebook
436 CONFIGURE_OPTIONS += --with-system-libepubgen
437 CONFIGURE_OPTIONS += --with-system-libfreehand
438 CONFIGURE_OPTIONS += --with-system-liblangtag
439 CONFIGURE_OPTIONS += --with-system-libmspub
440 CONFIGURE_OPTIONS += --with-system-libmwaw
441 CONFIGURE_OPTIONS += --with-system-libodfgen
442 CONFIGURE_OPTIONS += --with-system-libpagemaker
443 CONFIGURE_OPTIONS += --with-system-libqxp
444 CONFIGURE_OPTIONS += --with-system-librevenge
445 CONFIGURE_OPTIONS += --with-system-libstaroffice
446 CONFIGURE_OPTIONS += --with-system-libtiff
447 CONFIGURE_OPTIONS += --with-system-libvisio
448 CONFIGURE_OPTIONS += --with-system-libwebp
449 CONFIGURE_OPTIONS += --with-system-libwpd
450 CONFIGURE_OPTIONS += --with-system-libwpg
451 CONFIGURE_OPTIONS += --with-system-libwps
452 CONFIGURE_OPTIONS += --with-system-libzmf
454 # Use packaged mariadb client with solaris patches
455 CONFIGURE_OPTIONS += --with-system-mariadb
456 CONFIGURE_OPTIONS += --enable-gio
457 CONFIGURE_OPTIONS += --with-lang=ALL
458 CONFIGURE_OPTIONS += --disable-firebird-sdbc
459 CONFIGURE_OPTIONS += --disable-postgresql-sdbc
460 CONFIGURE_OPTIONS += --disable-pdfium
461 CONFIGURE_OPTIONS += --with-help
462 CONFIGURE_OPTIONS += --without-fonts
463 CONFIGURE_OPTIONS += --enable-cups
464 CONFIGURE_OPTIONS += --enable-dbus
465 CONFIGURE_OPTIONS += --with-epm=internal
466 CONFIGURE_OPTIONS += --with-vendor="OpenIndiana"
467 CONFIGURE_OPTIONS += --with-tls="openssl"
468 CONFIGURE_OPTIONS += --with-system-openldap
469 CONFIGURE_OPTIONS += --enable-python=system
470 CONFIGURE_OPTIONS += --disable-cve-tests
471 CONFIGURE_OPTIONS += --with-java
472 CONFIGURE_OPTIONS += --with-jdk-home="/usr/jdk/openjdk17/"
473 CONFIGURE_OPTIONS += --without-system-beanshell
474 CONFIGURE_OPTIONS += --without-system-hsqldb
475 CONFIGURE_OPTIONS += --without-system-jfreereport
476 CONFIGURE_OPTIONS += --enable-ext-wiki-publisher
477 CONFIGURE_OPTIONS += --enable-ext-nlpsolver
478 CONFIGURE_OPTIONS += --with-export-validation
479 CONFIGURE_OPTIONS += --enable-scripting-beanshell
480 CONFIGURE_OPTIONS += --enable-scripting-javascript
481 CONFIGURE_OPTIONS += SED=/usr/bin/gsed
483 COMPONENT_BUILD_ENV += GMAKE_OPTIONS='VERBOSE=1 gb_SUPPRESS_TESTS=x'
485 COMPONENT_INSTALL_TARGETS = distro-pack-install
487 LIBREOFFICE_PROGRAM_DIR = /usr/lib/amd64/libreoffice/program
488 LIBREOFFICE_SHARE_DIR = /usr/lib/amd64/libreoffice/share
490 NSS_LIB_DIR=/usr/lib/mps/amd64
492 JAVA17_LIB_DIR=/usr/jdk/openjdk17/lib
494 COMPONENT_POST_INSTALL_ACTION = \
495 for file in $(PROTO_DIR)$(LIBREOFFICE_PROGRAM_DIR)/*.so*; do \
496 /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 ; \
497 /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 ; \
498 done ;
500 # Replace "#!/usr/bin/env ..." shebang line with properly versioned one
501 COMPONENT_POST_INSTALL_ACTION += \
502 $(GSED) -i 's/env\ python3/python$(PYTHON_VERSION)/' \
503 $(PROTO_DIR)$(LIBREOFFICE_SHARE_DIR)/extensions/dict-pt-BR/test_compile_rules.py ;
505 # dynamically generate license file to include all of the third party component licenses
506 COMPONENT_POST_INSTALL_ACTION += \
507 LC_ALL=en_US.UTF-8 lynx --display_charset=utf-8 --dump -nolist $(PROTOUSRLIBDIR64)/$(COMPONENT_NAME)/LICENSE.html > $(COMPONENT_NAME).license ;
510 # the license file is dynamically built, thus we need to remove it:
511 clean::
512 $(RM) $(COMPONENT_LICENSE_FILE)
514 # Filter out test result lines with truncated $(BUILD_DIR) paths
515 COMPONENT_TEST_TRANSFORMS += "-e 's|$(COMPONENT_DIR)|\$$(COMPONENT_DIR)|g'"
516 COMPONENT_TEST_TRANSFORMS += '-e "s/ [0-9]*ms//g"'
518 # debug specific test
519 testtrace:
520 @[ -n "$(SPECTEST)" ] || (echo "No SPECTEST specified."; exit 1;)
521 (cd $(BUILD_DIR); \
522 $(COMPONENT_TEST_ENV_CMD) $(COMPONENT_TEST_ENV) CPPUNITTRACE="gdb --args" \
523 $(COMPONENT_TEST_CMD) \
524 $(COMPONENT_TEST_ARGS) $(CPPUNIT_TEST_NAME) $(SPECTEST))
526 # Build dependencies
527 REQUIRED_PACKAGES += developer/assembler/nasm
528 REQUIRED_PACKAGES += developer/build/ant
529 REQUIRED_PACKAGES += developer/cppunit
530 REQUIRED_PACKAGES += developer/gperf
531 REQUIRED_PACKAGES += developer/icu
532 REQUIRED_PACKAGES += file/gnu-coreutils
533 REQUIRED_PACKAGES += library/c++/mdds
534 REQUIRED_PACKAGES += $(MYSQL_CLIENT_PKG)
536 # Auto-generated dependencies
537 PYTHON_REQUIRED_PACKAGES += runtime/python
538 REQUIRED_PACKAGES += $(GCC_RUNTIME_PKG)
539 REQUIRED_PACKAGES += $(GXX_RUNTIME_PKG)
540 REQUIRED_PACKAGES += $(ICU_LIBRARY_PKG)
541 REQUIRED_PACKAGES += $(JPEG_IMPLEM_PKG)
542 REQUIRED_PACKAGES += $(MYSQL_LIBRARY_PKG)
543 REQUIRED_PACKAGES += $(OPENSSL_PKG)
544 REQUIRED_PACKAGES += gnome/config/dconf
545 REQUIRED_PACKAGES += image/library/libjpeg-turbo
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/graphene
574 REQUIRED_PACKAGES += library/desktop/gtk3
575 REQUIRED_PACKAGES += library/desktop/gtk4
576 REQUIRED_PACKAGES += library/desktop/pango
577 REQUIRED_PACKAGES += library/expat
578 REQUIRED_PACKAGES += library/glib2
579 REQUIRED_PACKAGES += library/lcms2
580 REQUIRED_PACKAGES += library/liblangtag
581 REQUIRED_PACKAGES += library/libpoppler
582 REQUIRED_PACKAGES += library/libwebp
583 REQUIRED_PACKAGES += library/libxml2
584 REQUIRED_PACKAGES += library/libxslt
585 REQUIRED_PACKAGES += library/nspr
586 REQUIRED_PACKAGES += library/openldap
587 REQUIRED_PACKAGES += library/print/cups-libs
588 REQUIRED_PACKAGES += library/qt5
589 REQUIRED_PACKAGES += library/qt6
590 REQUIRED_PACKAGES += library/zlib
591 REQUIRED_PACKAGES += runtime/java/openjdk17
592 REQUIRED_PACKAGES += shell/ksh93
593 REQUIRED_PACKAGES += system/library
594 REQUIRED_PACKAGES += system/library/boost
595 REQUIRED_PACKAGES += system/library/fontconfig
596 REQUIRED_PACKAGES += system/library/freetype-2
597 REQUIRED_PACKAGES += system/library/libdbus
598 REQUIRED_PACKAGES += system/library/math
599 REQUIRED_PACKAGES += system/library/mozilla-nss
600 REQUIRED_PACKAGES += text/hunspell
601 REQUIRED_PACKAGES += web/curl
602 REQUIRED_PACKAGES += x11/library/libepoxy
603 REQUIRED_PACKAGES += x11/library/libice
604 REQUIRED_PACKAGES += x11/library/libsm
605 REQUIRED_PACKAGES += x11/library/libx11
606 REQUIRED_PACKAGES += x11/library/libxcb
607 REQUIRED_PACKAGES += x11/library/libxext
608 REQUIRED_PACKAGES += x11/library/libxinerama
609 REQUIRED_PACKAGES += x11/library/libxrandr
610 REQUIRED_PACKAGES += x11/library/libxrender