blob: 7a6785ba2473d9a0ee44286f6f1750ad922b182e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
[package]
name : sextractor
version : 2.19.5
[about]
home : http://www.astromatic.net/download/${package:name}
license : GPL
summary : ${package:name}
[source]
fn : ${package:name}-${package:version}.tar.gz
url : ${about:home}/${fn}
[build]
number : 0
[requirements]
build :
atlas-generic [linux]
autoconf [osx]
m4 [osx]
fftw
pkgconfig
run :
atlas-generic [linux]
fftw
[cbc_build]
linux :
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)
# 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
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
windows :
echo Unsupported
|