Radix cross Linux 3pp sources

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

343 Commits   0 Branches   0 Tags
c9b87548 (kx 2023-04-06 16:08:32 +0300  1) #
c9b87548 (kx 2023-04-06 16:08:32 +0300  2) # Download: https://www.gnu.org/prep/ftp.html
c9b87548 (kx 2023-04-06 16:08:32 +0300  3) #
c9b87548 (kx 2023-04-06 16:08:32 +0300  4) # You can use the generic url http://ftpmirror.gnu.org 
c9b87548 (kx 2023-04-06 16:08:32 +0300  5) # to automatically choose a nearby and up-to-date mirror.
c9b87548 (kx 2023-04-06 16:08:32 +0300  6) #
c9b87548 (kx 2023-04-06 16:08:32 +0300  7) # original url: https://ftp.gnu.org/gnu/gmp/gmp-$(version)
c9b87548 (kx 2023-04-06 16:08:32 +0300  8) #
c9b87548 (kx 2023-04-06 16:08:32 +0300  9) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 10) url         = https://ftp.gnu.org/gnu/gmp
c9b87548 (kx 2023-04-06 16:08:32 +0300 11) 
9e2701d3 (kx 2024-02-24 13:51:31 +0300 12) versions    = 6.1.0 6.1.1 6.1.2 6.2.0 6.2.1 6.3.0
c9b87548 (kx 2023-04-06 16:08:32 +0300 13) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 14) suffix      = tar.xz
c9b87548 (kx 2023-04-06 16:08:32 +0300 15) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 16) tarballs    = $(addsuffix .$(suffix), $(addprefix gmp-, $(versions)))
c9b87548 (kx 2023-04-06 16:08:32 +0300 17) sha1s       = $(addsuffix .sha1sum, $(tarballs))
c9b87548 (kx 2023-04-06 16:08:32 +0300 18) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 19) all: $(tarballs) $(sha1s)
c9b87548 (kx 2023-04-06 16:08:32 +0300 20) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 21) .PHONY: downloads_clean
c9b87548 (kx 2023-04-06 16:08:32 +0300 22) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 23) $(tarballs):
c9b87548 (kx 2023-04-06 16:08:32 +0300 24) 	@echo -e "\n======= Downloading source tarballs =======\n"
c9b87548 (kx 2023-04-06 16:08:32 +0300 25) 	@for tarball in $(tarballs) ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300 26) 	  wget -N $(url)/$$tarball ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 27) 	done
c9b87548 (kx 2023-04-06 16:08:32 +0300 28) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 29) $(filter %.$(suffix).sha1sum,$(sha1s)): %.$(suffix).sha1sum : %.$(suffix)
c9b87548 (kx 2023-04-06 16:08:32 +0300 30) 	@for tarball in $< ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300 31) 	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 32) 	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 33) 	done
c9b87548 (kx 2023-04-06 16:08:32 +0300 34) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 35) $(filter %.tar.bz2.sha1sum,$(sha1s)): %.tar.bz2.sha1sum : %.tar.bz2
c9b87548 (kx 2023-04-06 16:08:32 +0300 36) 	@for tarball in $< ; do \
c9b87548 (kx 2023-04-06 16:08:32 +0300 37) 	  echo -e "\n======= Calculation the '$$tarball' sha1sum =======\n" ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 38) 	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
c9b87548 (kx 2023-04-06 16:08:32 +0300 39) 	done
c9b87548 (kx 2023-04-06 16:08:32 +0300 40) 
c9b87548 (kx 2023-04-06 16:08:32 +0300 41) downloads_clean:
c9b87548 (kx 2023-04-06 16:08:32 +0300 42) 	@rm -rf $(tarballs) $(sha1s)