# -*- 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 80121 2011-07-04 20:04:52Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               muniversal 1.0

name                    libpixman-devel
conflicts               libpixman
set my_name             pixman
version                 0.23.2
categories              graphics
platforms               darwin
maintainers             ryandesign
license                 pixman
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    62568ed6eb84c0312cc0e6f9c5f4bc12b8202492 \
                        rmd160  12b149a504c2c0374d80ce45b51eeac0a97f1971

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\]*\[13579\](\\.\[0-9\]+)*)\\.tar
