From bdbf227fa3c1112ac19992711411c448bcf12735 Mon Sep 17 00:00:00 2001
From: Andreas Enge <andreas@enge.fr>
Date: Sat, 7 Mar 2015 20:15:28 +0100
Subject: gnu: xpdf: Fix detection of freetype.

* gnu/packages/pdf.scm (xpdf)[configure-flags]: Add flag to correctly detect
  freetype. Otherwise, the xpdf binary is not built.
---
 gnu/packages/pdf.scm | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'gnu/packages')

diff --git a/gnu/packages/pdf.scm b/gnu/packages/pdf.scm
index f75a060a4b..21fb39562b 100644
--- a/gnu/packages/pdf.scm
+++ b/gnu/packages/pdf.scm
@@ -127,7 +127,11 @@
              ("zlib" ,zlib)))
    (arguments
     `(#:tests? #f ; there is no check target
-      #:parallel-build? #f            ; build fails randomly on 8-way machines
+      #:parallel-build? #f ; build fails randomly on 8-way machines
+      #:configure-flags
+        (list (string-append "--with-freetype2-includes="
+                             (assoc-ref %build-inputs "freetype")
+                             "/include/freetype2"))
       #:phases
        (alist-replace
         'install
-- 
cgit v1.2.3