Radix cross Linux 3pp sources

RcL sources – is a tree of Third Party and Radix source tarballs

423 Commits   0 Branches   0 Tags
#
# Project Home:
# ============
# http://www.ferzkopp.net/wordpress/2016/01/02/sdl_gfx-sdl2_gfx/
#
# Downloads:
# =========
# http://www.ferzkopp.net/Software/SDL2_gfx/SDL2_gfx-1.0.4.tar.gz
# https://sourceforge.net/projects/sdl2gfx/
#

url         = http://www.ferzkopp.net/Software/SDL2_gfx

versions    = 1.0.4

pkgname     = SDL2_gfx
suffix      = tar.gz

tarballs    = $(addsuffix .$(suffix), $(addprefix $(pkgname)-, $(versions)))
sha1s       = $(addsuffix .sha1sum, $(tarballs))


all: $(tarballs) $(sha1s)

.PHONY: downloads_clean

$(tarballs):
	@echo -e "\n======= Downloading source tarballs =======\n"
	@for version in $(versions) ; do \
	  wget -N $(url)/$(pkgname)-$$version.$(suffix) ; \
	  tar xzf $(pkgname)-$$version.$(suffix) ; \
	  ( cd $(pkgname)-$$version ; \
	    rm -rf autom4te.cache ; \
	    find . -type f -exec chmod a-x {} \; ; \
	    chmod a+x autogen.sh config.guess config.sub configure depcomp install-sh ltmain.sh missing ; \
	    chmod a+x test/autogen.sh test/config.guess test/config.sub test/configure test/install-sh ; \
	    cat SDL2_gfxPrimitives.c | tr -d '\r' > SDL2_gfxPrimitives.c.unix ; \
	    mv SDL2_gfxPrimitives.c{.unix,} ; \
	    cat test/TestGfx.c | tr -d '\r' > test/TestGfx.c.unix ; \
	    mv test/TestGfx.c{.unix,} ; \
	  ) ; \
	  tar czf $(pkgname)-$$version.$(suffix) $(pkgname)-$$version ; \
	  rm -rf $(pkgname)-$$version ; \
	done

$(sha1s): %.$(suffix).sha1sum : %.$(suffix)
	@for tarball in $< ; do \
	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
	done

downloads_clean:
	@rm -rf $(tarballs) $(sha1s)