2009-01-12 22:12:07 +01:00
|
|
|
{stdenv, fetchurl, unzip}:
|
|
|
|
stdenv.mkDerivation {
|
2010-11-09 15:30:58 +01:00
|
|
|
name = "freeimage-3.14.1";
|
2009-01-12 22:12:07 +01:00
|
|
|
src = fetchurl {
|
2010-11-09 15:30:58 +01:00
|
|
|
url = mirror://sourceforge/freeimage/FreeImage3141.zip;
|
|
|
|
sha256 = "0rgzdjwzd64z5z9j4bq075h3kfqjk8ab2dwswy0lnzw9jvmbbifm";
|
2009-01-12 22:12:07 +01:00
|
|
|
};
|
|
|
|
buildInputs = [ unzip ];
|
2010-11-09 15:30:58 +01:00
|
|
|
prePatch = ''
|
2009-01-12 22:12:07 +01:00
|
|
|
sed -e s@/usr/@$out/@ \
|
|
|
|
-e 's@-o root -g root@@' \
|
|
|
|
-e 's@ldconfig@echo not running ldconfig@' \
|
|
|
|
-i Makefile.gnu
|
|
|
|
'';
|
2010-11-09 15:30:58 +01:00
|
|
|
patches = [ ./memset.patch ];
|
2009-01-12 22:12:07 +01:00
|
|
|
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";
|
2009-10-02 09:39:03 +02:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2009-01-12 22:12:07 +01:00
|
|
|
};
|
|
|
|
}
|