3
0
Fork 0
forked from mirrors/nixpkgs

Cairo: Arrange so that Freetype `-I' flags are propagated.

svn path=/nixpkgs/trunk/; revision=13843
This commit is contained in:
Ludovic Courtès 2009-01-25 11:50:29 +00:00
parent c1b9946c28
commit e8847fd2e7

View file

@ -28,6 +28,13 @@ stdenv.mkDerivation rec {
configureFlags =
(if pdfSupport then ["--enable-pdf"] else []);
preConfigure = ''
# Work around broken `Requires.private' that prevents Freetype
# `-I' flags to be propagated.
sed -i "src/cairo.pc.in" \
-es'|^Cflags:\(.*\)$|Cflags: \1 -I${freetype}/include/freetype2 -I${freetype}/include|g'
'';
meta = {
description = "A 2D graphics library with support for multiple output devices";