blob: 8a38d595bdfa455f285aca0df9eaa8086d88f1f9 (
plain)
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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
|
# Maintainer: Yigit Dallilar <yigit.dallilar@gmail.com>
pkgname=cpl
pkgver=7.1.4
pkgrel=3
#lock the versions
_wcs_ver=7.6
_cfitsio_ver=3.49
_fftw_ver=3.3.9
pkgdesc="ESO Common Pipeline Library"
url="https://www.eso.org/sci/software/cpl/index.html"
arch=('x86_64')
license=('GPL2')
depends=(gsl)
makedepends=(gsl)
provides=()
conflicts=()
replaces=()
backup=()
source=(ftp://ftp.eso.org/pub/dfs/pipelines/libraries/cpl/cpl-${pkgver}.tar.gz
https://ftp.eso.org/pub/dfs/pipelines/libraries/cfitsio/cfitsio-${_cfitsio_ver}.tar.gz
https://ftp.eso.org/pub/dfs/pipelines/libraries/wcslib/wcslib-${_wcs_ver}.tar.bz2
https://ftp.eso.org/pub/dfs/pipelines/libraries/fftw/fftw-${_fftw_ver}.tar.gz
cpl.sh)
md5sums=('fd172d323a94dce2624b5d9b8014f21a'
'171860ffed8c1a396fc497d853f285c1'
'8fea0d68e0a0d3946c2c39d62f7198a2'
'50145bb68a8510b5d77605f11cadf8dc'
SKIP)
build_cfitsio () {
cd ${srcdir}/cfitsio-${_cfitsio_ver}
./configure --prefix=${srcdir}/build --enable-reentrant --enable-sse2 --enable-ssse3
make
make shared
make install
}
build_wcslib () {
cd ${srcdir}/wcslib-${_wcs_ver}
./configure --prefix=${srcdir}/build --without-pgplot --with-x --with-cfitsiolib=${srcdir}/lib --with-cfitsioinc=${srcdir}/include --disable-fortran
make
make install
}
build_fftw () {
cd ${srcdir}/fftw-${_fftw_ver}
./configure --prefix=${srcdir}/build --enable-openmp --enable-threads --enable-avx --enable-sse2 --disable-fortran --enable-shared --enable-float
make
make install
make clean
./configure --prefix=${srcdir}/build --enable-openmp --enable-threads --enable-avx --enable-sse2 --disable-fortran --enable-shared
make
make install
}
build () {
build_cfitsio
build_wcslib
build_fftw
export LD_LIBRARY_PATH=${srcdir}/build/lib:${LD_LIBRARY_PATH}
export C_INCLUDE_PATH=${srcdir}/build/include:${C_INCLUDE_PATH}
export CFITSIODIR=${srcdir}/build
export WCSDIR=${srcdir}/build
export FFTWDIR=${srcdir}/build
cd ${srcdir}/${pkgname}-${pkgver}
./configure --prefix=${pkgdir}/opt/esopipes --with-fftw=${FFTWDIR} CPPFLAGS="-DCX_DISABLE_ASSERT -DL2_CACHE_BYTES=0"
make
}
package() {
cd ${srcdir}/${pkgname}-${pkgver}
make install
install -D -m644 COPYING "${pkgdir}/share/licenses/${pkgname}/LICENSE"
install -D -m755 ${srcdir}/cpl.sh ${pkgdir}/etc/profile.d/cpl.sh
cp -aR ${srcdir}/build/* ${pkgdir}/opt/esopipes/
}
# vim:set ts=4 sw=4 et:
|