source: trunk/dports/math/libsvm/Portfile @ 41202

Last change on this file since 41202 was 41202, checked in by febeling@…, 11 years ago

math/libsvm: upgrade to version 2.87

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 41202 2008-10-27 22:09:40Z febeling@macports.org $
2
3PortSystem 1.0
4
5name                    libsvm
6version                 2.87
7
8categories              math
9maintainers             febeling
10platforms               darwin
11description             A free Support Vector Machine implementation.
12long_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.\"
13 
14homepage                http://www.csie.ntu.edu.tw/~cjlin/libsvm/
15master_sites            ${homepage}
16
17checksums               sha1 b65a3bf1d636d03522b62a8e7bcfa9196f0a3a8c
18patchfiles              patch-Makefile.diff
19
20use_configure           no
21
22set libver              ${version}.0
23build.target            all
24build.args              PREFIX=${prefix} VERSION=${libver}
25
26destroot {
27    xinstall -m 755 -W ${worksrcpath} svm-train svm-predict svm-scale ${destroot}${prefix}/bin
28    xinstall -m 644 -W ${worksrcpath} libsvm.a libsvm.${libver}.dylib ${destroot}${prefix}/lib
29    xinstall -m 644 -W ${worksrcpath} svm.h ${destroot}${prefix}/include
30
31    ln -sf ${name}.${libver}.dylib ${destroot}${prefix}/lib/${name}.dylib
32
33    set docs ${destroot}${prefix}/share/doc/${name}-${version}
34    xinstall -m 755 -d ${docs}
35    xinstall -m 644 -W ${worksrcpath} COPYRIGHT README FAQ.html ${docs}
36}
37
Note: See TracBrowser for help on using the repository browser.