summaryrefslogtreecommitdiff
path: root/sextractor-generic/build.sh
diff options
context:
space:
mode:
Diffstat (limited to 'sextractor-generic/build.sh')
-rw-r--r--sextractor-generic/build.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/sextractor-generic/build.sh b/sextractor-generic/build.sh
new file mode 100644
index 0000000..59c06c0
--- /dev/null
+++ b/sextractor-generic/build.sh
@@ -0,0 +1,26 @@
+
+ATLAS=/usr
+LIBDIR=lib
+case $(uname) in
+Linux)
+if [[ $(uname -m) == *x86_64* ]]; then
+LIBDIR=lib64/atlas
+else
+LIBDIR=lib/atlas
+fi
+;;
+Darwin)
+ATLAS=/usr/local/atlas
+;;
+*)
+;;
+esac
+
+./configure --prefix=$PREFIX \
+--with-fftw-libdir=$PREFIX/lib \
+--with-fftw-incdir=$PREFIX/include \
+--with-atlas-libdir="$ATLAS/$LIBDIR" \
+--with-atlas-incdir="$ATLAS/include"
+
+make -j ${CPU_COUNT}
+make install \ No newline at end of file