# $Id: Portfile 57382 2009-09-10 09:42:07Z ryandesign@macports.org $

PortSystem 1.0
name            xearth
version         1.1
revision        2
categories      x11
platforms       darwin macosx
maintainers     nomaintainer
description     Draws the planet Earth in the root window
long_description "Xearth sets the X root window to an image of the Earth, as seen from your favorite vantage point in space, correctly shaded for the current position of the Sun.  By default, xearth updates the displayed image every five minutes. The time between updates can be changed using either X resource or a command-line option. Xearth can also be configured to either create and render into its own top-level Xwindow or render directly into PPM or GIF files; see the man page for details."

homepage        http://hewgill.com/xearth/original/
master_sites    ftp://ftp.eenet.ee/pub/gentoo/distfiles
checksums       md5 6e409dffaa8dc5fae1064e38935ab61f
depends_lib \
	port:xorg-libXext \
	port:xorg-libXt
use_xmkmf       yes

# xmkmf based
universal_variant no

destroot {
                xinstall -o root -m 755 -d "${destroot}${prefix}/bin"
                xinstall -o root -m 755 -d "${destroot}${prefix}/share/man/man1"
                xinstall -o root -m 755 "${worksrcpath}/xearth" "${destroot}${prefix}/bin/"
                xinstall -o root -m 644 "${worksrcpath}/xearth.man" "${destroot}${prefix}/share/man/man1/"
}
