From 96a6d5f940c5be3ab9276d8fe690cbf04d01cea2 Mon Sep 17 00:00:00 2001
From: Nagy Karoly Gabriel <karasz@opensde.org>
Date: Tue, 25 Nov 2008 19:31:51 +0200
Subject: [PATCH] cairo: enhanced cairo to build without X11 if X11 is not
 available

---
 x11/cairo/cairo.conf | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/x11/cairo/cairo.conf b/x11/cairo/cairo.conf
index 8d955f42f..3643d7ef5 100644
--- a/x11/cairo/cairo.conf
+++ b/x11/cairo/cairo.conf
@@ -2,6 +2,7 @@
 # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
 #
 # Filename: package/.../cairo/cairo.conf
+# Copyright (C) 2008 The OpenSDE Project
 # Copyright (C) 2004 - 2006 The T2 SDE Project
 #
 # More information can be found in the files COPYING and README.
@@ -16,3 +17,10 @@ pkginstalled glitz && var_append confopt ' ' "--enable-glitz"
 var_append confopt ' ' "--enable-ps"
 var_append confopt ' ' "--enable-pdf"
 #var_append confopt ' ' "--enable-atsui" # Mac OS X backend ?
+
+#Disable X11 binding if X11 not available
+if ! pkginstalled libx11; then
+        var_append confopt ' ' "--enable-xlib=no"
+        var_append confopt ' ' "--enable-xlib-render=no"
+fi
+