Ticket #48062: Portfile.3

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

libpagemaker 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                libpagemaker-0.0.2
7set dname           libpagemaker
8version             0.0.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/libpagemaker
15master_sites        http://dev-www.libreoffice.org/src/${dname}
16
17description         libpagemaker is a library and a set of tools for reading and converting binary files \
18                    produced by Adobe Pagemaker.
19
20long_description    ${description}
21
22use_xz              yes
23
24distname            ${dname}-${version}
25
26checksums           sha256  cdbdf86605773339caab6477ff694a95a90aaa4d45bb6cdb59e4a7f76c91ef17 \
27                    rmd160  5691e0e831ff78ca4bc8054cc67243bcf149eb07
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 libpagemaker
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}"