2009-01-12 22:12:07 +01:00
|
|
|
{stdenv, fetchurl, unzip}:
|
|
|
|
stdenv.mkDerivation {
|
|
|
|
name = "freeimage-3.11.0";
|
|
|
|
src = fetchurl {
|
2009-04-25 18:21:56 +02:00
|
|
|
url = mirror://sourceforge/freeimage/FreeImage3120.zip;
|
|
|
|
sha256 = "1hvcmv8hnv3h24zcl324g3l0ww8aa8fkcfav2lrgs1kwzp5zqcd4";
|
2009-01-12 22:12:07 +01:00
|
|
|
};
|
|
|
|
buildInputs = [ unzip ];
|
|
|
|
patchPhase = ''
|
|
|
|
sed -e s@/usr/@$out/@ \
|
|
|
|
-e 's@-o root -g root@@' \
|
|
|
|
-e 's@ldconfig@echo not running ldconfig@' \
|
|
|
|
-i Makefile.gnu
|
|
|
|
'';
|
|
|
|
preInstall = "mkdir -p $out/include $out/lib";
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Open Source library for accessing popular graphics image file formats";
|
|
|
|
homepage = http://freeimage.sourceforge.net/;
|
|
|
|
license = "GPL";
|
|
|
|
};
|
|
|
|
}
|