diff options
Diffstat (limited to 'hmatrix.cabal')
-rw-r--r-- | hmatrix.cabal | 32 |
1 files changed, 15 insertions, 17 deletions
diff --git a/hmatrix.cabal b/hmatrix.cabal index 1080dcd..3d58fa2 100644 --- a/hmatrix.cabal +++ b/hmatrix.cabal | |||
@@ -1,5 +1,5 @@ | |||
1 | Name: hmatrix | 1 | Name: hmatrix |
2 | Version: 0.8.3.0 | 2 | Version: 0.8.3.1 |
3 | License: GPL | 3 | License: GPL |
4 | License-file: LICENSE | 4 | License-file: LICENSE |
5 | Author: Alberto Ruiz | 5 | Author: Alberto Ruiz |
@@ -14,10 +14,11 @@ Category: Math | |||
14 | tested-with: GHC ==6.10.4, GHC ==6.12.1 | 14 | tested-with: GHC ==6.10.4, GHC ==6.12.1 |
15 | 15 | ||
16 | cabal-version: >=1.2 | 16 | cabal-version: >=1.2 |
17 | |||
17 | build-type: Custom | 18 | build-type: Custom |
18 | extra-source-files: lib/Numeric/LinearAlgebra/Tests/quickCheckCompat.h | ||
19 | 19 | ||
20 | extra-source-files: configure configure.hs README INSTALL CHANGES | 20 | extra-source-files: lib/Numeric/LinearAlgebra/Tests/quickCheckCompat.h |
21 | configure configure.hs README INSTALL CHANGES | ||
21 | extra-tmp-files: hmatrix.buildinfo | 22 | extra-tmp-files: hmatrix.buildinfo |
22 | 23 | ||
23 | extra-source-files: examples/tests.hs | 24 | extra-source-files: examples/tests.hs |
@@ -47,28 +48,19 @@ extra-source-files: lib/Numeric/GSL/Special/auto.hs, | |||
47 | lib/Numeric/GSL/Special/autoall.sh, | 48 | lib/Numeric/GSL/Special/autoall.sh, |
48 | lib/Numeric/GSL/Special/replace.hs | 49 | lib/Numeric/GSL/Special/replace.hs |
49 | 50 | ||
50 | flag splitBase | ||
51 | description: Choose the new smaller, split-up base package. | ||
52 | |||
53 | flag mkl | 51 | flag mkl |
54 | description: Link with Intel's MKL optimized libraries. | 52 | description: Link with Intel's MKL optimized libraries. |
55 | default: False | 53 | default: False |
56 | 54 | ||
57 | flag accelerate | ||
58 | description: Use the accelerate framework for LAPACK/BLAS on OS X | ||
59 | default: False | ||
60 | |||
61 | flag unsafe | 55 | flag unsafe |
62 | description: Compile the library with bound checking disabled. | 56 | description: Compile the library with bound checking disabled. |
63 | default: False | 57 | default: False |
64 | 58 | ||
65 | library | 59 | library |
66 | if flag(splitBase) | ||
67 | build-depends: base >= 3 && < 5, array | ||
68 | else | ||
69 | build-depends: base < 3 | ||
70 | 60 | ||
71 | Build-Depends: haskell98, | 61 | Build-Depends: base >= 3 && < 5, |
62 | array, | ||
63 | haskell98, | ||
72 | QuickCheck, HUnit, | 64 | QuickCheck, HUnit, |
73 | storable-complex, | 65 | storable-complex, |
74 | process | 66 | process |
@@ -160,9 +152,11 @@ library | |||
160 | else | 152 | else |
161 | extra-libraries: gsl mkl_lapack mkl_intel mkl_sequential mkl_core | 153 | extra-libraries: gsl mkl_lapack mkl_intel mkl_sequential mkl_core |
162 | 154 | ||
163 | if flag(accelerate) | 155 | if os(OSX) |
164 | frameworks: Accelerate | 156 | extra-lib-dirs: /opt/local/lib/ |
157 | include-dirs: /opt/local/include | ||
165 | extra-libraries: gsl | 158 | extra-libraries: gsl |
159 | frameworks: Accelerate | ||
166 | 160 | ||
167 | -- The extra-libraries required for GSL and LAPACK | 161 | -- The extra-libraries required for GSL and LAPACK |
168 | -- should now be automatically detected by configure(.hs) | 162 | -- should now be automatically detected by configure(.hs) |
@@ -170,3 +164,7 @@ library | |||
170 | extra-libraries: | 164 | extra-libraries: |
171 | extra-lib-dirs: | 165 | extra-lib-dirs: |
172 | 166 | ||
167 | source-repository head | ||
168 | type: darcs | ||
169 | location: http://code.haskell.org/hmatrix | ||
170 | |||