# $Id: Portfile 93876 2012-06-02 08:30:31Z jeremyhu@macports.org $

PortSystem 1.0

name            xorg-libXaw
version         1.0.11
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           sha1    a27556b14e2b4c250afcb98b6e99eebd7623816f \
                    rmd160  551785a6b92a2b274354615e7dff343d9cf059ae \
                    sha256  87a874acbb71d1ee59b8047312fc91d89dcb373e2970f121184cdae29a3d9492

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