# -*- 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 80670 2011-07-16 12:24:20Z jmr@macports.org $

PortSystem              1.0
PortGroup               muniversal 1.0

name                    libpixman
conflicts               libpixman-devel
set my_name             pixman
version                 0.22.2
categories              graphics
platforms               darwin
maintainers             ryandesign
license                 X11
homepage                http://www.x.org/
master_sites            http://xorg.freedesktop.org/archive/individual/lib/ \
                        ${homepage}pub/individual/lib/
distname                ${my_name}-${version}
use_bzip2               yes
use_parallel_build      yes

description             Pixel region Library

long_description        libpixman is a generic library for manipulating pixel \
                        regions. A PixRegion is a set of Y-X banded rectangles \
                        that cover the desired region.

checksums               sha1    ad2b828ce4280472f5933d8bb5f0f4d583aed7f3 \
                        rmd160  13dbab02962cf45995aaebde4ec9a952ca8e6e76

configure.args          --disable-gtk

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    eval xinstall -m 644 -W ${worksrcpath} \
        AUTHORS \
        COPYING \
        [glob ${worksrcpath}/ChangeLog*] \
        NEWS \
        README \
        TODO \
        ${docdir}
}

livecheck.type          regex
livecheck.url           [lindex ${master_sites} 0]?C=M&O=D
livecheck.regex         ${my_name}-(\[0-9\]+\\.\[0-9\]*\[02468\](\\.\[0-9\]+)*)\\.tar
