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 | |
---|
4 | PortSystem 1.0 |
---|
5 | |
---|
6 | name libfreehand-0.1.1 |
---|
7 | set dname libfreehand |
---|
8 | version 0.1.1 |
---|
9 | revision 1 |
---|
10 | categories graphics |
---|
11 | license {GPL-2.1+ LGPL-2.1+ MPL-1.1+} |
---|
12 | maintainers bradney openmaintainer |
---|
13 | platforms darwin |
---|
14 | homepage http://www.freedesktop.org/wiki/Software/libfreehand |
---|
15 | master_sites http://dev-www.libreoffice.org/src/${dname} |
---|
16 | |
---|
17 | description libfreehand is a library and a set of tools for reading and converting binary files \ |
---|
18 | produced by Microsoft Publisher. |
---|
19 | |
---|
20 | long_description ${description} |
---|
21 | |
---|
22 | use_xz yes |
---|
23 | |
---|
24 | distname ${dname}-${version} |
---|
25 | |
---|
26 | checksums sha256 ec6676d0c63f7feac7801a1fe18dd7abe9044b39c3882fc99b9afef39bdf1d30 \ |
---|
27 | rmd160 83c295f3a2cb5f0fa3f84fc67c39dccbbcf57abc |
---|
28 | |
---|
29 | depends_build port:pkgconfig |
---|
30 | |
---|
31 | depends_lib port:librevenge \ |
---|
32 | port:boost |
---|
33 | |
---|
34 | # build fix for gcc-4.2 (#43487) |
---|
35 | if {[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 |
---|
40 | use_autoreconf yes |
---|
41 | autoreconf.args -fvi |
---|
42 | |
---|
43 | configure.args --disable-werror \ |
---|
44 | --disable-silent-rules \ |
---|
45 | --without-docs |
---|
46 | |
---|
47 | variant 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 | |
---|
54 | post-destroot { |
---|
55 | file delete -force ${destroot}${prefix}/bin |
---|
56 | } |
---|
57 | |
---|
58 | livecheck.type regex |
---|
59 | livecheck.url ${master_sites} |
---|
60 | livecheck.regex "${dname}-(\\d+(?:\\.\\d+)*)${extract.suffix}" |
---|