Ticket #29778: Portfile

File Portfile, 1.8 KB (added by humem (humem), 13 years ago)
Line 
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
4PortSystem          1.0
5
6name                liblinear
7version             1.8
8
9categories          math
10maintainers         nomaintainer
11license             BSD
12platforms           darwin
13
14description         A simple package for solving large-scale regularized linear classification.
15
16long_description    LIBLINEAR is a simple package for solving large-scale regularized \
17                    linear classification. It currently supports L2-regularized logistic \
18                    regression/L2-loss support vector classification/L1-loss support vector \
19                    classification, and L1-regularized L2-loss support vector classification/ \
20                    logistic regression.
21 
22homepage            http://www.csie.ntu.edu.tw/~cjlin/liblinear/
23master_sites        ${homepage}
24
25checksums           sha1    26f4a47ed1546996eaac21f5282e1cc42b59a623 \
26                    rmd160  7f97f336709c1418550bc60013b9daf99a507c07
27
28patchfiles          patch-Makefile.diff
29
30use_configure       no
31
32set libver          ${version}.0
33build.target        all
34build.args          CXX=${configure.cxx} PREFIX=${prefix} VERSION=${libver}
35
36destroot {
37    xinstall -m 755 -W ${worksrcpath} train predict ${destroot}${prefix}/bin
38    xinstall -m 644 -W ${worksrcpath} liblinear.a liblinear.${libver}.dylib ${destroot}${prefix}/lib
39    xinstall -m 644 -W ${worksrcpath} linear.h tron.h ${destroot}${prefix}/include
40
41    ln -sf ${name}.${libver}.dylib ${destroot}${prefix}/lib/${name}.dylib
42
43    set docs ${destroot}${prefix}/share/doc/${name}
44    xinstall -m 755 -d ${docs}
45    xinstall -m 644 -W ${worksrcpath} COPYRIGHT README heart_scale ${docs}
46}
47
48livecheck.type          regex
49livecheck.regex         {Version *([0-9.]+) *}