1 | # vim: set ft=tcl: |
---|
2 | PortSystem 1.0 |
---|
3 | |
---|
4 | categories math science |
---|
5 | name shogun |
---|
6 | version 0.7.3 |
---|
7 | |
---|
8 | # additional versions |
---|
9 | maintainers jameskyle@ucla.edu |
---|
10 | platforms darwin |
---|
11 | |
---|
12 | description The machine learning toolbox's focus is on large scale \ |
---|
13 | kernel methods |
---|
14 | |
---|
15 | long_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 | |
---|
20 | homepage http://www.shogun-toolbox.org/ |
---|
21 | master_sites http://shogun-toolbox.org/archives/shogun/releases/0.7/sources/ |
---|
22 | use_bzip2 yes |
---|
23 | distfiles shogun-${version}${extract.suffix} |
---|
24 | |
---|
25 | |
---|
26 | checksums md5 e3cb08aa05c1da78cd96d71ef97669b0 \ |
---|
27 | sha1 edad946b8ecbdf8e14f7de2ad54a95c4e2e72140 \ |
---|
28 | rmd160 bfe7e456505e5306dcf8818ee1c1074d8b8b05e9 |
---|
29 | |
---|
30 | worksrcdir ${name}-${version}/src |
---|
31 | |
---|
32 | depends_build port:gcc43 \ |
---|
33 | port:bzip2 |
---|
34 | |
---|
35 | depends_lib port:swig \ |
---|
36 | port:atlas |
---|
37 | |
---|
38 | configure.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 | |
---|
46 | default_variants +python |
---|
47 | set interfaces "libshogun libshogunui cmdline elwms" |
---|
48 | if {[variant_isset python]} {lappend interfaces "python,python_modular"} |
---|
49 | if {[variant_isset r]} {lappend interfaces "r"} |
---|
50 | if {[variant_isset octave]} {lappend interfaces "octave,octave_modular"} |
---|
51 | #if {[variant_isset matlab]} {lappend interfaces "matlab"} |
---|
52 | set interfaces [join $interfaces ","] |
---|
53 | |
---|
54 | configure.args-append --interfaces=$interfaces |
---|
55 | |
---|
56 | variant 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 | |
---|
65 | variant r description {Build the R API} { |
---|
66 | depends_lib-append port:R |
---|
67 | } |
---|
68 | |
---|
69 | variant octave description {Build the Octave API} { |
---|
70 | depends_lib-append port:octave |
---|
71 | } |
---|
72 | |
---|
73 | #variant matlab description {Build the Matlab API} {} |
---|