1 | |
---|
2 | PortSystem 1.0 |
---|
3 | |
---|
4 | name libsvm |
---|
5 | version 2.85 |
---|
6 | |
---|
7 | categories math |
---|
8 | maintainers florian.ebeling@gmail.com |
---|
9 | platforms darwin |
---|
10 | description A free Support Vector Machine implementation. |
---|
11 | long_description ${description} By Chih-Chung Chang and Chih-Jen Lin of National Taiwan University. \"LIBSVM is an integrated software for support vector classification, (C-SVC, nu-SVC), regression (epsilon-SVR, nu-SVR) and distribution estimation (one-class SVM ). It supports multi-class classification.\" |
---|
12 | |
---|
13 | homepage http://www.csie.ntu.edu.tw/~cjlin/libsvm/ |
---|
14 | master_sites ${homepage} |
---|
15 | |
---|
16 | checksums md5 c839d919cc6fa7b5ad86ea37b7cebcc3 \ |
---|
17 | sha1 2786cb58027992772ac261f3ae9389eab360ed93 \ |
---|
18 | rmd160 7e6dc8059280ced1bc2c436f81c4805ed15d53ad |
---|
19 | patchfiles patch-Makefile |
---|
20 | |
---|
21 | use_configure no |
---|
22 | |
---|
23 | set libver ${version}.0 |
---|
24 | build.target all |
---|
25 | build.args PREFIX=${prefix} VERSION=${libver} |
---|
26 | |
---|
27 | destroot { |
---|
28 | xinstall -m 755 ${worksrcpath}/svm-train ${destroot}${prefix}/bin |
---|
29 | xinstall -m 755 ${worksrcpath}/svm-predict ${destroot}${prefix}/bin |
---|
30 | xinstall -m 755 ${worksrcpath}/svm-scale ${destroot}${prefix}/bin |
---|
31 | xinstall -m 644 ${worksrcpath}/libsvm.a ${destroot}${prefix}/lib |
---|
32 | xinstall -m 644 ${worksrcpath}/svm.h ${destroot}${prefix}/include |
---|
33 | xinstall -m 644 ${worksrcpath}/libsvm.${libver}.dylib ${destroot}${prefix}/lib |
---|
34 | |
---|
35 | system "ln -sf ${destroot}${prefix}/lib/${name}.${libver}.dylib \ |
---|
36 | ${destroot}${prefix}/lib/${name}.dylib" |
---|
37 | |
---|
38 | set docs ${destroot}${prefix}/share/doc/${name} |
---|
39 | xinstall -m 755 -d ${docs} |
---|
40 | xinstall -m 644 ${worksrcpath}/COPYRIGHT ${docs} |
---|
41 | xinstall -m 644 ${worksrcpath}/README ${docs} |
---|
42 | xinstall -m 644 ${worksrcpath}/FAQ.html ${docs} |
---|
43 | } |
---|
44 | |
---|