aboutsummaryrefslogtreecommitdiff
path: root/sextractor
diff options
context:
space:
mode:
authorJoe Hunkeler <jhunk@stsci.edu>2015-12-11 00:23:27 -0500
committerJoe Hunkeler <jhunk@stsci.edu>2015-12-11 00:23:27 -0500
commitd48edc25bb2160921d178c8ae61b225990d26f81 (patch)
tree6737c734e0bf58240f0e812a23ccf34ceb42be3a /sextractor
parent8ff3436548fb5b294fc51b47881e3e393e61ba3a (diff)
downloadcbc-recipes-d48edc25bb2160921d178c8ae61b225990d26f81.tar.gz
Add homebrew patches for accelerate framework
Diffstat (limited to 'sextractor')
-rw-r--r--sextractor/sextractor.ini15
1 files changed, 12 insertions, 3 deletions
diff --git a/sextractor/sextractor.ini b/sextractor/sextractor.ini
index 911f8b0..7a6785b 100644
--- a/sextractor/sextractor.ini
+++ b/sextractor/sextractor.ini
@@ -17,6 +17,8 @@ number : 0
[requirements]
build :
atlas-generic [linux]
+ autoconf [osx]
+ m4 [osx]
fftw
pkgconfig
@@ -36,10 +38,18 @@ linux :
else
LIBDIR=lib/atlas
fi
+ export OPTIONS="--with-atlas-libdir=$$PREFIX/lib --with-atlas-incdir=$$PREFIX/include"
;;
Darwin)
+ # Do patches (see also homebrew sextractor recipe)
+ 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
- OPTIONS="--enable-accelerate"
+ export OPTIONS="--enable-accelerate"
+ autoconf
+ autoheader
;;
*)
;;
@@ -48,12 +58,11 @@ linux :
./configure --prefix=$$PREFIX \
--with-fftw-libdir=$$PREFIX/lib \
--with-fftw-incdir=$$PREFIX/include \
- --with-atlas-libdir=$$PREFIX/lib \
- --with-atlas-incdir=$$PREFIX/include \
"$${OPTIONS}"
make -j $${CPU_COUNT}
make install
+
windows :
echo Unsupported