# -*- 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
# $Id: Portfile 84477 2011-09-26 15:53:00Z raphael@macports.org $

PortSystem                  1.0

name                        orrery
version                     0.9.5
revision                    1
categories                  science graphics x11
maintainers                 raphael 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
master_sites.mirror_subdir  geomview
livecheck.name              geomview
livecheck.distname          ${name}

checksums                   rmd160  80fa23ad4245d4dbb8076526406bbf8b53335899 \
                            sha256  69415ccf25e4176cfb4609b2f10c595a466188a777778823412d26bc28224ae1

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