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 pecco |
---|
7 | version 2011-01-10 |
---|
8 | categories science |
---|
9 | platforms darwin |
---|
10 | maintainers nomaintainer |
---|
11 | license GPL |
---|
12 | |
---|
13 | description simple C++ library for linear classification with conjunctive features |
---|
14 | long_description ${description} |
---|
15 | |
---|
16 | homepage http://www.tkl.iis.u-tokyo.ac.jp/~ynaga/pecco/ |
---|
17 | master_sites ${homepage} |
---|
18 | checksums sha1 a6775affaad0c03e52921b5a505f383b9e5a8500 \ |
---|
19 | rmd160 3fa3a1cec5183a644d6eaecd50db506617b64301 |
---|
20 | |
---|
21 | depends_lib-append port:darts |
---|
22 | |
---|
23 | distname ${name} |
---|
24 | use_bzip2 yes |
---|
25 | |
---|
26 | use_configure no |
---|
27 | |
---|
28 | variant universal {} |
---|
29 | if {[variant_isset universal]} { |
---|
30 | set archflags ${configure.universal_cxxflags} |
---|
31 | } else { |
---|
32 | set archflags ${configure.cxx_archflags} |
---|
33 | } |
---|
34 | |
---|
35 | build.args CC="${configure.cxx} ${archflags}" \ |
---|
36 | INCLUDE="${configure.cppflags}" \ |
---|
37 | CFLAGS="${configure.cxxflags}" \ |
---|
38 | -f makefile.${name} |
---|
39 | |
---|
40 | # use darts instead of darts_clone |
---|
41 | pre-build { |
---|
42 | reinplace "s|\#define USE_DARTS_CLONE|// \#define USE_DARTS_CLONE|" ${worksrcpath}/pecco_conf.h |
---|
43 | reinplace "s|// \#define USE_DARTS$|\#define USE_DARTS|" ${worksrcpath}/pecco_conf.h |
---|
44 | } |
---|
45 | |
---|
46 | destroot { |
---|
47 | xinstall -m 755 -W ${worksrcpath} ${name} ${destroot}${prefix}/bin |
---|
48 | file mkdir ${destroot}${prefix}/share/doc/${name} |
---|
49 | xinstall -m 644 -W ${worksrcpath} COPYING GPL README \ |
---|
50 | ${destroot}${prefix}/share/doc/${name} |
---|
51 | } |
---|
52 | |
---|
53 | livecheck.type moddate |
---|