the Fink project is an effort to port
popular Unix programs to Mac OS X
Package: xplanet
Version: 1.2.1
Revision: 1
Description: Earth and planet renderer
License: GPL
Maintainer: Benjamin Reed
Depends: <<
freeglut-shlibs,
giflib-shlibs,
libgettext8-shlibs,
libiconv,
netpbm10-shlibs,
pango1-xft2-ft219-shlibs (>= 1.24.0-1),
x11
<<
BuildDepends: <<
cairo (>= 1.8.8-1),
expat1,
fink (>= 0.29.7-1),
fontconfig2-dev (>= 2.4.1-1),
freeglut,
freetype219 (>= 2.3.7-7),
giflib,
glib2-dev (>= 2.18.4-1),
glitz,
libgettext8-dev,
libiconv-dev,
libjpeg8,
libpng3,
libtiff,
netpbm10,
pango1-xft2-ft219-dev (>= 1.24.0-1),
pixman (>= 0.16.0-1),
pkgconfig (>= 0.23-1),
x11-dev,
xft2-dev
<<
GCC: 4.0
Source: mirror:sourceforge:%n/%n-%v.tar.gz
Source-MD5: 5dca0369ca64fa3c006b616b72b5e1cf
PatchFile: %n.patch
PatchFile-MD5: d4dea2cd0c05d7ee3f4ae804f3069e35
SetCPPFLAGS: -Wall
ConfigureParams: <<
--mandir=%p/share/man \
--x-includes=/usr/X11R6/include --x-libraries=/usr/X11R6/lib \
--with-x --with-xscreensaver \
--with-freetype --with-pango \
--without-cspice \
--with-aqua --without-quicktime \
--with-gif --with-jpeg --with-png --with-pnm --with-tiff \
--disable-dependency-tracking
<<
InstallScript: make -j1 install DESTDIR=%d
DocFiles: AUTHORS ChangeLog COPYING NEWS README TODO
Homepage: http://xplanet.sourceforge.net
DescDetail: <<
Xplanet is similar to Xearth, where an image of the earth is rendered
into an X window. Xplanet can display several different map
projections, including Azimuthal, Mercator, Mollweide, orthographic,
or rectangular, as well as a window with a globe the user can rotate
interactively. The other planets and some satellites may also be
displayed. The latest version can always be found at
http://xplanet.sourceforge.net. Versions after 0.95 lack the -animate
and other commands. If you prefer to install version 0.95, type
"fink install xplanet-0.95".
<<
DescUsage: <<
A man page is available. Also see %p/share/doc/%n/README. Configuration
options are documented in %p/share/doc/%n/README.config. Those using
xplanet as part of a screensaver and/or upgrading from a previous
version of xplanet should read the NEWS file. Many critical things have
changed, including settings for use with xscreensaver.
<<
DescPackaging: <<
Builds with support for x11, openGL and aqua (see
http://xplanet.sourceforge.net/OSX/). Added support for x screensaver
module.
Have to disable quicktime on OS X to avoid libstdc++ linking mess.
Previously maintained by James Gibbs.
dmacks fixed -I ordering. See:
http://xplanet.sourceforge.net/FUDforum2/index.php?t=msg&th=558
<<
DescPort: <<
signbit() hack stolen from FreeBSD. It's in libSystem and appears to
be in cmath, not sure why compiler can't find its prototype.
<<
diff -Nurd -x'*~' xplanet-1.2.1.orig/src/libannotate/Makefile.in xplanet-1.2.1/src/libannotate/Makefile.in
--- xplanet-1.2.1.orig/src/libannotate/Makefile.in 2009-04-16 11:11:56.000000000 -0400
+++ xplanet-1.2.1/src/libannotate/Makefile.in 2010-08-08 11:13:35.000000000 -0400
@@ -200,7 +200,7 @@
xplanet_ARFLAGS = @xplanet_ARFLAGS@
xplanet_LDFLAGS = @xplanet_LDFLAGS@
noinst_LIBRARIES = libannotate.a
-AM_CPPFLAGS = @FREETYPE_CFLAGS@ -I@top_srcdir@/src
+AM_CPPFLAGS = -I@top_srcdir@/src @FREETYPE_CFLAGS@
@USE_AR_FALSE@libannotate_a_AR = $(CXX) @xplanet_ARFLAGS@
@USE_AR_TRUE@libannotate_a_AR = $(AR) cru
@HAVE_CSPICE_TRUE@spiceFiles = addSpiceObjects.cpp
diff -Nurd -x'*~' xplanet-1.2.1.orig/src/libdisplay/Makefile.in xplanet-1.2.1/src/libdisplay/Makefile.in
--- xplanet-1.2.1.orig/src/libdisplay/Makefile.in 2009-04-16 11:11:56.000000000 -0400
+++ xplanet-1.2.1/src/libdisplay/Makefile.in 2010-08-08 11:13:23.000000000 -0400
@@ -229,7 +229,7 @@
@HAVE_LIBX11_TRUE@displayx11 = DisplayX11.cpp DisplayX11.h vroot.h
@HAVE_LIBX11_TRUE@timerx11 = TimerX11.h TimerX11.cpp
EXTRA_libdisplay_a_SOURCES = DisplayMacAqua.cpp DisplayMacAqua.h DisplayMSWin.cpp DisplayMSWin.h TextRendererFT2.cpp TextRendererFT2.h TextRendererPangoFT2.cpp TextRendererPangoFT2.h DisplayX11.cpp DisplayX11.h vroot.h TimerMacAqua.cpp TimerMacAqua.h TimerX11.cpp TimerX11.h
-AM_CPPFLAGS = @X_CFLAGS@ @FREETYPE_CFLAGS@ -I@top_srcdir@/src
+AM_CPPFLAGS = -I@top_srcdir@/src @X_CFLAGS@ @FREETYPE_CFLAGS@
@USE_AR_FALSE@libdisplay_a_AR = $(CXX) @xplanet_ARFLAGS@
@USE_AR_TRUE@libdisplay_a_AR = $(AR) cru
@USE_AR_FALSE@libtimer_a_AR = $(CXX) @xplanet_ARFLAGS@
diff -Nurd -x'*~' xplanet-1.2.1.orig/src/libmultiple/Makefile.in xplanet-1.2.1/src/libmultiple/Makefile.in
--- xplanet-1.2.1.orig/src/libmultiple/Makefile.in 2009-04-16 11:11:57.000000000 -0400
+++ xplanet-1.2.1/src/libmultiple/Makefile.in 2010-08-08 11:12:53.000000000 -0400
@@ -190,7 +190,7 @@
xplanet_ARFLAGS = @xplanet_ARFLAGS@
xplanet_LDFLAGS = @xplanet_LDFLAGS@
noinst_LIBRARIES = libmultiple.a
-AM_CPPFLAGS = @FREETYPE_CFLAGS@ -I@top_srcdir@/src
+AM_CPPFLAGS = -I@top_srcdir@/src @FREETYPE_CFLAGS@
@USE_AR_FALSE@libmultiple_a_AR = $(CXX) @xplanet_ARFLAGS@
@USE_AR_TRUE@libmultiple_a_AR = $(AR) cru
libmultiple_a_SOURCES = \
diff -Nurd -x'*~' xplanet-1.2.1.orig/src/libprojection/ProjectionIcosagnomonic.cpp xplanet-1.2.1/src/libprojection/ProjectionIcosagnomonic.cpp
--- xplanet-1.2.1.orig/src/libprojection/ProjectionIcosagnomonic.cpp 2009-04-16 11:10:08.000000000 -0400
+++ xplanet-1.2.1/src/libprojection/ProjectionIcosagnomonic.cpp 2010-08-08 11:11:32.000000000 -0400
@@ -26,6 +26,19 @@
#define THIGH 3
#define RATIO (((THIGH)*sqrt(3.0)/2)/(TWIDE))
+/* signbit() appaired only in FreeBSD 5.1, so we need this hack */
+#ifndef signbit
+static int
+signbit(double x)
+{
+
+ if ((x < 0.0) || (x = -0.0))
+ return 1;
+ else
+ return 0;
+}
+#endif /* signbit */
+
bool
ProjectionIcosagnomonic::PointXY::sameSide(const PointXY& p1,
const PointXY& p2,