# $Id: Portfile,v 1.4 2006/01/08 07:00:19 jkh Exp $

PortSystem       1.0
name             Xaw3d
version          1.5E
categories       x11
maintainers      toby@opendarwin.org
description      The Three-D Athena Toolkit
long_description \
    This release of Xaw3d is based on X.Org's X11R6.3 Athena \
    toolkit, with bits and pieces thrown in from other sources. \
    It is intended to be a general-purpose replacement for the \
    Athena (Xaw) toolkit. In general, you should be able to link \
    almost any Athena-based application to this Xaw3d Athena \
    toolkit, for a three-dimensional appearance on most of the \
    widgets. On systems with shared libraries, you might be able \
    replace your shared libXaw.* with libXaw3d.* to obtain the \
    appearance without even relinking, but the odds of this \
    working is slim, and not recommended.
homepage         http://www.visi.com/~hawkeyd/xaw3d.html
platforms        darwin
master_sites     ftp://ftp.visi.com/users/hawkeyd/X/
checksums        md5 29ecfdcd6bcf47f62ecfd672d31269a1
depends_lib      lib:libX11.6:XFree86
worksrcdir       xc/lib/${name}
patch {
    reinplace "s|XCOMM EXTRA_INCLUDES|EXTRA_INCLUDES|" "${worksrcpath}/Imakefile"
    file mkdir ${worksrcpath}/X11
    system "ln -fs .. ${worksrcpath}/X11/Xaw3d"
}
use_xmkmf        yes
