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