# -*- 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 86737 2011-11-02 17:04:10Z raphael@macports.org $

PortSystem                  1.0

name                        gvemodules-xforms
version                     0.2
revision                    1
categories                  science graphics x11
maintainers                 raphael openmaintainer
description                 XForms based emodules of the original Geomview \
                            distribution
long_description            This package contains XForms based emodules of \
                            the original Geomview distribution. emodules \
                            are kind of plugins which extend the functionality \
                            of Geomview (an interactive 3d viewing program). \
                            The modules are based on XForms and can be used as \
                            a tool-kit for displaying projections of higher \
                            dimensional objects.
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  b5f53ed3bee35f8727309b15723d66f0b0dc07d3 \
                            sha256  9fe5462c6868007d76f82774e6d3ce3d18789bb83687794665a4fe78607887d3

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}
}
