diff options
author | Joe Hunkeler <jhunk@stsci.edu> | 2016-03-23 17:00:53 -0400 |
---|---|---|
committer | Joe Hunkeler <jhunk@stsci.edu> | 2016-03-23 17:00:53 -0400 |
commit | e4caf4a2acbb18875b1064246554e4105449b5a3 (patch) | |
tree | b57ece5acd84c9a8c9235818b975a439c8ae3df9 /sextractor-generic/build.sh | |
download | astroconda-contrib-e4caf4a2acbb18875b1064246554e4105449b5a3.tar.gz |
Initial commit
Diffstat (limited to 'sextractor-generic/build.sh')
-rw-r--r-- | sextractor-generic/build.sh | 26 |
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 |