2012-11-21 15:36:34 -06:00
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
|
|
#
|
|
|
|
# This file is part of the LibreOffice project.
|
|
|
|
#
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
#
|
|
|
|
|
|
|
|
fetch_LOGFILE := $(TARFILE_LOCATION)/fetch.log
|
|
|
|
|
|
|
|
ifneq (,$(WGET))
|
|
|
|
define fetch_Download__wget_command
|
2017-01-25 14:13:25 -06:00
|
|
|
&& bash -c '$(WGET) --progress=dot:mega -Q 0 -P "." -l 0 -nd -nH -N --no-use-server-timestamps $1/$2 2>&1 | tee -a $(fetch_LOGFILE) && [ $$PIPESTATUS -eq 0 ]'
|
2012-11-21 15:36:34 -06:00
|
|
|
endef
|
|
|
|
|
|
|
|
else
|
|
|
|
define fetch_Download__wget_command
|
2024-04-26 01:42:49 -05:00
|
|
|
&& echo fetching $2 && bash -c '$(CURL) -f -L -O $1/$2 2>&1 | tee -a $(fetch_LOGFILE) && [ $$PIPESTATUS -eq 0 ]'
|
2012-11-21 15:36:34 -06:00
|
|
|
endef
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2017-02-24 10:05:48 -06:00
|
|
|
ifneq (,$(SHA256SUM))
|
2012-11-21 15:36:34 -06:00
|
|
|
define fetch_Download__checksum_command
|
2017-02-24 10:05:48 -06:00
|
|
|
&& SUM=`$(SHA256SUM) $1 | sed "s/ .*//"` \
|
2012-11-21 15:36:34 -06:00
|
|
|
&& if test "$$SUM" != "$2"; then \
|
|
|
|
echo ERROR: expected checksum for $1 is $2 2>&1 | tee -a $(fetch_LOGFILE); \
|
|
|
|
false; \
|
|
|
|
fi
|
|
|
|
endef
|
|
|
|
|
|
|
|
else
|
|
|
|
fetch_Download__checksum_command :=
|
|
|
|
|
|
|
|
endif
|
|
|
|
|
2017-02-24 10:05:48 -06:00
|
|
|
# fetch__Download_item url tarball-name sha256sum
|
2012-11-23 05:54:15 -06:00
|
|
|
define fetch__Download_item
|
2012-11-21 15:36:34 -06:00
|
|
|
$(if $(wildcard $(TARFILE_LOCATION)/$2),, \
|
|
|
|
cd $(TARFILE_LOCATION)/tmp \
|
|
|
|
$(call fetch_Download__wget_command,$1,$2) \
|
2012-11-23 05:54:15 -06:00
|
|
|
$(if $3,$(call fetch_Download__checksum_command,$2,$3)) \
|
2012-11-21 15:36:34 -06:00
|
|
|
&& mv $2 ../ \
|
|
|
|
)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-05-11 07:42:44 -05:00
|
|
|
# fetch_Download__is_checksum checksum
|
|
|
|
define fetch_Download__is_checksum
|
|
|
|
$(filter 32,$(words $(shell echo $(1) | sed -e 's/./& /g')))
|
|
|
|
endef
|
|
|
|
|
2014-05-15 01:23:15 -05:00
|
|
|
define fetch_Download__subst_var
|
2018-05-28 09:54:41 -05:00
|
|
|
$(subst _TTF,_SHA256SUM,$(subst _DLL,_SHA256SUM,$(subst _TARBALL,_SHA256SUM,$(subst _PACK,_SHA256SUM,$(subst _JAR,_SHA256SUM,$(1))))))
|
2014-05-15 01:23:15 -05:00
|
|
|
endef
|
|
|
|
|
2014-05-11 07:42:44 -05:00
|
|
|
# fetch_Download_item url variable-name
|
2012-11-23 05:54:15 -06:00
|
|
|
define fetch_Download_item
|
2014-05-11 08:30:35 -05:00
|
|
|
$(if $(strip $($(2))),,$(error fetch__Download_item: $(2) is empty))
|
2014-05-15 01:23:15 -05:00
|
|
|
$(if $(filter undefined,$(origin $(call fetch_Download__subst_var,$(2)))),\
|
2017-03-10 20:09:21 -06:00
|
|
|
$(error "fetch_Download_item: no checksum found for $($(2)). Please define $(call fetch_Download__subst_var,$(2)) in download.lst."),\
|
2014-05-15 01:23:15 -05:00
|
|
|
$(call fetch__Download_item,$(1),$($2),$($(call fetch_Download__subst_var,$(2)))) \
|
2014-05-11 07:42:44 -05:00
|
|
|
)
|
2012-11-23 05:54:15 -06:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2014-05-11 07:42:44 -05:00
|
|
|
# fetch_Download_item url tarball-name
|
|
|
|
define fetch_Download_item_unchecked
|
|
|
|
$(call fetch__Download_item,$1,$2)
|
2012-11-23 05:54:15 -06:00
|
|
|
|
|
|
|
endef
|
|
|
|
|
2012-11-22 12:15:18 -06:00
|
|
|
fetch_BUILD_TYPE := $(sort $(BUILD_TYPE))
|
2014-02-27 09:19:43 -06:00
|
|
|
ifneq ($(CROSS_COMPILING),)
|
2012-11-22 12:15:18 -06:00
|
|
|
fetch_BUILD_TYPE := $(sort $(fetch_BUILD_TYPE) $(shell . $(SRCDIR)/bin/get_config_variables --build BUILD_TYPE && echo $$BUILD_TYPE))
|
|
|
|
endif
|
|
|
|
|
2014-05-11 07:42:44 -05:00
|
|
|
# Return variable-name if this tarball should be fetched.
|
|
|
|
#
|
|
|
|
# This function is used for tarballs predefined in download.lst.
|
|
|
|
#
|
|
|
|
# fetch_Optional build-type variable-name
|
2012-11-22 04:21:58 -06:00
|
|
|
define fetch_Optional
|
2012-11-22 12:15:18 -06:00
|
|
|
$(if $(filter ALL,$(DO_FETCH_TARBALLS))$(filter $1,$(fetch_BUILD_TYPE)),$2)
|
2012-11-22 04:21:58 -06:00
|
|
|
endef
|
|
|
|
|
2014-05-11 07:42:44 -05:00
|
|
|
# Return variable-name if this pack should be fetched.
|
|
|
|
#
|
|
|
|
# This function is used for packs defined by configure.
|
|
|
|
#
|
|
|
|
# fetch_Optional_pack variable-name
|
|
|
|
define fetch_Optional_pack
|
|
|
|
$(if $(strip $($(1))),$(1))
|
|
|
|
endef
|
|
|
|
|
2012-11-29 03:04:31 -06:00
|
|
|
download: $(WORKDIR)/download
|
2012-11-26 07:17:18 -06:00
|
|
|
|
2017-05-22 10:21:51 -05:00
|
|
|
$(WORKDIR)/download: $(BUILDDIR)/config_$(gb_Side).mk $(SRCDIR)/download.lst $(SRCDIR)/Makefile.fetch
|
2013-07-24 12:44:52 -05:00
|
|
|
-@mkdir -p $(TARFILE_LOCATION)/tmp
|
2012-11-26 07:17:18 -06:00
|
|
|
@date >> $(fetch_LOGFILE)
|
2013-05-10 13:21:30 -05:00
|
|
|
$(foreach item, \
|
2014-01-13 10:01:32 -06:00
|
|
|
$(call fetch_Optional,ABW,ABW_TARBALL) \
|
2023-12-18 13:50:05 -06:00
|
|
|
$(call fetch_Optional,ARGON2,ARGON2_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,BOOST,BOOST_TARBALL) \
|
2020-05-13 03:28:05 -05:00
|
|
|
$(call fetch_Optional,BOX2D,BOX2D_TARBALL) \
|
2015-11-14 21:39:24 -06:00
|
|
|
$(call fetch_Optional,BREAKPAD,BREAKPAD_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,BSH,BSH_TARBALL) \
|
2015-07-03 04:58:27 -05:00
|
|
|
$(call fetch_Optional,BZIP2,BZIP2_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,CAIRO,CAIRO_TARBALL) \
|
2014-05-11 07:50:24 -05:00
|
|
|
$(call fetch_Optional,CAIRO,PIXMAN_TARBALL) \
|
|
|
|
$(call fetch_Optional,CDR,CDR_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,CLUCENE,CLUCENE_TARBALL) \
|
2022-02-20 05:13:19 -06:00
|
|
|
$(call fetch_Optional,DRAGONBOX,DRAGONBOX_TARBALL) \
|
tdf#130725: use strtod by David M. Gay to make sure we get the nearest
... representation of given decimal.
Use dtoa.c from https://www.netlib.org/fp/dtoa.c to build a custom
static library that doesn't use current locale (unlike strtod from
stdlib.h). This is the implementation used by e.g. python and nss
(search for "dtoa.c" under UnpackedTarball).
To avoid name clash with the standard strtod, rename the function
to strtod_nolocale.
Size of buffer on stack in ImpSvNumberInputScan::StringToDouble is
256 characters. Logging function usage in make check, of ~124 600
invocations, the longest string was 14 characters, average being
2.1 characters. So heap allocation is unlikely in scenarios with
intensive function usage.
After std::from_chars is available in baseline compilers, external
library can be dropped, and call to strtod_nolocale replaced with
the standard function.
The artifact at https://dev-www.libreoffice.org/src/dtoa-20180411.tgz
is created with
mkdir dtoa && mkdir dtoa/src && wget https://www.netlib.org/fp/dtoa.c -O dtoa/src/dtoa.c && \
printf 'd8bab255476f39ea495c8c8ed164f9077da926e6ca7afb9ad3c56d337c4484fe dtoa/src/dtoa.c' | sha256sum -c && \
tar -c --owner=0 --group=0 --mode=go=r,u=rw --mtime='Wed, 11 Apr 2018 15:59:39 GMT' dtoa/src/dtoa.c | gzip -n > dtoa-20180411.tgz && \
printf '0082d0684f7db6f62361b76c4b7faba19e0c7ce5cb8e36c4b65fea8281e711b4 dtoa-20180411.tgz' | sha256sum -c
(where the date "Wed, 11 Apr 2018 15:59:39 GMT" is from
`wget -S https://www.netlib.org/fp/dtoa.c`
"Last-Modified: Wed, 11 Apr 2018 15:59:39 GMT" header).
Change-Id: Ia61b7678e257c4bc1ff193f3f856d611aa5c1a21
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88854
Tested-by: Jenkins
Reviewed-by: Mike Kaganski <mike.kaganski@collabora.com>
2020-02-23 10:19:10 -06:00
|
|
|
DTOA_TARBALL \
|
2017-09-13 16:44:32 -05:00
|
|
|
$(call fetch_Optional,LIBCMIS,LIBCMIS_TARBALL) \
|
2014-05-11 07:50:24 -05:00
|
|
|
$(call fetch_Optional,COINMP,COINMP_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,CPPUNIT,CPPUNIT_TARBALL) \
|
|
|
|
$(call fetch_Optional,CURL,CURL_TARBALL) \
|
2014-05-11 07:50:24 -05:00
|
|
|
$(call fetch_Optional,EBOOK,EBOOK_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,EPM,EPM_TARBALL) \
|
2017-08-02 09:29:48 -05:00
|
|
|
$(call fetch_Optional,EPUBGEN,EPUBGEN_TARBALL) \
|
2014-05-11 07:50:24 -05:00
|
|
|
$(call fetch_Optional,ETONYEK,ETONYEK_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,EXPAT,EXPAT_TARBALL) \
|
2014-05-11 07:50:24 -05:00
|
|
|
$(call fetch_Optional,FIREBIRD,FIREBIRD_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,FONTCONFIG,FONTCONFIG_TARBALL) \
|
2014-05-11 07:50:24 -05:00
|
|
|
$(call fetch_Optional,FREEHAND,FREEHAND_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,FREETYPE,FREETYPE_TARBALL) \
|
2022-07-16 05:17:20 -05:00
|
|
|
FROZEN_TARBALL \
|
2016-11-25 14:25:27 -06:00
|
|
|
$(call fetch_Optional,EPOXY,EPOXY_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,GLM,GLM_TARBALL) \
|
2017-02-23 05:57:42 -06:00
|
|
|
$(call fetch_Optional,GPGMEPP,GPGME_TARBALL) \
|
2014-05-11 07:50:24 -05:00
|
|
|
$(call fetch_Optional,GRAPHITE,GRAPHITE_TARBALL) \
|
|
|
|
$(call fetch_Optional,HARFBUZZ,HARFBUZZ_TARBALL) \
|
2018-04-11 09:39:57 -05:00
|
|
|
$(call fetch_Optional,HSQLDB,HSQLDB_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,HUNSPELL,HUNSPELL_TARBALL) \
|
|
|
|
$(call fetch_Optional,HYPHEN,HYPHEN_TARBALL) \
|
2023-10-25 09:19:33 -05:00
|
|
|
$(if $(filter WNT,$(OS)),IACCESSIBLE2_TARBALL) \
|
2014-05-11 07:50:24 -05:00
|
|
|
$(call fetch_Optional,ICU,ICU_TARBALL) \
|
2017-04-21 18:24:19 -05:00
|
|
|
$(call fetch_Optional,ICU,ICU_DATA_TARBALL) \
|
2023-08-18 08:30:35 -05:00
|
|
|
$(call fetch_Optional,JAVA_WEBSOCKET,JAVA_WEBSOCKET_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,JFREEREPORT,JFREEREPORT_FLOW_ENGINE_TARBALL) \
|
|
|
|
$(call fetch_Optional,JFREEREPORT,JFREEREPORT_FLUTE_TARBALL) \
|
|
|
|
$(call fetch_Optional,JFREEREPORT,JFREEREPORT_LIBBASE_TARBALL) \
|
|
|
|
$(call fetch_Optional,JFREEREPORT,JFREEREPORT_LIBFONTS_TARBALL) \
|
|
|
|
$(call fetch_Optional,JFREEREPORT,JFREEREPORT_LIBFORMULA_TARBALL) \
|
|
|
|
$(call fetch_Optional,JFREEREPORT,JFREEREPORT_LIBLAYOUT_TARBALL) \
|
|
|
|
$(call fetch_Optional,JFREEREPORT,JFREEREPORT_LIBLOADER_TARBALL) \
|
|
|
|
$(call fetch_Optional,JFREEREPORT,JFREEREPORT_LIBREPOSITORY_TARBALL) \
|
|
|
|
$(call fetch_Optional,JFREEREPORT,JFREEREPORT_LIBSERIALIZER_TARBALL) \
|
|
|
|
$(call fetch_Optional,JFREEREPORT,JFREEREPORT_LIBXML_TARBALL) \
|
|
|
|
$(call fetch_Optional,JFREEREPORT,JFREEREPORT_SAC_TARBALL) \
|
2017-09-13 15:50:14 -05:00
|
|
|
$(call fetch_Optional,LIBJPEG_TURBO,LIBJPEG_TURBO_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,LCMS2,LCMS2_TARBALL) \
|
2014-05-11 07:50:24 -05:00
|
|
|
$(call fetch_Optional,LIBATOMIC_OPS,LIBATOMIC_OPS_TARBALL) \
|
2017-01-30 11:01:18 -06:00
|
|
|
$(call fetch_Optional,LIBASSUAN,LIBASSUAN_TARBALL) \
|
2014-05-11 07:50:24 -05:00
|
|
|
$(call fetch_Optional,LIBEOT,LIBEOT_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,LIBEXTTEXTCAT,LIBEXTTEXTCAT_TARBALL) \
|
2020-01-09 08:06:07 -06:00
|
|
|
$(call fetch_Optional,LIBFFI,LIBFFI_TARBALL) \
|
2017-01-30 11:01:18 -06:00
|
|
|
$(call fetch_Optional,LIBGPGERROR,LIBGPGERROR_TARBALL) \
|
2014-05-11 07:50:24 -05:00
|
|
|
$(call fetch_Optional,LIBLANGTAG,LANGTAGREG_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,LIBLANGTAG,LIBLANGTAG_TARBALL) \
|
2018-02-20 04:38:24 -06:00
|
|
|
$(call fetch_Optional,LIBNUMBERTEXT,LIBNUMBERTEXT_TARBALL) \
|
2017-09-14 07:12:40 -05:00
|
|
|
$(call fetch_Optional,LIBPNG,LIBPNG_TARBALL) \
|
2022-05-19 14:09:51 -05:00
|
|
|
$(call fetch_Optional,LIBTIFF,LIBTIFF_TARBALL) \
|
2016-07-28 10:16:19 -05:00
|
|
|
$(call fetch_Optional,LIBTOMMATH,LIBTOMMATH_TARBALL) \
|
2022-01-13 08:59:49 -06:00
|
|
|
$(call fetch_Optional,LIBWEBP,LIBWEBP_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,LIBXML2,LIBXML_TARBALL) \
|
2018-08-05 14:18:33 -05:00
|
|
|
$(call fetch_Optional,XMLSEC,XMLSEC_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,LIBXSLT,LIBXSLT_TARBALL) \
|
|
|
|
$(call fetch_Optional,LPSOLVE,LPSOLVE_TARBALL) \
|
2018-02-21 08:51:11 -06:00
|
|
|
$(call fetch_Optional,LXML,LXML_TARBALL) \
|
2017-09-14 06:30:05 -05:00
|
|
|
$(call fetch_Optional,MARIADB_CONNECTOR_C,MARIADB_CONNECTOR_C_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,MDDS,MDDS_TARBALL) \
|
2023-10-02 07:56:04 -05:00
|
|
|
ZXCVBN_C_TARBALL \
|
2021-03-06 02:51:25 -06:00
|
|
|
$(call fetch_Optional,ZXING,ZXING_TARBALL) \
|
2015-11-27 16:54:40 -06:00
|
|
|
$(call fetch_Optional,MDNSRESPONDER,MDNSRESPONDER_TARBALL) \
|
2014-05-11 07:50:24 -05:00
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_CALADEA_TARBALL) \
|
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_CARLITO_TARBALL) \
|
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_DEJAVU_TARBALL) \
|
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_GENTIUM_TARBALL) \
|
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_LIBERATION_NARROW_TARBALL) \
|
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_LIBERATION_TARBALL) \
|
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_LINLIBERTINEG_TARBALL) \
|
2023-09-26 08:11:27 -05:00
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_NOTO_KUFI_ARABIC_TARBALL) \
|
2023-09-26 03:24:31 -05:00
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_NOTO_SANS_TARBALL) \
|
2023-09-26 03:30:54 -05:00
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_NOTO_SERIF_TARBALL) \
|
2023-09-26 03:47:19 -05:00
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_NOTO_SANS_ARABIC_TARBALL) \
|
2023-09-26 03:53:35 -05:00
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_NOTO_NASKH_ARABIC_TARBALL) \
|
2023-09-26 04:03:06 -05:00
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_NOTO_SANS_HEBREW_TARBALL) \
|
2023-09-26 04:08:00 -05:00
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_NOTO_SERIF_HEBREW_TARBALL) \
|
2023-09-26 04:28:42 -05:00
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_NOTO_SANS_ARMENIAN_TARBALL) \
|
2023-09-26 04:34:35 -05:00
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_NOTO_SERIF_ARMENIAN_TARBALL) \
|
2023-09-26 04:50:18 -05:00
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_NOTO_SANS_GEORGIAN_TARBALL) \
|
2023-09-26 04:56:53 -05:00
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_NOTO_SERIF_GEORGIAN_TARBALL) \
|
2023-09-26 05:02:59 -05:00
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_NOTO_SANS_LAO_TARBALL) \
|
2023-09-26 05:07:09 -05:00
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_NOTO_SERIF_LAO_TARBALL) \
|
2023-09-26 05:15:29 -05:00
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_NOTO_SANS_LISU_TARBALL) \
|
2017-12-16 06:55:46 -06:00
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_CULMUS_TARBALL) \
|
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_LIBRE_HEBREW_TARBALL) \
|
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_ALEF_TARBALL) \
|
2017-12-21 08:57:02 -06:00
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_AMIRI_TARBALL) \
|
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_REEM_TARBALL) \
|
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_SCHEHERAZADE_TARBALL) \
|
2024-06-29 16:18:25 -05:00
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_AGDASIMA_TARBALL) \
|
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_BACASIME_ANTIQUE_TARBALL) \
|
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_BELANOSIMA_TARBALL) \
|
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_CAPRASIMO_TARBALL) \
|
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_LUGRASIMO_TARBALL) \
|
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_LUMANOSIMO_TARBALL) \
|
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_LUNASIMA_TARBALL) \
|
2014-05-11 07:50:24 -05:00
|
|
|
$(call fetch_Optional,MSPUB,MSPUB_TARBALL) \
|
|
|
|
$(call fetch_Optional,MWAW,MWAW_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,MYTHES,MYTHES_TARBALL) \
|
|
|
|
$(call fetch_Optional,NSS,NSS_TARBALL) \
|
|
|
|
$(call fetch_Optional_pack,NUMBERTEXT_EXTENSION_PACK) \
|
2014-05-11 07:50:24 -05:00
|
|
|
$(call fetch_Optional,ODFGEN,ODFGEN_TARBALL) \
|
Turn onlineupdate into external/onlineupdate
...and update to latest Mozilla sources.
Originally, this was a non-external onlineupdate module (plus correspsonding
top-level include/onlineupdate/ directory) that apparently contained sources
originally copied from Mozilla and subsequently modified in-place (plus, mixed
in, presumably some sources that were not copied from Mozilla but were our own
inventions). To clean up this mess, this has been turned into a proper
external/onlineupdate module with a tarball containing the pristine external
Mozilla sources.
The sources for the onlineupdate-c003be8b9727672e7d30972983b375f4c200233f.tar.xz
tarball are taken, somewhat arbitrarily, from a recent
<https://github.com/mozilla/gecko-dev/commit/c003be8b9727672e7d30972983b375f4c200233f>
("Bug 1867784 - Force reflow all kids in the last column balancing reflow.
r=layout-reviewers,dholbert") trunk state, by running
`external/onlineupdate/generate-sources.sh ~/github.com/mozilla/gecko-dev` on a
Fedora 39 machine.
The layout of the tarball still mostly follows the old onlineupdate/ layout,
even if that deviates heavily from the actual source layout at
<https://github.com/mozilla/gecko-dev/>. (And some files, which apparently are
not needed, anyway, lacked sources, see the "Missing source for" in
external/onlineupdate/generate-sources.sh. And win_dirent.h/.cpp has meanwhile
been superseded by updateutils_win.h/.cpp.) Merely newly included source files
are laid out in the tarball according to the actual source layout.
Any LO-specific modifications are made via patch files (rather than modifying
the sources inline, as was done in the past): external/onlineupdate/lo.patch
contains whatever modifications are needed to adapt the functionality, while
external/onlineupdate/gtk3deprecated.patch fixes
> workdir/UnpackedTarball/onlineupdate/onlineupdate/source/update/updater/progressui_gtk.cpp:97:21: error: use of undeclared identifier 'gtk_vbox_new'; did you mean 'gtk_box_new'?
> 97 | GtkWidget* vbox = gtk_vbox_new(TRUE, 6);
> | ^~~~~~~~~~~~
> | gtk_box_new
to not use the deprecated gtk_vbox_new, which is hidden because we include
-DGTK_DISABLE_DEPRECATED in our GTK3_CFLAGS as per our configure.ac.
On Windows, the definition of __BYTE_ORDER__ etc. is needed because
workdir/UnpackedTarball/onlineupdate/include/mozilla/ says "Our supported
compilers provide architecture-independent macros for this", but MSVC doesn't
actually, so define here what would implicitly be defined by GCC. Similarly, on
Windows -U_WIN32_WINNT is needed to undo -D_WIN32_WINNT=0x0601 in
solenv/gbuild/platform/windows.mk, which would cause
> workdir\UnpackedTarball\onlineupdate\include\mozilla/WinHeaderOnlyUtils.h(537): error C2065: 'FILE_ID_INFO': undeclared identifier
etc., despite the #include <windws.h> there.
Curiously, the original gb_CustomTarget_CustomTarget,onlineupdate/generated from
onlineupdate/CustomTarget_generated.mk had to be renamed to
gb_CustomTarget_CustomTarget,external/onlineupdate/generated when the file was
moved to external/onlineupdate/CustomTarget_generated.mk, as otherwise a
top-level `make CustomTarget_onlineupdate/generated` would have failed with "No
rule to make target..." Also, as there is no gb_CustomTarget_use_unpacked, its
effect has been poorly mimicked for now in
external/onlineupdate/CustomTarget_generated.mk.
Similarly, as there is no gb_WinResTarget_use_unpacked, its effect has been
poorly mimicked for now in external/onlineupdate/WinResTarget_updater.mk.
The original onlineupdate/workben/test_dialog.cxx, which is actually code
written by us, has been moved to external/onlineupdate/workben/test_dialog.cxx.
The original onlineupdate/qa/ sources (which were apparently not used during the
build) have been preserved for now as external/onlineupdate/qa/, for
documentation purposes.
The original onlineupdate/astyle.options (which was apparently not used during
the build) has been removed.
Change-Id: I5ea606202e7837269e7b128e45af2f0b8c277f9e
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/160492
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <stephan.bergmann@allotropia.de>
2023-12-08 09:39:43 -06:00
|
|
|
$(call fetch_Optional,ONLINEUPDATE,ONLINEUPDATE_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,OPENLDAP,OPENLDAP_TARBALL) \
|
|
|
|
$(call fetch_Optional,OPENSSL,OPENSSL_TARBALL) \
|
|
|
|
$(call fetch_Optional,ORCUS,ORCUS_TARBALL) \
|
2014-06-27 04:07:06 -05:00
|
|
|
$(call fetch_Optional,PAGEMAKER,PAGEMAKER_TARBALL) \
|
2017-02-10 06:27:07 -06:00
|
|
|
$(call fetch_Optional,PDFIUM,PDFIUM_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,POPPLER,POPPLER_TARBALL) \
|
2021-05-11 08:22:27 -05:00
|
|
|
$(call fetch_Optional,POPPLER,POPPLER_DATA_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,POSTGRESQL,POSTGRESQL_TARBALL) \
|
|
|
|
$(call fetch_Optional,PYTHON,PYTHON_TARBALL) \
|
2017-08-27 14:10:14 -05:00
|
|
|
$(call fetch_Optional,QXP,QXP_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,REDLAND,RAPTOR_TARBALL) \
|
|
|
|
$(call fetch_Optional,REDLAND,RASQAL_TARBALL) \
|
|
|
|
$(call fetch_Optional,REDLAND,REDLAND_TARBALL) \
|
2014-05-24 01:39:54 -05:00
|
|
|
$(call fetch_Optional,REVENGE,REVENGE_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,RHINO,RHINO_TARBALL) \
|
2019-10-12 09:24:03 -05:00
|
|
|
$(call fetch_Optional,SKIA,SKIA_TARBALL) \
|
2016-08-10 05:43:56 -05:00
|
|
|
$(call fetch_Optional,STAROFFICE,STAROFFICE_TARBALL) \
|
2017-12-22 11:46:12 -06:00
|
|
|
$(if $(filter WNT,$(OS)),TWAIN_DSM_TARBALL) \
|
2014-05-11 07:50:24 -05:00
|
|
|
$(call fetch_Optional,VISIO,VISIO_TARBALL) \
|
2014-05-11 07:42:44 -05:00
|
|
|
$(call fetch_Optional,WPD,WPD_TARBALL) \
|
|
|
|
$(call fetch_Optional,WPG,WPG_TARBALL) \
|
|
|
|
$(call fetch_Optional,WPS,WPS_TARBALL) \
|
|
|
|
$(call fetch_Optional,XSLTML,XSLTML_TARBALL) \
|
|
|
|
$(call fetch_Optional,ZLIB,ZLIB_TARBALL) \
|
2016-06-22 11:02:29 -05:00
|
|
|
$(call fetch_Optional,ZMF,ZMF_TARBALL) \
|
2017-04-28 05:41:44 -05:00
|
|
|
,$(call fetch_Download_item,https://dev-www.libreoffice.org/src,$(item)))
|
2012-11-21 15:36:34 -06:00
|
|
|
$(foreach item, \
|
2018-05-28 09:54:41 -05:00
|
|
|
$(call fetch_Optional,OPENSYMBOL,OPENSYMBOL_TTF) \
|
2016-06-23 06:20:58 -05:00
|
|
|
$(call fetch_Optional,ODFVALIDATOR,ODFVALIDATOR_JAR) \
|
2016-07-21 11:26:12 -05:00
|
|
|
$(call fetch_Optional,OFFICEOTRON,OFFICEOTRON_JAR) \
|
2017-04-28 05:41:44 -05:00
|
|
|
,$(call fetch_Download_item,https://dev-www.libreoffice.org/extern,$(item)))
|
2023-07-20 09:28:06 -05:00
|
|
|
$(foreach item, \
|
|
|
|
$(call fetch_Optional,MORE_FONTS,FONT_GMX_TARBALL) \
|
2023-08-08 02:51:52 -05:00
|
|
|
,$(call fetch_Download_item,https://repos.libreoffice.gob.mx/src,$(item)))
|
2012-11-29 03:04:31 -06:00
|
|
|
@mkdir -p $(dir $@) && touch $@
|
2017-06-24 02:29:04 -05:00
|
|
|
@mkdir -p $(dir $@)/Executable
|
2012-11-21 15:36:34 -06:00
|
|
|
|
|
|
|
# vim: set noet sw=4 ts=4:
|