diff options
author | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2019-12-14 04:28:47 +0000 |
---|---|---|
committer | Mohammad Akhlaghi <mohammad@akhlaghi.org> | 2019-12-14 04:30:43 +0000 |
commit | ac80e3bc163a177c5b33ad2a1b8ab9f6f09becd8 (patch) | |
tree | 929457b77d1634b8b3caa9955d454f9550350b3d /reproduce/software/make | |
parent | 8d65a9effe9fbd94cb0141e8a5c511ad8d6cda9d (diff) |
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).
Diffstat (limited to 'reproduce/software/make')
-rw-r--r-- | reproduce/software/make/high-level.mk | 14 |
1 files changed, 14 insertions, 0 deletions
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 |