# $Id: Portfile 50572 2009-05-04 19:19:09Z jeremyhu@macports.org $

PortSystem 1.0
name		xglobe
version	 	0.5p2
categories	x11
maintainers	nomaintainer
description	XGlobe displays the earth as seen from space on your X desktop.
long_description	XGlobe displays the earth as seen from space on your X desktop, similar \
			to xearth by Kirk Lauritz Johnson. \
			The image of the globe is updated at regular intervals. \
			XGlobe uses a world map image which is mapped to the globe. \
			With a good map this can look very nice. \
			It is possible to mark locations on the globe. \
			This port includes the work done by Mark Espie from OpenBSD, that has not \
			yet be included upstream. Also there is a markerfile with the positions of \
			the OpenDarwin developers.
homepage	http://www.cs.unc.edu/~scheuerm/xglobe/
platforms	darwin
master_sites	ftp://quatramaran.ens.fr/pub/espie/
checksums	md5 068520cc8e835338e90ecc6e42f7d77b
depends_lib	lib:libqt-mt.3:qt3
universal_variant no
patchfiles	patch-Makefile patch-renderer_cpp
configure	{ 	reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/Makefile 
			reinplace "s|@@X11PREFIX@@|${prefix}|g" ${worksrcpath}/Makefile }
destroot.args	DESTDIR=${destroot}
destroot.destdir	prefix=${destroot}${prefix}
post-destroot	{	 system "install -c \
                     		${portpath}/files/xglobe-markers.opendarwin ${destroot}${prefix}/share/xglobe/" }


post-install {
ui_msg "\n
xglobe starts in the X11 root window so enable the full screen menu
in Apple's X11 preferences menu and then use Command-Shift-A to
enter and exit full screen mode to view xglobe in the X11 root window.
\n"
}
