# $Id: Portfile,v 1.8 2006/04/04 06:15:19 markd Exp $

PortSystem 1.0
name		xglobe
version	 	0.5p2
categories	x11
maintainers	darwinports@opendarwin.org
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.1:qt3 lib:libX11.6:XFree86
patchfiles	patch-Makefile patch-renderer_cpp
configure	{ 	reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/Makefile 
			reinplace "s|@@X11PREFIX@@|${x11prefix}|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"
}
