source: trunk/dports/x11/pango-devel/Portfile

Last change on this file was 152633, checked in by ryandesign@…, 10 months ago

pango, pango-devel: update to 1.40.3

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