Ticket #25905: Portfile

File Portfile, 2.0 KB (added by jul_bsd@…, 10 years ago)

libpicviz

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
5PortGroup           cmake 1.0
6
7name                libpicviz
8version             0.6.1
9categories          graphics net
10platforms           darwin
11maintainers         yahoo.fr:jul_bsd openmaintainer
12description         (lib) Picviz can help you to understand what is \
13                    happening on your network and machines by \
14                    visualizing events in multi-dimensions with the \
15            help of parallel coordinates plot.
16long_description    ${description}
17license             GPL-3+ + Specific Picviz license terms
18homepage            http://www.picviz.com/en/community/picviz/picviz.html
19master_sites        http://www.picviz.com/downloads/
20distname            picviz-latest
21extract.suffix      .tar.bz2
22worksrcdir          ${distname}/libpicviz
23
24checksums           rmd160  232491961385208b9d19015de1db7171949e973a \
25                    sha256  3fdc4f60c821f377514ccd5ceacf83b197e747ea928e6f80e020c25395a43b00
26
27depends_lib         port:pcre port:libevent port:cairo
28
29patchfiles          patch-src-pgdl-lexer_l.diff  patch-src-render_c.diff
30
31## Not working, so post-patch reinplace
32#build.args-append          LD_FLAGS="-L${prefix}/lib -lpcre"
33
34post-patch {
35    #reinplace "s|$|-L${prefix}/lib -lpcre|" ${worksrcpath}/src/CMakeFiles/picviz.dir/link.txt
36    reinplace "s|#set(CMAKE_SHARED_LINKER_FLAGS \"-lm -lfl -ly\")|set(CMAKE_SHARED_LINKER_FLAGS \"-lm -lfl -ly -L ${prefix}/lib -lpcre\")|" ${worksrcpath}/src/CMakeLists.txt
37}
38
39post-destroot {
40    xinstall -d ${destroot}${prefix}/share/doc/${name}
41    copy ${worksrcpath}/README ${destroot}${prefix}/share/doc/${name}/
42    copy ${worksrcpath}/NEWS ${destroot}${prefix}/share/doc/${name}/
43}
44
45default_variants   +plplot
46
47variant plplot description { use plplot rendering } {
48    depends_lib-append  port:plplot
49    ## FIXME! option to enable it and create /opt/local/lib/LIBPICVIZ/libpicvizoutplplot.so
50}
51
52livecheck.type     none