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