summaryrefslogtreecommitdiff
path: root/packages/gsl/hmatrix-gsl.cabal
diff options
context:
space:
mode:
Diffstat (limited to 'packages/gsl/hmatrix-gsl.cabal')
-rw-r--r--packages/gsl/hmatrix-gsl.cabal148
1 files changed, 148 insertions, 0 deletions
diff --git a/packages/gsl/hmatrix-gsl.cabal b/packages/gsl/hmatrix-gsl.cabal
new file mode 100644
index 0000000..bfc25b1
--- /dev/null
+++ b/packages/gsl/hmatrix-gsl.cabal
@@ -0,0 +1,148 @@
1Name: hmatrix-gsl
2Version: 0.16.0.0
3License: GPL
4License-file: LICENSE
5Author: Alberto Ruiz
6Maintainer: Alberto Ruiz <aruiz@um.es>
7Stability: provisional
8Homepage: https://github.com/albertoruiz/hmatrix
9Synopsis: Numerical computation
10Description: Purely functional interface to basic linear algebra
11 and other numerical computations, internally implemented using
12 GSL, BLAS and LAPACK.
13
14Category: Math
15tested-with: GHC ==7.8
16
17cabal-version: >=1.8
18
19build-type: Simple
20
21extra-source-files: src/Numeric/GSL/gsl-ode.c
22
23flag dd
24 description: svd = zgesdd
25 default: True
26
27flag mkl
28 description: Link with Intel's MKL optimized libraries.
29 default: False
30
31flag unsafe
32 description: Compile the library with bound checking disabled.
33 default: False
34
35flag finit
36 description: Force FPU initialization in foreing calls
37 default: False
38
39flag debugfpu
40 description: Check FPU stack
41 default: False
42
43flag debugnan
44 description: Check NaN
45 default: False
46
47library
48
49 Build-Depends: base, hmatrix, array, vector,
50 process, random
51
52
53 Extensions: ForeignFunctionInterface,
54 CPP
55
56 hs-source-dirs: src
57 Exposed-modules: Numeric.GSL.Differentiation,
58 Numeric.GSL.Integration,
59 Numeric.GSL.Fourier,
60 Numeric.GSL.Polynomials,
61 Numeric.GSL.Minimization,
62 Numeric.GSL.Root,
63 Numeric.GSL.Fitting,
64 Numeric.GSL.ODE,
65 Numeric.GSL,
66 Numeric.GSL.LinearAlgebra,
67 Graphics.Plot
68 other-modules: Numeric.GSL.Internal,
69 Numeric.GSL.Vector,
70 Numeric.GSL.IO,
71 Numeric.GSL.Random
72
73
74 C-sources: src/Numeric/GSL/gsl-aux.c
75
76 cc-options: -O4 -msse2 -Wall
77
78 cpp-options: -DBINARY
79
80 -- ghc-prof-options: -auto
81
82 ghc-options: -Wall -fno-warn-missing-signatures
83 -fno-warn-orphans
84 -fno-warn-unused-binds
85
86 if flag(unsafe)
87 cpp-options: -DUNSAFE
88
89 if !flag(dd)
90 cpp-options: -DNOZGESDD
91
92 if impl(ghc < 6.10.2)
93 cpp-options: -DFINIT
94
95 if impl(ghc == 7.0.1)
96 cpp-options: -DFINIT
97
98 if impl(ghc == 7.0.2)
99 cpp-options: -DFINIT
100
101 if flag(finit)
102 cpp-options: -DFINIT
103
104 if flag(debugfpu)
105 cc-options: -DFPUDEBUG
106
107 if flag(debugnan)
108 cc-options: -DNANDEBUG
109
110 if impl(ghc == 7.0.1)
111 cpp-options: -DNONORMVTEST
112
113 if flag(mkl)
114 if arch(x86_64)
115 extra-libraries: gsl mkl_lapack mkl_intel_lp64 mkl_sequential mkl_core
116 else
117 extra-libraries: gsl mkl_lapack mkl_intel mkl_sequential mkl_core
118
119 if os(OSX)
120 extra-lib-dirs: /opt/local/lib/
121 include-dirs: /opt/local/include/
122 extra-lib-dirs: /usr/local/lib/
123 include-dirs: /usr/local/include/
124 extra-libraries: gsl
125 if arch(i386)
126 cc-options: -arch i386
127 frameworks: Accelerate
128
129 if os(freebsd)
130 extra-lib-dirs: /usr/local/lib
131 include-dirs: /usr/local/include
132 extra-libraries: gsl blas lapack
133
134 if os(windows)
135 extra-libraries: gsl-0 blas lapack
136
137 if os(linux)
138 if arch(x86_64)
139 cc-options: -fPIC
140
141 extra-libraries: gsl
142
143source-repository head
144 type: git
145 location: https://github.com/albertoruiz/hmatrix
146
147-- The tests are in package hmatrix-tests
148