# $Id: Portfile 107194 2013-06-20 23:26:43Z jeremyhu@macports.org $

PortSystem			1.0

name				xrender
set my_name			libXrender
version				0.9.8
categories			x11
license				X11
platforms			darwin
maintainers			jeremyhu openmaintainer
description			X Render Extension library

long_description	${description}

homepage			http://www.x.org/
master_sites		xorg:individual/lib/
distname			${my_name}-${version}
use_bzip2			yes

checksums           sha1    0f5c843410029944bd06e19366db4932cf5944fa \
                    rmd160  13aefcd2d5436a3b7e8316b877989d0ece4399d0 \
                    sha256  1d14b02f0060aec5d90dfdcf16a996f17002e515292906ed26e3dcbba0f4fc62

depends_build \
	port:pkgconfig

depends_lib \
	port:xorg-libX11 \
	port:xorg-renderproto

use_parallel_build  yes

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

livecheck.type  regex
livecheck.url   http://www.x.org/pub/individual/lib/
livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
