Radix cross Linux 3pp sources

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

343 Commits   0 Branches   0 Tags
author: kx <kx@radix.pro> 2023-04-09 03:24:10 +0300 committer: kx <kx@radix.pro> 2023-04-09 03:24:10 +0300 commit: 3dd1914515dc5c714451bc4148f0abb51672ed06 parent: c0eee091446a07e56576b7d855dd09f0da9968c8
Commit Summary:
libraries
Diffstat:
1 file changed, 38 insertions, 0 deletions
diff --git a/packages/l/boost/Makefile b/packages/l/boost/Makefile
new file mode 100644
index 0000000..fc2622e
--- /dev/null
+++ b/packages/l/boost/Makefile
@@ -0,0 +1,48 @@
+#
+# Project Home:
+# ============
+# https://www.boost.org
+# https://www.boost.org/users/history/version_1_57_0.html
+#
+# Downloads:
+# =========
+# https://downloads.sourceforge.net/project/boost/boost
+#
+
+url         = https://downloads.sourceforge.net/project/boost/boost
+
+versions    = 1.57.0 1.58.0 1.59.0 1.60.0 1.61.0 1.77.0 1.78.0
+
+pkgname     = boost
+suffix      = tar.bz2
+
+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 tarball in $(tarballs) ; do \
+	  version=`echo $$tarball | sed 's/\([a-zA-Z-]*\)\(.*\)\(.tar.bz2\)/\2/'` ; \
+	  archdir=$(pkgname)_`echo $$version | sed 's,\.,_,g'` ; \
+	  archive=$$archdir.$(suffix) ; \
+	  wget -N $(url)/$$version/$$archive ; \
+	  tar xjf $$archive ; \
+	  rm -f $$archive ; \
+	  mv $$archdir $(pkgname)-$$version ; \
+	  tar cjf $$tarball $(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)