# -*- 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
description A simple package for solving large-scale regularized linear classification.
long_description LIBLINEAR is a simple package for solving large-scale regularized \
linear classification. It currently supports L2-regularized logistic \
regression/L2-loss support vector classification/L1-loss support vector \
classification, and L1-regularized L2-loss support vector classification/ \
homepage https://www.csie.ntu.edu.tw/~cjlin/liblinear/
checksums rmd160 35a5dc7179a0d5198609ae9c478d848816b27928 \
sha256 ebc71999224f5779574b11e248f1e2ef647b5d839c0380c1c5a4ac8789aa95a9
patchfiles patch-Makefile.diff
build.args CC="${configure.cc} ${configure.cflags} [get_canonical_archflags]" \
CXX="${configure.cxx} ${configure.cxxflags} [get_canonical_archflags cxx]" \
xinstall -m 755 -W ${worksrcpath} train predict ${destroot}${prefix}/bin
xinstall -m 644 -W ${worksrcpath} liblinear.dylib ${destroot}${prefix}/lib
xinstall -m 644 -W ${worksrcpath} linear.h tron.h ${destroot}${prefix}/include
# Copy additional documents.
set dest_doc ${destroot}${prefix}/share/doc/${name}
xinstall -m 755 -d ${dest_doc}
xinstall -m 644 -W ${worksrcpath} COPYRIGHT README ${dest_doc}
set dest_ex ${destroot}${prefix}/share/examples/${name}
xinstall -m 755 -d ${dest_ex}
xinstall -m 644 -W ${worksrcpath} heart_scale ${dest_ex}
set dest_py ${dest_ex}/python
xinstall -m 755 -d ${dest_py}
xinstall -m 644 -W ${worksrcpath}/python \
README liblinear.py liblinearutil.py \
variant python27 description {Install Python 2.7 interface} {
depends_lib-append port:python27
post-destroot { install_py 2.7 }