Ticket #48062: Portfile

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

libmspub 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                libmspub-0.1.2
7set dname           libmspub
8version             0.1.2
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/libmspub
15master_sites        http://dev-www.libreoffice.org/src/${dname}
16
17description         libmspub 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  b0baabf82d20c08ad000e80fa02154ce2f2ffde1ee60240d6e3a917c3b35560f \
27                    rmd160  d7b57b74503fab484d694042af109febaec57bb4
28
29depends_build       port:pkgconfig
30
31depends_lib         port:librevenge \
32                    port:boost \
33                    port:icu
34
35# build fix for gcc-4.2 (#43487)
36if {[string match "*gcc*" ${configure.compiler}]} {
37    configure.cxxflags-append -Wno-long-long
38}
39
40# The packaged glibtool in 0.1.1 doesn't pass --stdlib=libc++ down at link time
41use_autoreconf  yes
42autoreconf.args -fvi
43
44configure.args      --disable-werror \
45                    --disable-silent-rules \
46                    --without-docs
47
48variant docs description {Build API documentation} {
49    depends_build-append  port:doxygen
50    configure.args-replace --without-docs --with-docs
51}
52
53# delete binaries that conflict with libmspub
54
55post-destroot {
56    file delete -force ${destroot}${prefix}/bin
57}
58
59livecheck.type      regex
60livecheck.url       ${master_sites}
61livecheck.regex     "${dname}-(\\d+(?:\\.\\d+)*)${extract.suffix}"