# $Id: Portfile 54076 2009-07-20 03:54:42Z blb@macports.org $

PortSystem          1.0

name                imlib2
version             1.4.2
categories          graphics devel
maintainers         nomaintainer
description         Image loading and rendering library
long_description \
   Imlib is a general Image loading and rendering library designed to make \
   the task of loading images, and obtaining X-Windows drawables a simple \
   task, as well as a quick one. It also aims to provide simple \
   manipulation routines that might be desired for common operations.

platforms           darwin

homepage            http://www.enlightenment.org/pages/imlib2.html
master_sites        sourceforge:enlightenment

checksums           md5     0c866a7e696ad5ac58bc9312149f15f0 \
                    sha1    769ea1da26774cd7531d1d66432cf8d7d7b30c2b \
                    rmd160  9b1f40ee392c1e27c6a75bbf7e8c7fb379e74695

depends_build       port:pkgconfig port:autoconf port:automake port:libtool

depends_lib         port:xorg-libX11 port:xorg-libXext port:libpng \
                    port:jpeg port:libpng port:freetype port:zlib \
                    port:giflib port:libid3tag

use_autoconf        yes
autoconf.cmd        autoreconf
autoconf.args       -fvi

post-destroot {
   xinstall -m 755 -d ${destroot}${prefix}/share/doc/${name}
   eval xinstall -m 644 -W ${worksrcpath}/doc \
      [glob ${worksrcpath}/doc/*.gif] index.html \
      ${destroot}${prefix}/share/doc/${name}
}

platform i386 {
   configure.args-append   --disable-mmx --disable-amd64
}

