Sources

The Tree of Radix and Third Party Sources

1388 Commits   0 Branches   11 Tags
author: kx <kx@radix.pro> 2013-04-27 00:46:47 +0400 committer: kx <kx@radix.pro> 2013-04-27 00:46:47 +0400 commit: 65cdeb38a28c1a2a28e2af6ba20502d8f7bab46e parent: 2fcbaf3c8967eb70062b7ecc9766b2c6c92ea510
Commit Summary:
Splited GCC versions.
Diffstat:
3 files changed, 92 insertions, 26 deletions
diff --git a/GNU/gcc/Makefile b/GNU/gcc/Makefile
index 3c0b3d3..1daaddc 100644
--- a/GNU/gcc/Makefile
+++ b/GNU/gcc/Makefile
@@ -9,15 +9,12 @@
 
 url         = http://ftpmirror.gnu.org/gcc
 
-keyring     = ../gnu-keyring.gpg
+versions    = 2.95.3
 
-versions    = 4.5.1 4.7.2
-
-tarballs    = $(addsuffix .tar.bz2, $(addprefix gcc-, $(versions)))
-signatures  = $(addsuffix .sig, $(tarballs))
+tarballs    = $(addsuffix .tar.gz, $(addprefix gcc-, $(versions)))
 sha1s       = $(addsuffix .sha1sum, $(tarballs))
 
-all: $(keyring) $(signatures) $(sha1s)
+all: $(keyring) $(sha1s)
 
 .PHONY: downloads_clean
 
@@ -27,33 +24,14 @@ $(keyring):
 $(tarballs):
 	@echo -e "\n======= Downloading source tarballs =======\n"
 	@for version in $(versions) ; do \
-	  wget -N $(url)/gcc-$$version/gcc-$$version.tar.bz2 ; \
-	done
-
-$(signatures): %.tar.bz2.sig : %.tar.bz2
-	@for signature in $@ ; do \
-	  version=`echo $$signature | sed 's/\(^[a-zA-Z-]*\)\([0-9][.0-9]*[.0-9]*\)\([\.].*\)/\2/'` ; \
-	  if [ "$$version" \> "4.5.1" ]; then \
-	    key=../keyring-C3C45C06.gpg ; \
-	  else \
-	    key=$(keyring) ; \
-	  fi ; \
-	  echo -e "\n======= Downloading '$$signature' signature =======\n" ; \
-	  wget -N $(url)/gcc-$$version/$$signature ; \
-	  touch $$signature ; \
-	  echo -e "======= Verification of '$$signature' signature =======\n" ; \
-	  gpg --verify --keyring $$key $$signature ; ret="$$?" ; \
-	  if [ "$$ret" == "1" ]; then \
-	    echo -e "\n======= ERROR: Bad '$$signature' Signature =======\n" ; \
-	    exit 1 ; \
-	  fi ; \
+	  wget -N $(url)/gcc-$$version.tar.gz ; \
 	done
 
-$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
+$(sha1s): %.tar.gz.sha1sum : %.tar.gz
 	@for tarball in $< ; do \
 	  echo -e "\n======= Calculation '$$tarball' sha1sum =======\n" ; \
 	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
 	done
 
 downloads_clean:
-	@rm -rf $(tarballs) $(signatures) $(sha1s)
+	@rm -rf $(tarballs) $(sha1s)
diff --git a/GNU/gcc/gcc-4.5.1/Makefile b/GNU/gcc/gcc-4.5.1/Makefile
new file mode 100644
index 0000000..176f1ef
--- /dev/null
+++ b/GNU/gcc/gcc-4.5.1/Makefile
@@ -0,0 +1,54 @@
+#
+# Download: http://www.gnu.org/prep/ftp.html
+#
+# You can use the generic url http://ftpmirror.gnu.org 
+# to automatically choose a nearby and up-to-date mirror.
+#
+# original url: http://ftp.gnu.org/gnu/gcc/gcc-$(version)
+#
+
+url         = http://ftpmirror.gnu.org/gcc
+
+keyring     = ../../gnu-keyring.gpg
+
+versions    = 4.5.1
+
+tarballs    = $(addsuffix .tar.bz2, $(addprefix gcc-, $(versions)))
+signatures  = $(addsuffix .sig, $(tarballs))
+sha1s       = $(addsuffix .sha1sum, $(tarballs))
+
+all: $(keyring) $(signatures) $(sha1s)
+
+.PHONY: downloads_clean
+
+$(keyring):
+	@cd ../.. ; $(MAKE) all
+
+$(tarballs):
+	@echo -e "\n======= Downloading source tarballs =======\n"
+	@for version in $(versions) ; do \
+	  wget -N $(url)/gcc-$$version/gcc-$$version.tar.bz2 ; \
+	done
+
+$(signatures): %.tar.bz2.sig : %.tar.bz2
+	@for signature in $@ ; do \
+	  version=`echo $$signature | sed 's/\(^[a-zA-Z-]*\)\([0-9][.0-9]*[.0-9]*\)\([\.].*\)/\2/'` ; \
+	  echo -e "\n======= Downloading '$$signature' signature =======\n" ; \
+	  wget -N $(url)/gcc-$$version/$$signature ; \
+	  touch $$signature ; \
+	  echo -e "======= Verification of '$$signature' signature =======\n" ; \
+	  gpg --verify --keyring $(keyring) $$signature ; ret="$$?" ; \
+	  if [ "$$ret" == "1" ]; then \
+	    echo -e "\n======= ERROR: Bad '$$signature' Signature =======\n" ; \
+	    exit 1 ; \
+	  fi ; \
+	done
+
+$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
+	@for tarball in $< ; do \
+	  echo -e "\n======= Calculation '$$tarball' sha1sum =======\n" ; \
+	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+	done
+
+downloads_clean:
+	@rm -rf $(tarballs) $(signatures) $(sha1s)
diff --git a/GNU/gcc/gcc-4.7.2/Makefile b/GNU/gcc/gcc-4.7.2/Makefile
new file mode 100644
index 0000000..b407759
--- /dev/null
+++ b/GNU/gcc/gcc-4.7.2/Makefile
@@ -0,0 +1,54 @@
+#
+# Download: http://www.gnu.org/prep/ftp.html
+#
+# You can use the generic url http://ftpmirror.gnu.org 
+# to automatically choose a nearby and up-to-date mirror.
+#
+# original url: http://ftp.gnu.org/gnu/gcc/gcc-$(version)
+#
+
+url         = http://ftpmirror.gnu.org/gcc
+
+keyring     = ../../keyring-C3C45C06.gpg
+
+versions    = 4.7.2
+
+tarballs    = $(addsuffix .tar.bz2, $(addprefix gcc-, $(versions)))
+signatures  = $(addsuffix .sig, $(tarballs))
+sha1s       = $(addsuffix .sha1sum, $(tarballs))
+
+all: $(keyring) $(signatures) $(sha1s)
+
+.PHONY: downloads_clean
+
+$(keyring):
+	@cd ../.. ; $(MAKE) all
+
+$(tarballs):
+	@echo -e "\n======= Downloading source tarballs =======\n"
+	@for version in $(versions) ; do \
+	  wget -N $(url)/gcc-$$version/gcc-$$version.tar.bz2 ; \
+	done
+
+$(signatures): %.tar.bz2.sig : %.tar.bz2
+	@for signature in $@ ; do \
+	  version=`echo $$signature | sed 's/\(^[a-zA-Z-]*\)\([0-9][.0-9]*[.0-9]*\)\([\.].*\)/\2/'` ; \
+	  echo -e "\n======= Downloading '$$signature' signature =======\n" ; \
+	  wget -N $(url)/gcc-$$version/$$signature ; \
+	  touch $$signature ; \
+	  echo -e "======= Verification of '$$signature' signature =======\n" ; \
+	  gpg --verify --keyring $(keyring) $$signature ; ret="$$?" ; \
+	  if [ "$$ret" == "1" ]; then \
+	    echo -e "\n======= ERROR: Bad '$$signature' Signature =======\n" ; \
+	    exit 1 ; \
+	  fi ; \
+	done
+
+$(sha1s): %.tar.bz2.sha1sum : %.tar.bz2
+	@for tarball in $< ; do \
+	  echo -e "\n======= Calculation '$$tarball' sha1sum =======\n" ; \
+	  sha1sum --binary $$tarball > $$tarball.sha1sum ; \
+	done
+
+downloads_clean:
+	@rm -rf $(tarballs) $(signatures) $(sha1s)