forked from bmsherman/haskell-matlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
matlab.cabal
78 lines (70 loc) · 2.94 KB
/
matlab.cabal
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
Name: matlab
Version: 0.2.0.0
Cabal-Version: >= 1.10
Author: Dylan Simon, Ben Sherman
Maintainer: Ben Sherman <benmsherman@gmail.com>
License: BSD3
License-file: LICENSE
Synopsis: Matlab bindings and interface
Description:
This package aims to provide a comprehensive interface to the
MathWorks MATLAB(R) libraries and native data structures, including
complete matrix access, MAT-format files, linking and execution of
runtime libraries and engine. Requires MATLAB for full functionality
or an installed Matlab Component Runtime (MCR). This has been tested
with MATLAB R2014a and might work with others.
.
[/Installation/]
You will probably need add some arguments that point Cabal to your MATLAB
installation. For example, on a Linux system, it may look like this:
.
> cabal install --extra-lib-dirs="/usr/local/MATLAB/R2014a/bin/glnxa64/" --extra-include-dirs="/usr/local/MATLAB/R2014a/extern/include/"
Category: Foreign,Math
Bug-reports: https://github.com/bmsherman/haskell-matlab/issues
build-type: Custom
tested-with: GHC == 7.8.3
extra-source-files: src/Makefile src/hsmatlab.m src/hsmatlab.c src/hsc_sym.h
test/Makefile test/engine.hs test/runtime.hs
test/generic.hs test/mtest.m test/hsmli.hs
Flag Engine
Description: Enable Matlab engine (spawned eng process) support
default: True
Flag Runtime
Description: Enable Matlab runtime (linked library) support
default: False
Library
default-language: Haskell2010
Build-depends: base >= 4 && < 5,
array < 0.6,
filepath < 1.4,
Cabal < 1.21
Exposed-modules: Foreign.Matlab,
Foreign.Matlab.Types,
Foreign.Matlab.Array,
Foreign.Matlab.Array.Auto,
Foreign.Matlab.Array.MArray,
Foreign.Matlab.Array.IMX,
Foreign.Matlab.Array.Able,
Foreign.Matlab.MAT
Other-modules: Foreign.Matlab.Util, Foreign.Matlab.Internal
default-extensions: ForeignFunctionInterface,
MultiParamTypeClasses,
FunctionalDependencies,
FlexibleInstances
ghc-options: -Wall -fno-warn-name-shadowing
include-dirs: src/
extra-libraries: mx, mat
if flag(runtime)
build-tools: mcc
Build-depends: unix < 2.8
Exposed-modules: Foreign.Matlab.Runtime, Foreign.Matlab.Runtime.Generic
if flag(engine)
Exposed-modules: Foreign.Matlab.Engine
extra-libraries: eng
Source-repository head
Type: git
Location: git://github.com/bmsherman/haskell-matlab.git
Source-repository this
Type: git
Location: git://github.com/bmsherman/haskell-matlab/releases/tag/0.2.0.0.git
Tag: 0.2.0.0