3
0
Fork 0
forked from mirrors/nixpkgs

clean some include flags that weren't really needed

Tested the builds still work (x86_64-linux).
This commit is contained in:
Vladimír Čunát 2013-08-03 10:45:13 +02:00
parent d374527509
commit 98f3716650
7 changed files with 7 additions and 18 deletions

View file

@ -18,10 +18,6 @@ stdenv.mkDerivation {
configureFlags = "--with-world --enable-gmp --enable-shared";
makeFlags = "world";
preConfigure = ''
export NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${freetype}/include/freetype2"
'';
meta = {
homepage = http://www.swi-prolog.org/;
description = "A Prolog compiler and interpreter";

View file

@ -34,8 +34,6 @@ stdenv.mkDerivation rec {
++ optional pdfSupport "--enable-pdf"
;
NIX_CFLAGS_COMPILE = "-I${pixman}/include/pixman-1";
preConfigure =
# On FreeBSD, `-ldl' doesn't exist.
(stdenv.lib.optionalString stdenv.isFreeBSD

View file

@ -12,15 +12,17 @@
# $out/bin/gtester-report' to postInstall if this is solved
let
# some packages don't get "Cflags" from pkgconfig correctly
# and then fail to build when directly including like <glib/...>
# Some packages don't get "Cflags" from pkgconfig correctly
# and then fail to build when directly including like <glib/...>.
# This is intended to be run in postInstall of any package
# which has $out/include/ containing just some disjunct directories.
flattenInclude = ''
for dir in $out/include/*; do
cp -r $dir/* "$out/include/"
for dir in "$out"/include/*; do
cp -r "$dir"/* "$out/include/"
rm -r "$dir"
ln -s . "$dir"
done
ln -sr -t "$out/include/" $out/lib/*/include/* 2>/dev/null || true
ln -sr -t "$out/include/" "$out"/lib/*/include/* 2>/dev/null || true
'';
in
with { inherit (stdenv.lib) optionalString; };

View file

@ -9,8 +9,6 @@ stdenv.mkDerivation rec {
sha256 = "08aqis6j8nd1lb4f2h4h9d9kjvp54iwf8zvqzss0qn4v7nfcjyvx";
};
NIX_CFLAGS_COMPILE = "-I${cairo}/include/cairo";
buildInputs = stdenv.lib.optionals stdenv.isDarwin [ gettext fontconfig ];
nativeBuildInputs = [ pkgconfig ];

View file

@ -11,8 +11,6 @@ stdenv.mkDerivation rec {
nativeBuildInputs = [ pkgconfig ];
propagatedBuildInputs = [ pango glibmm cairomm libpng cairo ];
NIX_CFLAGS_COMPILE = "-I${cairo}/include/cairo";
meta = with stdenv.lib; {
description = "C++ interface to the Pango text rendering library";
homepage = http://www.pango.org/;

View file

@ -32,8 +32,6 @@ stdenv.mkDerivation rec {
configureFlags = if libX11 != null then ["--with-x"] else ["--without-x"];
NIX_CFLAGS_COMPILE = "-I${cairo}/include/cairo";
postInstall = stdenv.lib.optionalString (libX11 != null) ''
wrapProgram $out/bin/gnuplot \
--prefix PATH : '${gnused}/bin' \

View file

@ -35,7 +35,6 @@ rec {
sed -e s@ncurses/curses.h@curses.h@g -i $(grep ncurses/curses.h -rl . )
sed -e '1i\#include <string.h>\n\#include <stdlib.h>' -i $( find libs/teckit -name '*.cpp' -o -name '*.c' )
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${freetype}/include/freetype2"
NIX_CFLAGS_COMPILE="$NIX_CFLAGS_COMPILE -I${icu}/include/layout";
./Build --prefix="$out" --datadir="$out/share" --mandir "$out/share/man" --infodir "$out/share/info" \