# -*- 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 112820 2013-11-02 03:54:22Z ryandesign@macports.org $

PortSystem              1.0
PortGroup               compiler_blacklist_versions 1.0
PortGroup               muniversal 1.0

# Please keep the libpixman and libpixman-devel ports as similar as possible.

name                    libpixman-devel
conflicts               libpixman
set my_name             pixman
version                 0.31.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               rmd160  e75e67a34f849e50c474ae6470492150eae8168f \
                        sha256  f1db6a9efa66e134665370eaf98bb425fc2170a5515907ff82f6c953a545f755

# llvm-gcc-4.2 makes cairo fail to generate PDFs properly
# clang on Xcode 4.1 cannot build libpixman
compiler.blacklist      llvm-gcc-4.2 {clang < 211.10.1}

configure.args          ac_cv_prog_AWK=/usr/bin/awk \
                        ac_cv_path_GREP=/usr/bin/grep \
                        lt_cv_path_SED=/usr/bin/sed \
                        --disable-gtk \
                        --disable-libpng \
                        --disable-mmx

build.args              V=1

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    eval xinstall -m 644 -W ${worksrcpath} \
        COPYING \
        README \
        ${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
