Ticket #48062: Portfile.2

File Portfile.2, 1.9 KB (added by cbradney@…, 9 years ago)

libfreehand portfile

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: Portfile 135232 2015-04-20 00:15:39Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libfreehand-0.1.1
7set dname           libfreehand
8version             0.1.1
9revision            1
10categories          graphics
11license             {GPL-2.1+ LGPL-2.1+ MPL-1.1+}
12maintainers         bradney openmaintainer
13platforms           darwin
14homepage            http://www.freedesktop.org/wiki/Software/libfreehand
15master_sites        http://dev-www.libreoffice.org/src/${dname}
16
17description         libfreehand is a library and a set of tools for reading and converting binary files \
18                    produced by Microsoft Publisher.
19
20long_description    ${description}
21
22use_xz              yes
23
24distname            ${dname}-${version}
25
26checksums           sha256  ec6676d0c63f7feac7801a1fe18dd7abe9044b39c3882fc99b9afef39bdf1d30 \
27                    rmd160  83c295f3a2cb5f0fa3f84fc67c39dccbbcf57abc
28
29depends_build       port:pkgconfig
30
31depends_lib         port:librevenge \
32                    port:boost
33
34# build fix for gcc-4.2 (#43487)
35if {[string match "*gcc*" ${configure.compiler}]} {
36    configure.cxxflags-append -Wno-long-long
37}
38
39# The packaged glibtool in 0.1.1 doesn't pass --stdlib=libc++ down at link time
40use_autoreconf  yes
41autoreconf.args -fvi
42
43configure.args      --disable-werror \
44                    --disable-silent-rules \
45                    --without-docs
46
47variant docs description {Build API documentation} {
48    depends_build-append  port:doxygen
49    configure.args-replace --without-docs --with-docs
50}
51
52# delete binaries that conflict with libfreehand
53
54post-destroot {
55    file delete -force ${destroot}${prefix}/bin
56}
57
58livecheck.type      regex
59livecheck.url       ${master_sites}
60livecheck.regex     "${dname}-(\\d+(?:\\.\\d+)*)${extract.suffix}"