summaryrefslogtreecommitdiff
path: root/largepacks/sextractor/build.sh
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2016-04-03 00:17:13 -0400
committerJoseph Hunkeler <jhunk@stsci.edu>2016-04-19 11:17:28 -0400
commit25d4d41850ffeb0ba15f60b4760f9f98e6837b5b (patch)
tree20f01a9e236295d8765852d3a65c8c936903da6a /largepacks/sextractor/build.sh
parentaacc9ee0d6b4b02d95a7f725d598a6a8a6d0c599 (diff)
downloadastroconda-dev-25d4d41850ffeb0ba15f60b4760f9f98e6837b5b.tar.gz
Move large packages and metapackages into subdirs
Diffstat (limited to 'largepacks/sextractor/build.sh')
-rw-r--r--largepacks/sextractor/build.sh34
1 files changed, 34 insertions, 0 deletions
diff --git a/largepacks/sextractor/build.sh b/largepacks/sextractor/build.sh
new file mode 100644
index 0000000..937f3d9
--- /dev/null
+++ b/largepacks/sextractor/build.sh
@@ -0,0 +1,34 @@
+
+ATLAS=/usr
+LIBDIR=lib
+OPTIONS=
+case $(uname) in
+Linux)
+if [[ $(uname -m) == *x86_64* ]]; then
+LIBDIR=lib64/atlas
+else
+LIBDIR=lib/atlas
+fi
+export OPTIONS="--with-atlas-libdir=$PREFIX/lib --with-atlas-incdir=$PREFIX/include"
+;;
+Darwin)
+curl https://gist.githubusercontent.com/mwcraig/ae66eadcd0f266e7138f/raw/f4625508784e75c7b3ce11d8a578589425533282/acx_accelerate.m4.diff | patch -p1 -i -
+curl https://gist.githubusercontent.com/mwcraig/4f61431f177b6cc0085a/raw/bf4d29a7a51ccec1ef224006fd10ac260a31c37c/configure.ac.diff | patch -p1 -i -
+curl https://gist.githubusercontent.com/mwcraig/b423656698987b6bc492/raw/f23c4b50d972de4e7902fe3d4fa1363400a98f8f/pattern.c.diff | patch -p1 -i -
+
+ATLAS=/usr/local/atlas
+export OPTIONS="--enable-accelerate"
+autoconf
+autoheader
+;;
+*)
+;;
+esac
+
+./configure --prefix=$PREFIX \
+--with-fftw-libdir=$PREFIX/lib \
+--with-fftw-incdir=$PREFIX/include \
+"${OPTIONS}"
+
+make -j ${CPU_COUNT}
+make install \ No newline at end of file