2009-01-12 21:12:07 +00:00
|
|
|
{stdenv, fetchurl, unzip}:
|
|
|
|
stdenv.mkDerivation {
|
2010-04-07 15:04:04 +00:00
|
|
|
name = "freeimage-3.13.1";
|
2009-01-12 21:12:07 +00:00
|
|
|
src = fetchurl {
|
2010-04-07 15:04:04 +00:00
|
|
|
url = mirror://sourceforge/freeimage/FreeImage3131.zip;
|
|
|
|
sha256 = "1ilpfgyi3qhjra5hxvjcrq3bna909bgdl7rgmhkybmcpdq1x56rj";
|
2009-01-12 21:12:07 +00: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";
|
2009-10-02 07:39:03 +00:00
|
|
|
maintainers = with stdenv.lib.maintainers; [viric];
|
|
|
|
platforms = with stdenv.lib.platforms; linux;
|
2009-01-12 21:12:07 +00:00
|
|
|
};
|
|
|
|
}
|