at v192 43 lines 1.4 kB view raw
1{ stdenv, fetchurl, x11, libjpeg, libtiff, giflib, libpng, bzip2, pkgconfig }: 2 3stdenv.mkDerivation rec { 4 name = "imlib2-1.4.6"; 5 6 src = fetchurl { 7 url = "mirror://sourceforge/enlightenment/${name}.tar.bz2"; 8 sha256 = "0x1j0ylpclkp8cfpwfpkjywqz124bqskyxbw8pvwzkv2gmrbwldg"; 9 }; 10 11 buildInputs = [ x11 libjpeg libtiff giflib libpng bzip2 ]; 12 13 nativeBuildInputs = [ pkgconfig ]; 14 15 # From 16 # https://github.com/PhantomX/slackbuilds/blob/master/imlib2/patches/imlib2-giflib51.patch 17 patches = [ ./giflib51.patch ]; 18 19 preConfigure = '' 20 substituteInPlace imlib2-config.in \ 21 --replace "@my_libs@" "" 22 ''; 23 24 # Do not build amd64 assembly code on Darwin, because it fails to compile 25 # with unknow directive errors 26 configureFlags = if stdenv.isDarwin then [ "--enable-amd64=no" ] else null; 27 28 meta = { 29 description = "Image manipulation library"; 30 31 longDescription = '' 32 This is the Imlib 2 library - a library that does image file loading and 33 saving as well as rendering, manipulation, arbitrary polygon support, etc. 34 It does ALL of these operations FAST. Imlib2 also tries to be highly 35 intelligent about doing them, so writing naive programs can be done 36 easily, without sacrificing speed. 37 ''; 38 39 license = stdenv.lib.licenses.free; 40 platforms = stdenv.lib.platforms.unix; 41 maintainers = with stdenv.lib.maintainers; [ spwhitt ]; 42 }; 43}