# -*- 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                        orrery
version                     0.9.7
categories                  science graphics x11
maintainers                 {raphael @raphael-st} openmaintainer
description                 A digital model of the solar system within \
                            Geomview
long_description            The Orrery is a digital model of the solar \
                            system, named for the mechanical models of the \
                            same name (often you'll see one with just the \
                            Sun, Earth and Moon, as little balls supported on \
                            wires). The first such was built for the fourth \
                            Earl of Orrery in the 1700s. It includes all nine \
                            planets, some of their satellites, and a few \
                            recent comets. Orrery is a Geomview module.
homepage                    http://www.geomview.org/
license                     GPL-2+
platforms                   darwin
master_sites                sourceforge:project/geomview/${name}

use_xz                      yes

checksums                   rmd160  09fb019d55a93ccdcfb9e52a1db7ae3ff24be705 \
                            sha256  22597a3ca3d90e21c51b07827991e4ee4bb3d6cca7e1021bcdff42fd790bf7a5 \
                            size    1421616

depends_lib                 port:geomview \
                            port:tk

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}
