summaryrefslogtreecommitdiff
path: root/etc/jwstdp-latest/pkgs
diff options
context:
space:
mode:
Diffstat (limited to 'etc/jwstdp-latest/pkgs')
-rw-r--r--etc/jwstdp-latest/pkgs/000-jwst-depends.sh6
-rw-r--r--etc/jwstdp-latest/pkgs/001-cfitsio.sh15
-rw-r--r--etc/jwstdp-latest/pkgs/002-fitsverify.sh16
3 files changed, 37 insertions, 0 deletions
diff --git a/etc/jwstdp-latest/pkgs/000-jwst-depends.sh b/etc/jwstdp-latest/pkgs/000-jwst-depends.sh
new file mode 100644
index 0000000..88cc61e
--- /dev/null
+++ b/etc/jwstdp-latest/pkgs/000-jwst-depends.sh
@@ -0,0 +1,6 @@
+#!/bin/bash
+deps=(
+ freetds
+ unixodbc
+)
+sudo yum install -y ${deps[@]}
diff --git a/etc/jwstdp-latest/pkgs/001-cfitsio.sh b/etc/jwstdp-latest/pkgs/001-cfitsio.sh
new file mode 100644
index 0000000..719b542
--- /dev/null
+++ b/etc/jwstdp-latest/pkgs/001-cfitsio.sh
@@ -0,0 +1,15 @@
+#!/bin/bash -e
+
+name=cfitsio
+version=3440
+url=https://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/${name}${version}.tar.gz
+
+sudo yum install -y libcurl-devel
+curl -LO "${url}"
+tar xf "$(basename ${url})"
+
+pushd "${name}" &>/dev/null
+./configure --prefix="${PREFIX}" --enable-reentrant
+make shared
+make install
+popd &>/dev/null
diff --git a/etc/jwstdp-latest/pkgs/002-fitsverify.sh b/etc/jwstdp-latest/pkgs/002-fitsverify.sh
new file mode 100644
index 0000000..3469f3d
--- /dev/null
+++ b/etc/jwstdp-latest/pkgs/002-fitsverify.sh
@@ -0,0 +1,16 @@
+#!/bin/bash -e
+
+name=fitsverify
+version=4.19
+url=https://heasarc.gsfc.nasa.gov/docs/software/ftools/${name}/${name}-${version}.tar.gz
+
+curl -LO "${url}"
+tar xf "$(basename ${url})"
+
+pushd "${name}" &>/dev/null
+gcc -o ${name} ftverify.c fvrf_data.c fvrf_file.c fvrf_head.c \
+ fvrf_key.c fvrf_misc.c -DSTANDALONE -I${TOOLCHAIN_INCLUDE} \
+ -L${TOOLCHAIN_LIB} -Wl,-rpath=${TOOLCHAIN_LIB} -lcfitsio -lm -lnsl
+
+install -m 755 -t "${TOOLCHAIN_BIN}" ${name}
+popd &>/dev/null