# -*- 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                        gvemodules-xforms
version                     0.5
categories                  science graphics x11
maintainers                 {raphael @raphael-st} 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:project/geomview/${name}

use_xz                      yes

checksums                   rmd160  3c8f08b778ec64d0ffa2ad2db600a7c57cd7eca2 \
                            sha256  6084c14728ce53f7360894e71ab66aa419b23fc37eb4588d0aaf32ce439fd8ed \
                            size    360536

depends_lib                 port:geomview \
                            port:xforms

configure.cflags-append -std=gnu89

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}