From ac80e3bc163a177c5b33ad2a1b8ab9f6f09becd8 Mon Sep 17 00:00:00 2001 From: Mohammad Akhlaghi Date: Sat, 14 Dec 2019 04:28:47 +0000 Subject: Core R package is now in template With this commit, we now have the core R interpretter within the template. We should later include instructions to install R packages (possibly in a separate top-level Makefile like Python). --- reproduce/software/make/high-level.mk | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'reproduce/software/make') diff --git a/reproduce/software/make/high-level.mk b/reproduce/software/make/high-level.mk index 56af4b9..f6c2f76 100644 --- a/reproduce/software/make/high-level.mk +++ b/reproduce/software/make/high-level.mk @@ -171,6 +171,7 @@ tarballs = $(foreach t, apachelog4cxx-$(apachelog4cxx-version).tar.lz \ openmpi-$(openmpi-version).tar.gz \ openssh-$(openssh-version).tar.gz \ pixman-$(pixman-version).tar.gz \ + R-$(R-version).tar.gz \ scamp-$(scamp-version).tar.lz \ scons-$(scons-version).tar.gz \ sextractor-$(sextractor-version).tar.lz \ @@ -267,6 +268,9 @@ $(tarballs): $(tdir)/%: | $(lockdir) w=https://download.open-mpi.org/release/open-mpi/v$$majorver/$* elif [ $$n = openssh ]; then c=$(openssh-checksum); w=https://artfiles.org/openbsd/OpenSSH/portable elif [ $$n = pixman ]; then c=$(pixman-checksum); w=https://www.cairographics.org/releases + elif [ $$n = R ]; then c=$(R-checksum); + majver=$$(echo $(R-version) | sed -e's/\./ /g' | awk '{print $$1}') + w=https://cran.r-project.org/src/base/R-$$majver elif [ $$n = rpcsvc ]; then c=$(rpcsvc-proto-checksum); w=https://github.com/thkukuk/rpcsvc-proto/releases/download/v$(rpcsvc-proto-version) elif [ $$n = scamp ]; then c=$(scamp-checksum); w=http://akhlaghi.org/reproduce-software elif [ $$n = scons ]; then @@ -1024,6 +1028,16 @@ $(ibidir)/netpbm: $(ibidir)/unzip \ && rm -rf $$unpackdir \ && echo "Netpbm $(netpbm-version)" > $@ +# R programming language +$(ibidir)/R: $(ibidir)/libpng \ + $(ibidir)/libjpeg \ + $(ibidir)/libtiff \ + | $(tdir)/R-$(R-version).tar.gz + export R_SHELL=$(SHELL); \ + $(call gbuild, R-$(R-version), static, \ + --without-x --with-readline) \ + && echo "R $(R-version)" > $@ + # SCAMP documentation says ATLAS is a mandatory prerequisite for using # SCAMP. We have ATLAS into the project but there are some problems with the # libraries that are not yet solved. However, we tried to install it with -- cgit v1.2.1