about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/libraries/cairo/0004-util-don-t-build-cairo-sphinx-unless-PNG-enabled.patch
blob: 702c4d49e4842c24240c828c33c30c1037fa427a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From 8b7816ea38a1869e7de94341e3ea9e1eebb8eb4f Mon Sep 17 00:00:00 2001
From: Alyssa Ross <hi@alyssa.is>
Date: Mon, 22 Apr 2019 13:08:30 +0000
Subject: [PATCH 4/5] util: don't build cairo-sphinx unless PNG enabled

cairo-sphinx won't build without libpng, because
cairo_surface_write_to_png won't be defined.
---
 util/Makefile.am | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/util/Makefile.am b/util/Makefile.am
index 82d0a804c..119b59f48 100644
--- a/util/Makefile.am
+++ b/util/Makefile.am
@@ -25,11 +25,13 @@ if BUILD_SPHINX
 if CAIRO_HAS_DLSYM
 if CAIRO_HAS_SCRIPT_SURFACE
 if CAIRO_HAS_TEE_SURFACE
+if CAIRO_HAS_PNG_FUNCTIONS
 SUBDIRS += cairo-sphinx
 endif
 endif
 endif
 endif
+endif
 
 AM_CPPFLAGS = -I$(top_srcdir)/src \
 	      -I$(top_builddir)/src \
-- 
2.19.2