summaryrefslogtreecommitdiff
path: root/sextractor
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@users.noreply.github.com>2016-10-12 14:42:07 -0400
committerGitHub <noreply@github.com>2016-10-12 14:42:07 -0400
commitdebb3ac4236c615adb2abd63c6dc8af21f3e2c88 (patch)
treef57ebdb76544eea5a94d23677d04d550432d8617 /sextractor
parent90e38cca1e31865366d9bc796591e1fca034a0e9 (diff)
downloadastroconda-contrib-debb3ac4236c615adb2abd63c6dc8af21f3e2c88.tar.gz
Fix sextractor build script (#68)
Diffstat (limited to 'sextractor')
-rw-r--r--sextractor/build.sh46
1 files changed, 20 insertions, 26 deletions
diff --git a/sextractor/build.sh b/sextractor/build.sh
index 937f3d9..d11c1d0 100644
--- a/sextractor/build.sh
+++ b/sextractor/build.sh
@@ -1,34 +1,28 @@
-
-ATLAS=/usr
-LIBDIR=lib
+export ATLAS="$PREFIX"
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 -
+ Linux)
+ OPTIONS="--with-atlas=$PREFIX"
+ ;;
+
+ 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 -
+
+ OPTIONS="--enable-accelerate"
+ autoconf
+ autoheader
+ ;;
-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}"
+ --with-fftw-libdir=$PREFIX/lib \
+ --with-fftw-incdir=$PREFIX/include \
+ "${OPTIONS}"
make -j ${CPU_COUNT}
-make install \ No newline at end of file
+make install