aboutsummaryrefslogtreecommitdiff
path: root/iraf-x11/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'iraf-x11/build.sh')
-rw-r--r--iraf-x11/build.sh19
1 files changed, 19 insertions, 0 deletions
diff --git a/iraf-x11/build.sh b/iraf-x11/build.sh
new file mode 100644
index 0000000..02f6592
--- /dev/null
+++ b/iraf-x11/build.sh
@@ -0,0 +1,19 @@
+# Drop extraneous conda-set environment variables
+unset ARCH CFLAGS CXXFLAGS LDFLAGS MACOSX_DEPLOYMENT_TARGET
+
+# Complement build script
+export TERM=xterm
+
+# Tell the build script where IRAF is (& it will then set up its environment)
+export iraf=$PREFIX/iraf/
+
+# Execute build
+printenv > build_log 2>&1
+./build 32 >> build_log 2>&1
+
+# Copy files into PREFIX
+mkdir -p $PREFIX/{bin,include,lib,share}
+./install.bin $PREFIX
+./install.lib $PREFIX
+./install.man $PREFIX/share
+