# $Id: Portfile 90522 2012-03-08 05:03:30Z jeremyhu@macports.org $

PortSystem			1.0

name				xrender
set my_name			libXrender
version				0.9.7
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    6e4d75d8316d5217324258f555eba3a5d383feb2 \
                    rmd160  2641fde5d38b158e56e78382c36906b313a3c525 \
                    sha256  f9b46b93c9bc15d5745d193835ac9ba2a2b411878fad60c504bbb8f98492bbe6

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+)*)
