# $Id: Portfile 80601 2011-07-15 16:11:59Z jmr@macports.org $

PortSystem 1.0

name            xorg-libXaw
version         1.0.9
categories      x11 devel
license         X11
maintainers     jeremyhu openmaintainer
description     X.org libXaw
homepage        http://www.x.org
platforms       darwin macosx
long_description Athena Widgets toolkit
master_sites     xorg:individual/lib/

distname    libXaw-${version}
checksums           md5     ccc57478c41b7a75b9702241b889b1d4 \
                    sha1    5f8fc1b10316f31d4c6fa1d938b2297ff5bd2da5 \
                    rmd160  e2b789857f477479860fde26d1ec78cb63781903

use_bzip2   yes
use_parallel_build      yes

depends_build   port:pkgconfig \
                port:groff

depends_lib     port:xorg-libsm \
                port:xorg-libXext \
                port:xorg-libXmu \
                port:xpm \
                port:xorg-libXt

configure.args \
        --disable-specs \
        --without-xmlto \
        --without-fop

variant docs description "Install extra documentation" {
	depends_build-append \
		port:fop \
		port:xmlto \
		port:xorg-sgml-doctools

	depends_skip_archcheck-append \
		xmlto

	configure.args-delete \
		--without-fop \
		--without-xmlto \
		--disable-specs

	configure.args-append \
		--with-fop \
		--with-xmlto \
		--enable-specs

	configure.env-append \
		FOP="${prefix}/bin/fop" \
		XMLTO="${prefix}/bin/xmlto"
}

livecheck.type  regex
livecheck.url   http://xorg.freedesktop.org/archive/individual/lib/?C=M&O=D
livecheck.regex libXaw-(\\d+(?:\\.\\d+)*)
