# $Id: Portfile 69965 2010-07-24 01:38:51Z jmr@macports.org $

PortSystem  1.0
PortGroup   muniversal 1.0
PortGroup   xcodeversion 1.0

name        glitz
version     0.5.6
revision    3
maintainers nomaintainer
categories  graphics devel x11
platforms   darwin 

description Glitz is an OpenGL image compositing library.
long_description \
    Glitz is an OpenGL image compositing library. Glitz \
    provides Porter/Duff compositing of images and implicit \
    mask generation for geometric primitives including \
    trapezoids, triangles, and rectangles.

homepage    http://www.freedesktop.org/Software/glitz/
master_sites    http://cairographics.org/snapshots/

depends_lib     port:mesa

checksums       md5 c507f140ecccc06aed8888c958edda4c \
                sha1 81604bf02ceda85ea32b52423f78a883aaec6dc6 \
                rmd160 547ef1be273856942e0fa36c097c4acb367336b2

minimum_xcodeversions {9 3.1}

configure.args \
    --mandir=${prefix}/share/man

configure.ldflags-delete \
    -L${prefix}/lib

post-destroot {
    set docdir ${prefix}/share/doc/${name}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING ChangeLog NEWS README TODO \
        ${destroot}${docdir}
}

livecheck.type  regex
livecheck.url   ${master_sites}
livecheck.regex LATEST-${name}-(\\d+(?:\\.\\d+)*)
