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