# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
# $Id: Portfile 86736 2011-11-02 17:03:17Z raphael@macports.org $

PortSystem                  1.0

name                        gvemod-xforms-example
version                     0.2
revision                    1
categories                  science graphics x11
maintainers                 raphael openmaintainer
description                 The example emodule defined in the Geomview \
                            manual
long_description            This is the example emodule defined in the \
                            Geomview manual. emodules are kind of plugins \
                            which extend the functionality of Geomview \
                            (an interactive 3d viewing program).
homepage                    http://www.geomview.org/
license                     LGPL-2+
platforms                   darwin
master_sites                sourceforge
master_sites.mirror_subdir  geomview
livecheck.name              geomview
livecheck.distname          ${name}

checksums                   rmd160  607fc3f476716aae29ab357b0194e7056a57ae4a \
                            sha256  d0de14dd9a88bc7c4aff1dc6cf3be92b96dee22acd99ccf35f0835b834e129cd

depends_lib                 port:geomview \
                            port:xforms

if {${configure.compiler} == "clang"} {
    configure.compiler llvm-gcc-4.2
}

platform darwin 9 { configure.ldflags-append \
    -Wl,-dylib_file,/System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib:\
        /System/Library/Frameworks/OpenGL.framework/Versions/A/Libraries/libGL.dylib
}

post-destroot {
    set docdir ${destroot}${prefix}/share/doc/${name}
    xinstall -d ${docdir}
    xinstall -m 644 -W ${worksrcpath} \
        AUTHORS \
        COPYING \
        ChangeLog \
        NEWS \
        README \
        ${docdir}
}
