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