COMPONENT_TARGETS = $(HARDWARE_NOARCH)
include ../../../../build-system/constants.mk
url = $(DOWNLOAD_SERVER)/sources/packages/x/mozjs
versions = 102.15.0
pkgname = firefox
suffix = esr.source.tar.xz
tarballs = $(addsuffix $(suffix), $(addprefix $(pkgname)-, $(versions)))
sha1s = $(addsuffix .sha1sum, $(tarballs))
patches = $(CURDIR)/patches/firefox-102.15.0-copy-headers.patch
patches += $(CURDIR)/patches/firefox-102.15.0-emitter.patch
patches += $(CURDIR)/patches/firefox-102.15.0-icu-sources.patch
patches += $(CURDIR)/patches/firefox-102.15.0-init.patch
patches += $(CURDIR)/patches/firefox-102.15.0-remove-sloppy-m4.patch
patches += $(CURDIR)/patches/firefox-102.15.0-riscv64gc.patch
patches += $(CURDIR)/patches/firefox-102.15.0-skip-failing-tests.patch
patches += $(CURDIR)/patches/firefox-102.15.0-soname.patch
patches += $(CURDIR)/patches/firefox-102.15.0-spidermonkey-checks.patch
patches += $(CURDIR)/patches/firefox-102.15.0-tests.patch
patches += $(CURDIR)/patches/firefox-102.15.0-x86.patch
.NOTPARALLEL: $(patches)
BUILD_TARGETS = $(tarballs) $(sha1s) $(patches)
include ../../../../build-system/core.mk
.PHONY: download_clean
$(tarballs):
@echo -e "\n======= Downloading source tarballs =======" ; \
for tarball in $(tarballs) ; do \
echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & \
done ; wait
$(sha1s): $(tarballs)
@for sha in $@ ; do \
echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & wait %1 ; \
touch $$sha ; \
echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
sha1sum --check $$sha ; ret="$$?" ; \
if [ "$$ret" == "1" ]; then \
echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
exit 1 ; \
fi ; \
done
$(patches): $(sha1s)
@echo -e "\n======= Create Patches =======\n" ; \
( cd create-102.15.0-copy-headers-patch ; ./create.patch.sh ) ; \
( cd create-102.15.0-emitter-patch ; ./create.patch.sh ) ; \
( cd create-102.15.0-icu-sources-patch ; ./create.patch.sh ) ; \
( cd create-102.15.0-init-patch ; ./create.patch.sh ) ; \
( cd create-102.15.0-remove-sloppy-m4-patch ; ./create.patch.sh ) ; \
( cd create-102.15.0-riscv64gc-patch ; ./create.patch.sh ) ; \
( cd create-102.15.0-skip-failing-tests-patch ; ./create.patch.sh ) ; \
( cd create-102.15.0-soname-patch ; ./create.patch.sh ) ; \
( cd create-102.15.0-spidermonkey-checks-patch ; ./create.patch.sh ) ; \
( cd create-102.15.0-tests-patch ; ./create.patch.sh ) ; \
( cd create-102.15.0-x86-patch ; ./create.patch.sh ) ; \
echo -e "\n"
download_clean:
@rm -f $(tarballs) $(sha1s) $(patches)