# $Id: Portfile 111124 2013-09-15 23:36:18Z jeremyhu@macports.org $

PortSystem 1.0

name            xorg-libXaw
version         1.0.12
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    6919476379accaf21f2331004e5cfa7939a6786b \
                    rmd160  6890ff045546537755826d0010fbf08150a1d162 \
                    sha256  96fc314874fce9979556321d1d6ee00b5baf32fb333b7278853b4983bc3cdbf6

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