# -*- 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-xforms-example
version                     0.4
categories                  science graphics x11
maintainers                 {raphael @raphael-st} openmaintainer
description                 The example emodule defined in the Geomview \
                            manual
long_description            This is the example emodule defined in the \
                            Geomview manual. 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  bda9c2e65ad521a7566d39fc465c2829d73f2bd0 \
                            sha256  83d26c25d754f09b5faf4c73beafd3b69495b198cbb01fdbdf57f962b16b9a39 \
                            size    274352

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}