1 | # vim: set ft=tcl: |
---|
2 | PortSystem 1.0 |
---|
3 | name py25-shogun |
---|
4 | version 0.6.7 |
---|
5 | categories python science math |
---|
6 | maintainers jameskyle@ucla.edu |
---|
7 | description The machine learning toolbox's focus is on large scale kernel methods and especially on Support Vector Machines (SVM). |
---|
8 | long_description ${description} It provides a generic SVM object interfacing to several different SVM implementations, among them the state of the art OCAS, LibSVM , SVMLight, SVMLin and GPDT . Each of the SVMs can be combined with a variety of kernels. The toolbox not only provides efficient implementations of the most common kernels, like the Linear, Polynomial, Gaussian and Sigmoid Kernel but also comes with a number of recent string kernels as e.g. the Locality Improved , Fischer , TOP , Spectrum , Weighted Degree Kernel (with shifts). |
---|
9 | |
---|
10 | use_parallel_build yes |
---|
11 | use_bzip2 yes |
---|
12 | homepage http://www.shogun-toolbox.org |
---|
13 | platforms darwin |
---|
14 | master_sites http://shogun-toolbox.org/archives/shogun/releases/0.6/sources/ |
---|
15 | |
---|
16 | checksums md5 03d2c5ae44fa7ca8baeb8c3fd2bae010 \ |
---|
17 | sha1 7657da29d9f9afc0c204b8f2e68c784308185a1e \ |
---|
18 | rmd160 c00ceceb791d2073413c089e23e361a3d584cc24 |
---|
19 | |
---|
20 | distfiles shogun-${version}${extract.suffix} |
---|
21 | |
---|
22 | configure.args --disable-svm-light \ |
---|
23 | --interface=python \ |
---|
24 | --python=${prefix}/bin/python2.5 \ |
---|
25 | --libs=${prefix}/lib \ |
---|
26 | --includes=${prefix}/include \ |
---|
27 | --cxx=${prefix}/bin/g++-mp-4.3 \ |
---|
28 | --cc=${prefix}/bin/gcc-mp-4.3 \ |
---|
29 | --install-path=${prefix} \ |
---|
30 | --enable-readline \ |
---|
31 | --destdir=${destroot} |
---|
32 | |
---|
33 | worksrcdir shogun-${version}/src |
---|
34 | |
---|
35 | # default_variants +atlas +glpk +lp_solve |
---|
36 | default_variants +glpk +lp_solve +atlas |
---|
37 | |
---|
38 | depends_lib port:python25 \ |
---|
39 | port:py25-numpy \ |
---|
40 | port:gcc43 \ |
---|
41 | port:readline \ |
---|
42 | port:py25-setuptools |
---|
43 | |
---|
44 | |
---|
45 | patch { |
---|
46 | system "cd ${workpath}/shogun-${version} && patch -p0 < ${filespath}/patch-src" |
---|
47 | system "cd ${workpath}/shogun-${version} && patch -p0 < ${filespath}/patch-src-lib-lapack.cpp" |
---|
48 | } |
---|
49 | variant cplex description {enable Multiple Kernel Learning CPLEX(tm)} { |
---|
50 | configure.args-append --enable-cplex |
---|
51 | } |
---|
52 | |
---|
53 | variant python description {build the python interface} { |
---|
54 | } |
---|
55 | |
---|
56 | variant atlas description {use the fast atlas and lapack libraries} { |
---|
57 | depends_lib-append port:atlas |
---|
58 | } |
---|
59 | |
---|
60 | variant glpk description {enable support for the GNU Linear Programming Kit} { |
---|
61 | depends_lib-append port:glpk |
---|
62 | } |
---|
63 | |
---|
64 | variant lp_solve description {enable support for the lp_solve library} { |
---|
65 | depends_lib-append port:lp_solve |
---|
66 | } |
---|
67 | |
---|
68 | post-clean { |
---|
69 | ui_msg "Make sure that /opt/local/lib is in your DYLD_LIBRARY_PATH or the sg module will not load properly!" |
---|
70 | } |
---|