mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-22 14:45:27 +00:00
cairo: fix FreeBSD builds
This commit is contained in:
parent
dc3fafe06d
commit
b9982a7d11
|
@ -43,7 +43,13 @@ stdenv.mkDerivation rec {
|
|||
# `-I' flags to be propagated.
|
||||
sed -i "src/cairo.pc.in" \
|
||||
-es'|^Cflags:\(.*\)$|Cflags: \1 -I${freetype}/include/freetype2 -I${freetype}/include|g'
|
||||
'';
|
||||
''
|
||||
|
||||
# On FreeBSD, `-ldl' doesn't exist.
|
||||
+ (stdenv.lib.optionalString stdenv.isFreeBSD
|
||||
'' cat util/cairo-fdr/Makefile.in | sed -es/-ldl//g > t
|
||||
mv t util/cairo-fdr/Makefile.in
|
||||
'');
|
||||
|
||||
enableParallelBuilding = true;
|
||||
|
||||
|
|
Loading…
Reference in a new issue