diff options
Diffstat (limited to 'hmatrix.cabal')
-rw-r--r-- | hmatrix.cabal | 38 |
1 files changed, 9 insertions, 29 deletions
diff --git a/hmatrix.cabal b/hmatrix.cabal index b283bca..8235753 100644 --- a/hmatrix.cabal +++ b/hmatrix.cabal | |||
@@ -1,5 +1,5 @@ | |||
1 | Name: hmatrix | 1 | Name: hmatrix |
2 | Version: 0.5.1.1 | 2 | Version: 0.5.1.2 |
3 | License: GPL | 3 | License: GPL |
4 | License-file: LICENSE | 4 | License-file: LICENSE |
5 | Author: Alberto Ruiz | 5 | Author: Alberto Ruiz |
@@ -14,9 +14,11 @@ Category: Math | |||
14 | tested-with: GHC ==6.10.2 | 14 | tested-with: GHC ==6.10.2 |
15 | 15 | ||
16 | cabal-version: >=1.2 | 16 | cabal-version: >=1.2 |
17 | build-type: Simple | 17 | build-type: Custom |
18 | extra-source-files: lib/Numeric/LinearAlgebra/Tests/quickCheckCompat.h | 18 | extra-source-files: lib/Numeric/LinearAlgebra/Tests/quickCheckCompat.h |
19 | 19 | ||
20 | extra-source-files: configure configure.hs README INSTALL | ||
21 | extra-tmp-files: hmatrix.buildinfo | ||
20 | 22 | ||
21 | flag splitBase | 23 | flag splitBase |
22 | description: Choose the new smaller, split-up base package. | 24 | description: Choose the new smaller, split-up base package. |
@@ -30,9 +32,8 @@ flag accelerate | |||
30 | default: False | 32 | default: False |
31 | 33 | ||
32 | flag unsafe | 34 | flag unsafe |
33 | description: Compile the library with bound checking disabled. | 35 | description: Compile the library with bound checking disabled. |
34 | default: False | 36 | default: False |
35 | |||
36 | 37 | ||
37 | library | 38 | library |
38 | if flag(splitBase) | 39 | if flag(splitBase) |
@@ -117,30 +118,9 @@ library | |||
117 | extra-libraries: gsl mkl_lapack mkl_intel_lp64 mkl_sequential mkl_core | 118 | extra-libraries: gsl mkl_lapack mkl_intel_lp64 mkl_sequential mkl_core |
118 | else | 119 | else |
119 | extra-libraries: gsl mkl_lapack mkl_intel mkl_sequential mkl_core | 120 | extra-libraries: gsl mkl_lapack mkl_intel mkl_sequential mkl_core |
120 | else | 121 | |
121 | if flag(accelerate) | 122 | if flag(accelerate) |
122 | frameworks: Accelerate | 123 | frameworks: Accelerate |
123 | extra-libraries: gsl | 124 | extra-libraries: gsl |
124 | else | ||
125 | |||
126 | extra-libraries: gsl lapack | ||
127 | |||
128 | -- Include additional libraries if they are | ||
129 | -- required by your system to link -lgsl -llapack | ||
130 | |||
131 | -- (In ubuntu/debian cblas is included in blas, | ||
132 | -- which is automatically linked by lapack, so | ||
133 | -- nothing more is required.) | ||
134 | |||
135 | -- Examples: | ||
136 | |||
137 | -------- if blas/cblas are not automatically linked by lapack: | ||
138 | -- blas cblas | ||
139 | |||
140 | -------- Nonoptimized cblas included in gsl: | ||
141 | -- gslcblas | ||
142 | 125 | ||
143 | -------- Arch Linux with atlas-lapack: | 126 | -- the extra-libraries required for gsl and lapack are automatically detected by configure(.hs) |
144 | -- f77blas cblas atlas gcc_s | ||
145 | -------- Arch Linux with normal blas and lapack: | ||
146 | -- blas gslcblas gfortran | ||