# -*- 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.
checksums rmd160 c3fb165a2a781d30683cfb028b91492c552acb42 \
sha256 6b70d4655e2a47a22b101c666f4b29ba746eda4aa8a0f7255b32b2e9408801df \
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).
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
# 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
configure.args --disable-gl \