# -*- 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-ndview
version                     0.4
categories                  science graphics x11
maintainers                 {raphael @raphael-st} openmaintainer
description                 A Geomview emodule for displaying projections \
                            of higher dimensional objects.
long_description            This package contains the NDview emodule and \
                            the emodules of the src/bin/ndutils directory \
                            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 \
                            Tcl/Tk 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:project/geomview/${name}

use_xz                      yes

checksums                   rmd160  b45a9e8693a5eae1d736591c74b011e20302e814 \
                            sha256  86ff5c6b9f5772202885657e98e66e8aa5ada3d562c01dca66d0e1d7c6e4057f \
                            size    311652

depends_lib                 port:geomview \
                            port:tk

configure.cppflags-append   -DUSE_INTERP_RESULT

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

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
}

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