Ticket #19558: Portfile

File Portfile, 2.5 KB (added by jameskyle@…, 16 years ago)

New shogun portfile

Line 
1# vim: set ft=tcl:
2PortSystem          1.0
3
4categories          math science
5name                shogun
6version             0.7.3
7
8# additional versions
9maintainers         jameskyle@ucla.edu
10platforms           darwin
11
12description         The machine learning toolbox's focus is on large scale \
13                    kernel methods
14
15long_description    ${description} and especially on Support Vector Machines \
16                    (SVM). It provides a generic SVM object interfacing to \
17                    several different SVM implementations, among them the \
18                    state of the art OCAS, LibSVM, SVMLight, SVMLin and GPDT.
19
20homepage            http://www.shogun-toolbox.org/
21master_sites        http://shogun-toolbox.org/archives/shogun/releases/0.7/sources/
22use_bzip2           yes
23distfiles            shogun-${version}${extract.suffix}
24                   
25
26checksums           md5     e3cb08aa05c1da78cd96d71ef97669b0 \
27                    sha1    edad946b8ecbdf8e14f7de2ad54a95c4e2e72140 \
28                    rmd160  bfe7e456505e5306dcf8818ee1c1074d8b8b05e9
29
30worksrcdir          ${name}-${version}/src
31
32depends_build       port:gcc43 \
33                    port:bzip2
34
35depends_lib         port:swig \
36                    port:atlas
37
38configure.args      --cc=/opt/local/bin/gcc-mp-4.3 \
39                    --cxx=/opt/local/bin/g++-mp-4.3 \
40                    --disable-svm-light \
41                    --libs=${prefix}/lib \
42                    --install-path=${prefix} \
43                    --includes=${prefix}/include \
44                    --destdir=${destroot}
45
46default_variants    +python
47set interfaces "libshogun libshogunui cmdline elwms"
48if {[variant_isset python]} {lappend interfaces "python,python_modular"}
49if {[variant_isset r]} {lappend interfaces "r"} 
50if {[variant_isset octave]} {lappend interfaces "octave,octave_modular"} 
51#if {[variant_isset matlab]} {lappend interfaces "matlab"} 
52set interfaces [join $interfaces ","]
53
54configure.args-append --interfaces=$interfaces
55
56variant python description {Build Python API} {
57  configure.args-append \
58      --includes=${prefix}/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5 \
59      --python=${prefix}/bin/python2.5
60
61  depends_lib-append port:python25 \
62                     port:py25-numpy
63}
64
65variant r description {Build the R API} {
66  depends_lib-append port:R
67}
68
69variant octave description {Build the Octave API} {
70  depends_lib-append port:octave
71}
72
73#variant matlab description {Build the Matlab API} {}