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

Last change on this file since 34108 was 34108, checked in by raimue@…, 12 years ago

math/libsvm:
New Port submitted by Florian Ebeling, closes #13779

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.7 KB
Line 
1# $Id: Portfile 34108 2008-02-13 14:11:37Z raimue@macports.org $
2
3PortSystem 1.0
4
5name                    libsvm
6version                 2.85
7
8categories              math
9maintainers             florian.ebeling@gmail.com
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               md5 c839d919cc6fa7b5ad86ea37b7cebcc3 \
18                        sha1 2786cb58027992772ac261f3ae9389eab360ed93 \
19                        rmd160 7e6dc8059280ced1bc2c436f81c4805ed15d53ad
20patchfiles              patch-Makefile.diff
21
22use_configure           no
23
24set libver              ${version}.0
25build.target            all
26build.args              PREFIX=${prefix} VERSION=${libver}
27
28destroot {
29    xinstall -m 755 ${worksrcpath}/svm-train ${destroot}${prefix}/bin
30    xinstall -m 755 ${worksrcpath}/svm-predict ${destroot}${prefix}/bin
31    xinstall -m 755 ${worksrcpath}/svm-scale ${destroot}${prefix}/bin
32    xinstall -m 644 ${worksrcpath}/libsvm.a ${destroot}${prefix}/lib
33    xinstall -m 644 ${worksrcpath}/svm.h ${destroot}${prefix}/include
34    xinstall -m 644 ${worksrcpath}/libsvm.${libver}.dylib ${destroot}${prefix}/lib
35
36    ln -sf ${destroot}${prefix}/lib/${name}.${libver}.dylib \
37                   ${destroot}${prefix}/lib/${name}.dylib
38
39    set docs ${destroot}${prefix}/share/doc/${name}
40    xinstall -m 755 -d ${docs}
41    xinstall -m 644 ${worksrcpath}/COPYRIGHT ${docs}
42    xinstall -m 644 ${worksrcpath}/README ${docs}
43    xinstall -m 644 ${worksrcpath}/FAQ.html ${docs}
44}
45
Note: See TracBrowser for help on using the repository browser.