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

Last change on this file since 84039 was 84039, checked in by hum@…, 8 years ago

libsvm: take over the maintainership.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.3 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
2# $Id: Portfile 84039 2011-09-15 16:22:31Z hum@macports.org $
3
4PortSystem              1.0
5
6name                    libsvm
7epoch                   1
8version                 3.1
9categories              math
10maintainers             hum openmaintainer
11license                 BSD
12platforms               darwin
13
14description             A free Support Vector Machine implementation.
15
16long_description        ${description} By Chih-Chung Chang and Chih-Jen Lin \
17                        of National Taiwan University. \"LIBSVM is an \
18                        integrated software for support vector \
19                        classification, (C-SVC, nu-SVC), regression \
20                        (epsilon-SVR, nu-SVR) and distribution estimation \
21                        (one-class SVM ). It supports multi-class \
22                        classification.\"
23
24homepage                http://www.csie.ntu.edu.tw/~cjlin/libsvm/
25master_sites            ${homepage}
26
27checksums               sha1    20f09f25a99850009154f6133c5d7ff74cef78a3 \
28                        rmd160  3554cbf671633af17973a25ecf1633ac013f714c
29
30patchfiles              patch-Makefile.diff
31
32use_configure           no
33
34set libver              ${version}.0
35build.target            all
36build.args              CXX="${configure.cxx} ${configure.cxx_archflags}" \
37                        PREFIX=${prefix} \
38                        VERSION=${libver}
39
40destroot {
41    xinstall -m 755 -W ${worksrcpath} svm-train svm-predict svm-scale ${destroot}${prefix}/bin
42    xinstall -m 644 -W ${worksrcpath} libsvm.a libsvm.${libver}.dylib ${destroot}${prefix}/lib
43    xinstall -m 644 -W ${worksrcpath} svm.h ${destroot}${prefix}/include
44
45    ln -sf ${name}.${libver}.dylib ${destroot}${prefix}/lib/${name}.dylib
46
47    set docs ${destroot}${prefix}/share/doc/${name}
48    xinstall -m 755 -d ${docs}
49    xinstall -m 644 -W ${worksrcpath} COPYRIGHT README FAQ.html ${docs}
50}
51
52variant java description {Install Java JAR files} {
53    depends_lib-append  bin:java:kaffe
54
55    post-destroot {
56        set jdir ${destroot}${prefix}/share/java
57        xinstall -m 775 -d ${jdir}
58        file rename ${worksrcpath}/java ${jdir}/${name}
59    }
60}
61
62default_variants        +java
63
64livecheck.type          regex
65livecheck.regex         {<td> *([0-9.]+) *</td>}
Note: See TracBrowser for help on using the repository browser.