# -*- 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 84470 2011-09-26 15:32:15Z raphael@macports.org $

PortSystem                  1.0

name                        gvemod-cplxview
version                     0.2
revision                    1
categories                  science graphics x11
maintainers                 raphael openmaintainer
description                 a Geomview plugin for the visualisation of complex \
                            functions
long_description            This is the Cplxview emodule, a Geomview plugin for \
                            the visualisation of complex functions. 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  af1b0311bba5c06606411713cbcc4780e0366394 \
                            sha256  05720ec3652fe7ee121efdd2a41d8261e1e1d6f8a51bb991ac287456d229e67b

depends_lib                 port:geomview \
                            port:xforms

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