Ticket #29180: Portfile

File Portfile, 1.7 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                pecco
7version             2011-01-10
8categories          science
9platforms           darwin
10maintainers         nomaintainer
11license             GPL
12
13description         simple C++ library for linear classification with conjunctive features
14long_description    ${description}
15
16homepage            http://www.tkl.iis.u-tokyo.ac.jp/~ynaga/pecco/
17master_sites        ${homepage}
18checksums           sha1    a6775affaad0c03e52921b5a505f383b9e5a8500 \
19                    rmd160  3fa3a1cec5183a644d6eaecd50db506617b64301
20
21depends_lib-append  port:darts
22
23distname            ${name}
24use_bzip2           yes
25
26use_configure       no
27
28variant universal {}
29if {[variant_isset universal]} {
30    set archflags ${configure.universal_cxxflags}
31} else {
32    set archflags ${configure.cxx_archflags}
33}
34
35build.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
41pre-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
46destroot {
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
53livecheck.type      moddate