2009-01-12 21:12:07 +00:00
|
|
|
{stdenv, fetchurl, unzip}:
|
|
|
|
stdenv.mkDerivation {
|
2012-09-21 13:52:14 +01:00
|
|
|
name = "freeimage-3.15.3";
|
2009-01-12 21:12:07 +00:00
|
|
|
src = fetchurl {
|
2012-09-21 13:52:14 +01:00
|
|
|
url = mirror://sourceforge/freeimage/FreeImage3153.zip;
|
|
|
|
sha256 = "0i60fn1n9rw55dci0yw92zrw7k1jz3f9kv2z1wxmh84s5ngxa626";
|
2009-01-12 21:12:07 +00:00
|
|
|
};
|
|
|
|
buildInputs = [ unzip ];
|
2010-11-09 14:30:58 +00:00
|
|
|
prePatch = ''
|
2009-01-12 21:12:07 +00:00
|
|
|
sed -e s@/usr/@$out/@ \
|
|
|
|
-e 's@-o root -g root@@' \
|
|
|
|
-e 's@ldconfig@echo not running ldconfig@' \
|
2015-01-23 15:08:05 +00:00
|
|
|
-i Makefile.gnu Makefile.fip
|
2009-01-12 21:12:07 +00:00
|
|
|
'';
|
2015-01-23 15:08:05 +00:00
|
|
|
|
|
|
|
postBuild = "make -f Makefile.fip";
|
2009-01-12 21:12:07 +00:00
|
|
|
preInstall = "mkdir -p $out/include $out/lib";
|
2015-01-23 15:08:05 +00:00
|
|
|
postInstall = "make -f Makefile.fip install";
|
2009-01-12 21:12:07 +00:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Open Source library for accessing popular graphics image file formats";
|
|
|
|
homepage = http://freeimage.sourceforge.net/;
|
|
|
|
license = "GPL";
|
2009-10-02 08:39:03 +01:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2009-01-12 21:12:07 +00:00
|
|
|
};
|
|
|
|
}
|