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