source: trunk/dports/graphics/libwmf/Portfile

Last change on this file was 115019, checked in by ryandesign@…, 4 years ago

revbump ports depending on libpng following libpng 1.6.x update (#41842)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.2 KB
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 115019 2013-12-22 09:29:46Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                libwmf
7version             0.2.8.4
8revision            8
9categories          graphics fonts
10license             LGPL
11maintainers         nomaintainer
12description         Library for converting WMF (Window Metafile Format) files
13long_description \
14    libwmf is a library for reading vector images in Microsoft's native \
15    Windows Metafile Format (WMF) and for either (a) displaying them in, \
16    e.g., an X window, or (b) converting them to more standard/open file \
17    formats.
18
19platforms           darwin
20
21homepage            http://wvware.sourceforge.net/libwmf.html
22master_sites        sourceforge:wvware
23
24checksums           rmd160  98cd631adb5bb332d9224d04bc8a265c105435f2 \
25                    sha256  5b345c69220545d003ad52bfd035d5d6f4f075e65204114a9e875e84895a7cf8
26
27depends_build \
28    port:pkgconfig
29
30depends_lib \
31    port:zlib \
32    port:libpng \
33    port:jpeg \
34    port:freetype \
35    port:expat
36
37patchfiles          configure.ac.diff
38
39use_autoreconf      yes
40autoreconf.args     -fvi
41
42configure.args      --with-jpeg \
43                    --with-expat \
44                    --without-x \
45                    --with-fontdir=${prefix}/share/fonts/${name}
46
47post-destroot {
48    xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
49    xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING CREDITS ChangeLog \
50        NEWS README TODO ${destroot}${prefix}/share/doc/${name}
51}
52
53variant x11 {
54    depends_lib-append  port:xorg-libX11
55    depends_build-append    bin:mkfontdir:mkfontdir bin:mkfontscale:mkfontscale
56
57    configure.args-delete   --without-x
58    configure.args-append   --with-x
59
60    post-destroot {
61        system "mkfontscale ${destroot}${prefix}/share/fonts/${name} && mkfontdir ${destroot}${prefix}/share/fonts/${name}"
62    }
63}
64
65variant xml2 description {Use libxml2 not expat} {
66    depends_lib-delete  port:expat
67    depends_lib-append  port:libxml2
68    configure.args-delete   --with-expat
69    configure.args-append   --with-libxml2
70}
71
72livecheck.url   http://sourceforge.net/projects/wvware/files/libwmf/
73livecheck.regex "${name}\/(\\d+(?:\\.\\d+)*)"
Note: See TracBrowser for help on using the repository browser.