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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name liblinear |
---|
7 | version 1.8 |
---|
8 | |
---|
9 | categories math |
---|
10 | maintainers nomaintainer |
---|
11 | license BSD |
---|
12 | platforms darwin |
---|
13 | |
---|
14 | description A simple package for solving large-scale regularized linear classification. |
---|
15 | |
---|
16 | long_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 | |
---|
22 | homepage http://www.csie.ntu.edu.tw/~cjlin/liblinear/ |
---|
23 | master_sites ${homepage} |
---|
24 | |
---|
25 | checksums sha1 26f4a47ed1546996eaac21f5282e1cc42b59a623 \ |
---|
26 | rmd160 7f97f336709c1418550bc60013b9daf99a507c07 |
---|
27 | |
---|
28 | patchfiles patch-Makefile.diff |
---|
29 | |
---|
30 | use_configure no |
---|
31 | |
---|
32 | set libver ${version}.0 |
---|
33 | build.target all |
---|
34 | build.args CXX=${configure.cxx} PREFIX=${prefix} VERSION=${libver} |
---|
35 | |
---|
36 | destroot { |
---|
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 | |
---|
48 | livecheck.type regex |
---|
49 | livecheck.regex {Version *([0-9.]+) *} |
---|