summaryrefslogtreecommitdiff
path: root/sextractor
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunk@stsci.edu>2016-03-23 17:00:53 -0400
committerJoe Hunkeler <jhunk@stsci.edu>2016-03-23 17:00:53 -0400
commite4caf4a2acbb18875b1064246554e4105449b5a3 (patch)
treeb57ece5acd84c9a8c9235818b975a439c8ae3df9 /sextractor
downloadastroconda-contrib-e4caf4a2acbb18875b1064246554e4105449b5a3.tar.gz
Initial commit
Diffstat (limited to 'sextractor')
-rw-r--r--sextractor/bld.bat2
-rw-r--r--sextractor/build.sh34
-rw-r--r--sextractor/meta.yaml23
3 files changed, 59 insertions, 0 deletions
diff --git a/sextractor/bld.bat b/sextractor/bld.bat
new file mode 100644
index 0000000..95a6a85
--- /dev/null
+++ b/sextractor/bld.bat
@@ -0,0 +1,2 @@
+
+echo Unsupported \ No newline at end of file
diff --git a/sextractor/build.sh b/sextractor/build.sh
new file mode 100644
index 0000000..937f3d9
--- /dev/null
+++ b/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
diff --git a/sextractor/meta.yaml b/sextractor/meta.yaml
new file mode 100644
index 0000000..c88a5e2
--- /dev/null
+++ b/sextractor/meta.yaml
@@ -0,0 +1,23 @@
+about:
+ home: http://www.astromatic.net/download/sextractor
+ license: GPL
+ summary: sextractor
+build:
+ number: '0'
+package:
+ name: sextractor
+ version: 2.19.5
+requirements:
+ build:
+ - atlas-generic [linux]
+ - autoconf [osx]
+ - m4 [osx]
+ - fftw
+ - pkgconfig
+ run:
+ - atlas-generic [linux]
+ - fftw
+source:
+ fn: sextractor-2.19.5.tar.gz
+ url:
+ - http://www.astromatic.net/download/sextractor/sextractor-2.19.5.tar.gz