# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 104634 2013-03-30 13:34:07Z cal@macports.org $

PortSystem 1.0

name            gdk-pixbuf
version         0.22.0
set branch      [join [lrange [split ${version} .] 0 1] .]
revision        8
categories      graphics
maintainers     nomaintainer
license         LGPL

description     generic image handling library for Gtk+ programs
homepage        http://www.gnome.org/
platforms       darwin

long_description The GdkPixBuf library provides a number of features, \
                 such as image loading facilities, a cache interface, \
                 and rendering of a GdkPixBuf into various formats.

master_sites    gnome:sources/${name}/${branch}

use_bzip2       yes
checksums       md5 05fcb68ceaa338614ab650c775efc2f2

depends_build   port:tiff port:jpeg port:libpng \
                port:glib1 port:gtk1

universal_variant no

patchfiles      patch-Makefile.in.diff patch-configure.diff \
                patch-ltmain.sh.diff patch-gdk-pixbuf-Makefile.in.diff \
                patch-underquoting.diff patch-libpng-1.5.diff

configure.cflags-append "-L${prefix}/lib"
configure.env           LIBS="-L${prefix}/lib"
configure.args  --with-html-dir=${prefix}/share/doc/$name --disable-gtk-doc

# ccache: invalid option -- d
configure.ccache no

livecheck.type  gnome
livecheck.regex {LATEST-IS-(0\.\d*[02468](?:\.\d+)*)}
