# -*- 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
PortGroup compiler_blacklist_versions 1.0
PortGroup xcodeversion 1.0
# Please keep the cairo and cairo-devel ports as similar as possible.
maintainers {ryandesign @ryandesign}
license {LGPL-2.1 MPL-1.1}
homepage https://www.cairographics.org/
master_sites ${homepage}snapshots/
distname ${my_name}-${version}
description a vector graphics library with cross-device output support
long_description Cairo is ${description}. It is designed to produce \
identical output on all output media while taking \
advantage of display hardware acceleration when \
available (e.g. through the X Render Extension).
checksums rmd160 f7c013af222c0bf55f123fa97ccb8b055a60f982 \
sha256 7623081b94548a47ee6839a7312af34e9322997806948b6eec421a8c6d0594c9 \
depends_build port:pkgconfig
depends_lib path:lib/pkgconfig/pixman-1.pc:libpixman \
path:lib/pkgconfig/glib-2.0.pc:glib2 \
minimum_xcodeversions {8 2.4.1}
# Prevent cairo from using librsvg, libspectre, poppler.
patchfiles-append patch-configure.diff
if {[vercmp ${macosx_deployment_target} 10.5] < 0} {
# Restore support for Quartz on Tiger.
# https://cgit.freedesktop.org/cairo/commit/?id=5a8a9c97ed268004cbac510d39739ff56c0fb43c
patchfiles-append patch-tiger.diff
# https://trac.macports.org/ticket/34137
compiler.blacklist-append {clang < 318.0.61}
# https://trac.macports.org/ticket/27011
if {${build_arch} eq "x86_64" || ([variant_isset universal] && [lsearch ${universal_archs} x86_64] != -1)} {
compiler.blacklist-append gcc-4.0