source: trunk/dports/graphics/libwmf/Portfile @ 61377

Last change on this file since 61377 was 61377, checked in by jmr@…, 8 years ago

jpeg: update to version 7, rev bump dependents (#20193)

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