# $Id: Portfile 91336 2012-03-30 02:54:01Z jeremyhu@macports.org $

PortSystem 1.0

name            Xaw3d
version         1.6.2
categories      x11 devel
license         X11
maintainers     jeremyhu openmaintainer
description     Athena Widgets toolkit library with 3-D styled widgets
homepage        http://www.x.org
platforms       darwin macosx
long_description ${description}
master_sites     xorg:individual/lib/

distname    libXaw3d-${version}
checksums           sha1    0b1db72e9d5be0edae57cda213860c0289fac12f \
                    rmd160  0837e67bcae5e7191f1fef5522d572cc3b397d1d \
                    sha256  b74f11681061c1492c03cbbe6e318f9635b3877af0761fc0e67e1467c3a6972b

use_bzip2   yes
use_parallel_build      yes

depends_build   port:pkgconfig

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

patch.pre_args -p1
patchfiles \
    0001-Xaw3d-1.6.1-3Dlabel.patch.patch \
    0002-Xaw3d-1.6.1-fontset.patch.patch \
    0003-Xaw3d-1.6.1-hsbar.patch.patch

configure.args \
        --enable-internationalization

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