173 kx
173 kx COMPONENT_TARGETS = $(HARDWARE_NOARCH)
173 kx
173 kx
173 kx include ../../../../../build-system/constants.mk
173 kx
173 kx
173 kx url = $(DOWNLOAD_SERVER)/sources/packages/x/mozilla-firefox
173 kx
383 kx versions = 118.0.2 122.0.1
173 kx pkgname = firefox
173 kx suffix = source.tar.xz
173 kx
173 kx tarballs = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
173 kx sha1s = $(addsuffix .sha1sum, $(tarballs))
173 kx
383 kx patches = $(CURDIR)/patches/firefox-118.0.2-riscv64gc.patch
383 kx patches += $(CURDIR)/patches/firefox-118.0.2-x86.patch
173 kx
374 kx patches += $(CURDIR)/patches/firefox-122.0.1-riscv64gc.patch
374 kx patches += $(CURDIR)/patches/firefox-122.0.1-x86.patch
374 kx
173 kx .NOTPARALLEL: $(patches)
173 kx
173 kx
173 kx BUILD_TARGETS = $(tarballs) $(sha1s) $(patches)
173 kx
173 kx
173 kx include ../../../../../build-system/core.mk
173 kx
173 kx
173 kx .PHONY: download_clean
173 kx
173 kx
173 kx $(tarballs):
173 kx @echo -e "\n======= Downloading source tarballs =======" ; \
173 kx for tarball in $(tarballs) ; do \
173 kx echo "$(url)/$$tarball" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & \
173 kx done ; wait
173 kx
173 kx $(sha1s): $(tarballs)
173 kx @for sha in $@ ; do \
173 kx echo -e "\n======= Downloading '$$sha' signature =======\n" ; \
173 kx echo "$(url)/$$sha" | xargs -n 1 -P 100 wget $(WGET_OPTIONS) - & wait %1 ; \
173 kx touch $$sha ; \
173 kx echo -e "\n======= Check the '$$sha' sha1sum =======\n" ; \
173 kx sha1sum --check $$sha ; ret="$$?" ; \
173 kx if [ "$$ret" == "1" ]; then \
173 kx echo -e "\n======= ERROR: Bad '$$sha' sha1sum =======\n" ; \
173 kx exit 1 ; \
173 kx fi ; \
173 kx done
173 kx
173 kx $(patches): $(sha1s)
173 kx @echo -e "\n======= Create Patches =======\n" ; \
383 kx ( cd create-118.0.2-riscv64gc-patch ; ./create.patch.sh ) ; \
383 kx ( cd create-118.0.2-x86-patch ; ./create.patch.sh ) ; \
374 kx ( cd create-122.0.1-riscv64gc-patch ; ./create.patch.sh ) ; \
374 kx ( cd create-122.0.1-x86-patch ; ./create.patch.sh ) ; \
173 kx echo -e "\n"
173 kx
173 kx download_clean:
173 kx @rm -f $(tarballs) $(sha1s) $(patches)