abiword: Fix glib/gdx_pixbuf related build errors.
A bunch of these includes expect extra prefixes which we don't have in Nix, so we are going to batch-fix them with sed. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
de81ec924b
commit
c91662f979
|
@ -4,12 +4,22 @@
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "abiword-2.8.6";
|
name = "abiword-2.8.6";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://www.abisource.org/downloads/abiword/2.8.6/source/abiword-2.8.6.tar.gz;
|
url = http://www.abisource.org/downloads/abiword/2.8.6/source/abiword-2.8.6.tar.gz;
|
||||||
sha256 = "059sd2apxdmcacc4pll880i7vm18h0kyjsq299m1mz3c7ak8k46r";
|
sha256 = "059sd2apxdmcacc4pll880i7vm18h0kyjsq299m1mz3c7ak8k46r";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
prePatch = ''
|
||||||
|
sed -i -e '/#include <glib\/gerror.h>/d' src/af/util/xp/ut_go_file.h
|
||||||
|
sed -i -e 's|#include <glib/gmacros.h>|#include <glib.h>|' \
|
||||||
|
goffice-bits/goffice/app/goffice-app.h
|
||||||
|
sed -i -e 's/ptr->jmpbuf/jmpbuf(png_ptr)/' src/af/util/xp/ut_png.cpp
|
||||||
|
sed -i -e 's/\(m_pPNG\)->\(jmpbuf\)/png_\2(\1)/' \
|
||||||
|
src/wp/impexp/gtk/ie_impGraphic_GdkPixbuf.cpp
|
||||||
|
sed -i -e 's/--no-undefined //' src/Makefile*
|
||||||
|
'';
|
||||||
|
|
||||||
buildInputs =
|
buildInputs =
|
||||||
[ pkgconfig gtk libglade librsvg bzip2 libgnomecanvas fribidi libpng popt
|
[ pkgconfig gtk libglade librsvg bzip2 libgnomecanvas fribidi libpng popt
|
||||||
libgsf enchant wv libjpeg
|
libgsf enchant wv libjpeg
|
||||||
|
|
Loading…
Reference in New Issue