source: trunk/dports/x11/pango/Portfile

Last change on this file was 154022, checked in by jeremyhu@…, 13 months ago

pango: Fix an issue with Leopard (mentioned in #52468)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.3 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 154022 2016-10-18 16:05:31Z ryandesign@macports.org $
3
4PortSystem              1.0
5PortGroup               active_variants 1.1
6PortGroup               gobject_introspection 1.0
7
8# Please keep the pango and pango-devel ports as similar as possible.
9
10name                    pango
11conflicts               pango-devel
12set my_name             pango
13epoch                   1
14version                 1.40.3
15revision                1
16set branch              [join [lrange [split ${version} .] 0 1] .]
17categories              x11
18maintainers             ryandesign openmaintainer
19license                 LGPL-2
20homepage                http://www.pango.org/
21master_sites            gnome:sources/${my_name}/${branch}
22platforms               darwin
23distname                ${my_name}-${version}
24dist_subdir             ${my_name}
25use_xz                  yes
26use_parallel_build      yes
27
28description \
29    Framework for the layout and rendering of i18n text
30
31long_description \
32    The goal of the Pango project is to provide an \
33    open-source framework for the layout and rendering \
34    of internationalized text.
35
36checksums               rmd160  ab149f6322096c148c584db1219a37d042ca3095 \
37                        sha256  abba8b5ce728520c3a0f1535eab19eac3c14aeef7faa5aded90017ceac2711d3
38
39depends_build \
40    port:pkgconfig
41
42depends_lib \
43    path:lib/pkgconfig/glib-2.0.pc:glib2 \
44    path:lib/pkgconfig/cairo.pc:cairo \
45    port:harfbuzz
46
47patchfiles              patch-ltmain.sh.diff \
48                        patch-pango-pangocoretext-shape.c.diff
49
50configure.args          --enable-static \
51                        --disable-silent-rules \
52                        --without-x
53
54gobject_introspection   yes
55
56platform macosx {
57    variant quartz {
58        # Although this variant does nothing, pango will automatically build
59        # itself differently depending on whether or not cairo is installed with
60        # the quartz variant. Therefore this variant is necessary to be able to
61        # distinguish whether an installed pango has Quartz support or not.
62    }
63
64    default_variants    +quartz
65    # Don't allow Quartz support to be disabled. Keep the variant for awhile in
66    # case any dependents are using the active_variants portgroup to check for it.
67    variant_set         quartz
68
69    if {[variant_isset quartz]} {
70        require_active_variants path:lib/pkgconfig/cairo.pc:cairo quartz
71    }
72}
73
74variant x11 {
75    depends_lib-append      port:Xft2
76    configure.args-delete   --without-x
77    configure.args-append   --x-include=${prefix}/include \
78                            --x-lib=${prefix}/lib
79}
80
81default_variants        +x11
82if {${os.platform} ne "darwin" || ${os.subplatform} ne "macosx"} {
83    # When not on OS X, don't allow X11 support to be disabled, since it is the
84    # only available option.
85    variant_set         x11
86}
87
88if {[variant_isset x11]} {
89    require_active_variants path:lib/pkgconfig/cairo.pc:cairo x11
90}
91
92post-destroot {
93    set docdir ${prefix}/share/doc/${my_name}
94    xinstall -d ${destroot}${docdir}
95    xinstall -m 0644 -W ${worksrcpath} AUTHORS ChangeLog COPYING MAINTAINERS NEWS README THANKS \
96        ${destroot}${docdir}
97}
98
99test.run                yes
100test.target             check
101
102livecheck.type          gnome
103livecheck.name          ${my_name}
Note: See TracBrowser for help on using the repository browser.