source: trunk/dports/x11/pango/Portfile @ 147202

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

pango: update to 1.40.0

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