source: trunk/dports/devel/libgdiplus/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# $Id: Portfile 115019 2013-12-22 09:29:46Z ryandesign@macports.org $
2
3PortSystem 1.0
4
5name            libgdiplus
6version         2.10.9
7revision        5
8categories      devel
9platforms       darwin
10maintainers     nomaintainer
11license         {LGPL-2.1 MPL-1.1} X11
12description     An Open Source implementation of the GDI+ API
13long_description        An implementation of the GDI+ API for Mono, an \
14                        effort to create an open source implementation of \
15                        the .NET Development Framework including a C# compiler.
16
17homepage        http://www.mono-project.com/Libgdiplus
18master_sites    http://download.mono-project.com/sources/libgdiplus/
19use_bzip2       yes
20
21checksums       rmd160  a4cbc7d3eaa518a2186b3f8e98fc485c7da4d30b \
22                sha256  6ddeb6c327bada7cb6e06d1a20714f526a0c69520dfd42c12ddd032c3c5d964e
23
24depends_build   port:pkgconfig
25
26depends_lib     port:jpeg \
27                port:tiff \
28                port:giflib \
29                port:libpng \
30                port:zlib \
31                port:fontconfig \
32                port:libiconv \
33                port:libexif \
34                path:lib/pkgconfig/glib-2.0.pc:glib2 \
35                path:lib/pkgconfig/cairo.pc:cairo \
36                port:xorg-libsm \
37                port:xrender
38
39patchfiles      patch-freetype-2.5.1.diff \
40                patch-libpng-1.5.diff
41
42post-patch {
43        reinplace "s/-pthread/-lpthread/g" ${worksrcpath}/configure
44}
45
46post-configure {
47    # https://bugs.gentoo.org/show_bug.cgi?id=431916
48    reinplace {s%-L${libjpeg_prefix}/lib%%g} ${worksrcpath}/libgdiplus.pc
49}
50
51test.run        yes
52test.target     check
53
54post-destroot {
55        set docdir ${prefix}/share/doc/${name}
56        xinstall -d ${destroot}${docdir}
57        xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog LICENSE NEWS \
58                README TODO ${destroot}${docdir}
59}
60
61variant pango description {Enable Pango font rendering support (experimental)} {
62    depends_lib-append      path:lib/pkgconfig/pango.pc:pango
63
64    configure.args-append   --with-cairo=system \
65                            --with-pango
66
67    pre-configure {
68        if {[file exists ${prefix}/include/cairo/cairo-quartz.h]} {
69            ui_error "cairo and pango must be installed without their +quartz variant"
70            ui_error "to enable mono +pango variant."
71            error "Please reinstall cairo and pango without +quartz."
72        }
73    }
74}
75
76if {${os.platform} eq "darwin" && ${os.major} >= 10} {
77        patchfiles-append       patch-disable-atsui-support.diff
78}
79
80livecheck.type  regex
81livecheck.url   [lindex ${master_sites} 0]
82livecheck.regex ${name}-(\\d+(?:\\.\\d+)*)
Note: See TracBrowser for help on using the repository browser.