# -*- 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 # $Id: Portfile 152633 2016-09-14 00:54:28Z ryandesign@macports.org $ PortSystem 1.0 PortGroup active_variants 1.1 PortGroup gobject_introspection 1.0 # Please keep the pango and pango-devel ports as similar as possible. name pango-devel conflicts pango set my_name pango version 1.40.3 set branch [join [lrange [split ${version} .] 0 1] .] categories x11 maintainers ryandesign openmaintainer license LGPL-2 homepage http://www.pango.org/ master_sites gnome:sources/${my_name}/${branch} platforms darwin distname ${my_name}-${version} dist_subdir ${my_name} use_xz yes use_parallel_build yes description \ Framework for the layout and rendering of i18n text long_description \ The goal of the Pango project is to provide an \ open-source framework for the layout and rendering \ of internationalized text. checksums rmd160 ab149f6322096c148c584db1219a37d042ca3095 \ sha256 abba8b5ce728520c3a0f1535eab19eac3c14aeef7faa5aded90017ceac2711d3 depends_build \ port:pkgconfig depends_lib \ path:lib/pkgconfig/glib-2.0.pc:glib2 \ path:lib/pkgconfig/cairo.pc:cairo \ port:harfbuzz patchfiles patch-ltmain.sh.diff configure.args --enable-static \ --disable-silent-rules \ --without-x gobject_introspection yes platform macosx { variant quartz { # Although this variant does nothing, pango will automatically build # itself differently depending on whether or not cairo is installed with # the quartz variant. Therefore this variant is necessary to be able to # distinguish whether an installed pango has Quartz support or not. } default_variants +quartz # Don't allow Quartz support to be disabled. Keep the variant for awhile in # case any dependents are using the active_variants portgroup to check for it. variant_set quartz if {[variant_isset quartz]} { require_active_variants path:lib/pkgconfig/cairo.pc:cairo quartz } } variant x11 { depends_lib-append port:Xft2 configure.args-delete --without-x configure.args-append --x-include=${prefix}/include \ --x-lib=${prefix}/lib } default_variants +x11 if {${os.platform} ne "darwin" || ${os.subplatform} ne "macosx"} { # When not on OS X, don't allow X11 support to be disabled, since it is the # only available option. variant_set x11 } if {[variant_isset x11]} { require_active_variants path:lib/pkgconfig/cairo.pc:cairo x11 } post-destroot { set docdir ${prefix}/share/doc/${my_name} xinstall -d ${destroot}${docdir} xinstall -m 0644 -W ${worksrcpath} AUTHORS ChangeLog COPYING MAINTAINERS NEWS README THANKS \ ${destroot}${docdir} } test.run yes test.target check livecheck.type gnome-with-unstable livecheck.name ${my_name}