# -*- 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

PortSystem                  1.0

name                        gvemod-cplxview
version                     0.3
categories                  science graphics x11
maintainers                 {raphael @raphael-st} 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:project/geomview/${name}

use_xz                      yes

checksums                   rmd160  f9d2dd9ae1bdde009b15d43e87f915432f7d1628 \
                            sha256  82aec27012e44992e272606924b0d4ae9a68fd79b9d864d391e2280302f1f1df \
                            size    246924

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

livecheck.url               http://sourceforge.net/projects/geomview/files/${name}/
livecheck.type              regex
livecheck.regex             ${name}-(\[0-9.\]+)${extract.suffix}