summaryrefslogtreecommitdiff
path: root/misc/celestia
diff options
context:
space:
mode:
authorsalo <salo>2003-05-08 23:47:03 +0000
committersalo <salo>2003-05-08 23:47:03 +0000
commit28d5afbba9eb6b9da06f89f3c68e9c3e07ea2c79 (patch)
treedaeb84f299c709fbe53c07226d3728a0a4fe0877 /misc/celestia
parentaa7ff5291e62e92ce609c48482971ce627ba54e7 (diff)
downloadpkgsrc-28d5afbba9eb6b9da06f89f3c68e9c3e07ea2c79.tar.gz
Import of celestia-1.3.0: Free real-time 3D space simulator.
Celestia is a free real-time space simulation that lets you experience our universe in three dimensions. Unlike most planetarium software, Celestia doesn't confine you to the surface of the Earth. You can travel throughout the solar system, to any of over 100,000 stars, or even beyond the galaxy. All travel in Celestia is seamless; the exponential zoom feature lets you explore space across a huge range of scales, from galaxy clusters down to spacecraft only a few meters across. A 'point-and-goto' interface makes it simple to navigate through the universe to the object you want to visit. This is the base package with data and simple GLUT-driven display window. Package submitted by Cesar C. Catrian to pkgsrc-wip, modified by me.
Diffstat (limited to 'misc/celestia')
-rw-r--r--misc/celestia/DESCR10
-rw-r--r--misc/celestia/Makefile29
-rw-r--r--misc/celestia/Makefile.common39
-rw-r--r--misc/celestia/PLIST223
-rw-r--r--misc/celestia/distinfo9
-rw-r--r--misc/celestia/patches/patch-aa154
-rw-r--r--misc/celestia/patches/patch-ab13
-rw-r--r--misc/celestia/patches/patch-ac12
-rw-r--r--misc/celestia/patches/patch-ad13
-rw-r--r--misc/celestia/patches/patch-ae13
10 files changed, 515 insertions, 0 deletions
diff --git a/misc/celestia/DESCR b/misc/celestia/DESCR
new file mode 100644
index 00000000000..bf3e3371630
--- /dev/null
+++ b/misc/celestia/DESCR
@@ -0,0 +1,10 @@
+Celestia is a free real-time space simulation that lets you experience our
+universe in three dimensions. Unlike most planetarium software, Celestia
+doesn't confine you to the surface of the Earth. You can travel throughout
+the solar system, to any of over 100,000 stars, or even beyond the galaxy.
+All travel in Celestia is seamless; the exponential zoom feature lets you
+explore space across a huge range of scales, from galaxy clusters down to
+spacecraft only a few meters across. A 'point-and-goto' interface makes it
+simple to navigate through the universe to the object you want to visit.
+
+This is the base package with data and simple GLUT-driven display window.
diff --git a/misc/celestia/Makefile b/misc/celestia/Makefile
new file mode 100644
index 00000000000..77bbc10c71e
--- /dev/null
+++ b/misc/celestia/Makefile
@@ -0,0 +1,29 @@
+# $NetBSD: Makefile,v 1.1.1.1 2003/05/08 23:47:03 salo Exp $
+#
+
+.include "../../misc/celestia/Makefile.common"
+
+COMMENT= Free real-time 3D space simulator
+
+USE_PKGINSTALL= YES
+USE_GMAKE= YES
+
+CONFIGURE_ARGS+= --without-gtk
+CONFIGURE_ARGS+= --without-kde
+
+DOCDIR= ${PREFIX}/share/doc/celestia
+EGDIR= ${PREFIX}/share/examples/celestia
+
+CONF_FILES= ${EGDIR}/celestia.cfg.default ${PKG_SYSCONFDIR}/celestia.cfg
+
+post-install:
+ ${INSTALL_DATA_DIR} ${DOCDIR}
+ ${INSTALL_DATA} ${WRKSRC}/COPYING ${WRKSRC}/controls.txt ${DOCDIR}
+ ${INSTALL_DATA_DIR} ${EGDIR}
+ ${INSTALL_DATA} ${WRKSRC}/celestia.cfg ${EGDIR}/celestia.cfg.default
+
+.include "../../graphics/Mesa/buildlink2.mk"
+.include "../../graphics/jpeg/buildlink2.mk"
+.include "../../graphics/png/buildlink2.mk"
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/misc/celestia/Makefile.common b/misc/celestia/Makefile.common
new file mode 100644
index 00000000000..a2d062c8be3
--- /dev/null
+++ b/misc/celestia/Makefile.common
@@ -0,0 +1,39 @@
+# $NetBSD: Makefile.common,v 1.1.1.1 2003/05/08 23:47:03 salo Exp $
+#
+
+DISTNAME= celestia-${CELESTIA_VERS}
+CATEGORIES= misc x11
+MASTER_SITES= ${MASTER_SITE_SOURCEFORGE:=celestia/}
+
+MAINTAINER= cesar_catrian@yahoo.com
+HOMEPAGE= http://www.shatters.net/celestia/
+
+DISTINFO_FILE= ${.CURDIR}/../../misc/celestia/distinfo
+PATCHDIR= ${.CURDIR}/../../misc/celestia/patches
+
+CELESTIA_VERS= 1.3.0
+
+USE_BUILDLINK2= YES
+GNU_CONFIGURE= YES
+USE_X11= YES
+USE_LIBTOOL= YES
+
+LIBTOOL_OVERRIDE= ${WRKSRC}/libtool
+
+CONFIGURE_ARGS+= --includedir=${PREFIX}/include
+CONFIGURE_ARGS+= --with-lua=${BUILDLINK_PREFIX.lua}
+
+CXXFLAGS= -DPKG_SYSCONFDIR=\"\\\"${PKG_SYSCONFDIR}\\\"\"
+
+.include "../../mk/bsd.prefs.mk"
+
+.if exists(${X11BASE}/include/X11/extensions/Xinerama.h)
+CONFIGURE_ARGS+= --with-xinerama
+.endif
+
+.include "../../lang/lua/buildlink2.mk"
+.include "../../mk/pthread.buildlink2.mk"
+
+.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "none")
+CONFIGURE_ARGS+= --disable-threading
+.endif
diff --git a/misc/celestia/PLIST b/misc/celestia/PLIST
new file mode 100644
index 00000000000..085f5772bd5
--- /dev/null
+++ b/misc/celestia/PLIST
@@ -0,0 +1,223 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2003/05/08 23:47:03 salo Exp $
+bin/celestia
+share/celestia/data/asterisms.dat
+share/celestia/data/boundaries.dat
+share/celestia/data/deepsky.dsc
+share/celestia/data/extrasolar.ssc
+share/celestia/data/galaxies.dat
+share/celestia/data/galileo.xyz
+share/celestia/data/hdnames.dat
+share/celestia/data/solarsys.ssc
+share/celestia/data/starnames.dat
+share/celestia/data/stars.dat
+share/celestia/demo.cel
+share/celestia/extras/apollo.ssc
+share/celestia/extras/comets.ssc
+share/celestia/extras/minormoons.ssc
+share/celestia/extras/numberedmoons.ssc
+share/celestia/extras/shroxclassic.ssc
+share/celestia/extras/shroxmars.ssc
+share/celestia/extras/skylab.ssc
+share/celestia/fonts/clean12.txf
+share/celestia/fonts/clean16.txf
+share/celestia/fonts/cleanbold12.txf
+share/celestia/fonts/cleanbold16.txf
+share/celestia/fonts/default.txf
+share/celestia/fonts/helv10.txf
+share/celestia/fonts/helv12.txf
+share/celestia/fonts/helv18.txf
+share/celestia/fonts/helv24.txf
+share/celestia/fonts/helvbold12.txf
+share/celestia/fonts/helvbold18.txf
+share/celestia/fonts/helvbold24.txf
+share/celestia/fonts/sansbold20.txf
+share/celestia/guide.cel
+share/celestia/models/amalthea.3ds
+share/celestia/models/apollo.3ds
+share/celestia/models/asteroid.cms
+share/celestia/models/bacchus.3ds
+share/celestia/models/borrelly.cms
+share/celestia/models/castalia.3ds
+share/celestia/models/deimos.3ds
+share/celestia/models/epimetheus.3ds
+share/celestia/models/eros.3ds
+share/celestia/models/eros.cms
+share/celestia/models/galileo.3ds
+share/celestia/models/gaspra.3ds
+share/celestia/models/gemini.3ds
+share/celestia/models/geographos.3ds
+share/celestia/models/golevka.3ds
+share/celestia/models/hubble.3ds
+share/celestia/models/hyperion.3ds
+share/celestia/models/hyperion.cms
+share/celestia/models/ida.3ds
+share/celestia/models/iss.3ds
+share/celestia/models/janus.3ds
+share/celestia/models/kleopatra.3ds
+share/celestia/models/ky26.3ds
+share/celestia/models/marsglobalsurvr.3ds
+share/celestia/models/marsodyssey.3ds
+share/celestia/models/mercury7.3ds
+share/celestia/models/mir.3ds
+share/celestia/models/phobos.3ds
+share/celestia/models/prometheus.3ds
+share/celestia/models/proteus.3ds
+share/celestia/models/proteus.cms
+share/celestia/models/roughsphere.cms
+share/celestia/models/skylab.3ds
+share/celestia/models/toutatis.3ds
+share/celestia/models/vesta.3ds
+share/celestia/shaders/bumpdiffuse.vp
+share/celestia/shaders/bumpdiffuse_arb.vp
+share/celestia/shaders/bumphaze.vp
+share/celestia/shaders/bumphaze_arb.vp
+share/celestia/shaders/diffuse.vp
+share/celestia/shaders/diffuse_arb.vp
+share/celestia/shaders/diffuse_texoff.vp
+share/celestia/shaders/diffuse_texoff_arb.vp
+share/celestia/shaders/glossmap_arb.vp
+share/celestia/shaders/haze.vp
+share/celestia/shaders/haze_arb.vp
+share/celestia/shaders/night.vp
+share/celestia/shaders/night_arb.vp
+share/celestia/shaders/rings.vp
+share/celestia/shaders/rings_arb.vp
+share/celestia/shaders/ringshadow.vp
+share/celestia/shaders/ringshadow_arb.vp
+share/celestia/shaders/shadowtex.vp
+share/celestia/shaders/shadowtex_arb.vp
+share/celestia/shaders/simple.vp
+share/celestia/shaders/simple_arb.vp
+share/celestia/shaders/specular.vp
+share/celestia/shaders/specular_arb.vp
+share/celestia/start.cel
+share/celestia/textures/astar.jpg
+share/celestia/textures/bstar.jpg
+share/celestia/textures/flare.jpg
+share/celestia/textures/gstar.jpg
+share/celestia/textures/logo.png
+share/celestia/textures/lores/ariel.jpg
+share/celestia/textures/lores/astar.jpg
+share/celestia/textures/lores/asteroid.jpg
+share/celestia/textures/lores/browndwarf.jpg
+share/celestia/textures/lores/bstar.jpg
+share/celestia/textures/lores/callisto.jpg
+share/celestia/textures/lores/charon.jpg
+share/celestia/textures/lores/deimos.jpg
+share/celestia/textures/lores/dione.jpg
+share/celestia/textures/lores/earth-clouds.png
+share/celestia/textures/lores/earth.png
+share/celestia/textures/lores/earthnight.jpg
+share/celestia/textures/lores/enceladus.jpg
+share/celestia/textures/lores/eros.jpg
+share/celestia/textures/lores/europa.jpg
+share/celestia/textures/lores/ganymede.jpg
+share/celestia/textures/lores/gasgiant.jpg
+share/celestia/textures/lores/gaspramosaic.jpg
+share/celestia/textures/lores/gstar.jpg
+share/celestia/textures/lores/iapetus.jpg
+share/celestia/textures/lores/idamosaic.jpg
+share/celestia/textures/lores/io.jpg
+share/celestia/textures/lores/jupiter.jpg
+share/celestia/textures/lores/jupiterlike.jpg
+share/celestia/textures/lores/mars.jpg
+share/celestia/textures/lores/marsbump1k.jpg
+share/celestia/textures/lores/mercury.jpg
+share/celestia/textures/lores/mercurybump.jpg
+share/celestia/textures/lores/mimas.jpg
+share/celestia/textures/lores/miranda.jpg
+share/celestia/textures/lores/moon.jpg
+share/celestia/textures/lores/moonbump1k.jpg
+share/celestia/textures/lores/mstar.jpg
+share/celestia/textures/lores/neptune.jpg
+share/celestia/textures/lores/oberon.jpg
+share/celestia/textures/lores/phobos.jpg
+share/celestia/textures/lores/pluto.jpg
+share/celestia/textures/lores/plutobump1k.jpg
+share/celestia/textures/lores/rhea.jpg
+share/celestia/textures/lores/saturn-rings.png
+share/celestia/textures/lores/saturn.jpg
+share/celestia/textures/lores/tethys.jpg
+share/celestia/textures/lores/titan.jpg
+share/celestia/textures/lores/titania.jpg
+share/celestia/textures/lores/triton.jpg
+share/celestia/textures/lores/umbriel.jpg
+share/celestia/textures/lores/uranus-rings.png
+share/celestia/textures/lores/uranus.jpg
+share/celestia/textures/lores/venus.jpg
+share/celestia/textures/lores/venuslike.jpg
+share/celestia/textures/lores/venussurface.jpg
+share/celestia/textures/medres/ariel.jpg
+share/celestia/textures/medres/astar.jpg
+share/celestia/textures/medres/asteroid.jpg
+share/celestia/textures/medres/browndwarf.jpg
+share/celestia/textures/medres/bstar.jpg
+share/celestia/textures/medres/callisto.jpg
+share/celestia/textures/medres/deimos.jpg
+share/celestia/textures/medres/dione.jpg
+share/celestia/textures/medres/earth-clouds.png
+share/celestia/textures/medres/earth.jpg
+share/celestia/textures/medres/earth.png
+share/celestia/textures/medres/earthnight.jpg
+share/celestia/textures/medres/enceladus.jpg
+share/celestia/textures/medres/eros.jpg
+share/celestia/textures/medres/europa.jpg
+share/celestia/textures/medres/ganymede.jpg
+share/celestia/textures/medres/gasgiant.jpg
+share/celestia/textures/medres/gaspramosaic.jpg
+share/celestia/textures/medres/gstar.jpg
+share/celestia/textures/medres/iapetus.jpg
+share/celestia/textures/medres/idamosaic.jpg
+share/celestia/textures/medres/io.jpg
+share/celestia/textures/medres/iss-cap1.jpg
+share/celestia/textures/medres/iss-mc1.jpg
+share/celestia/textures/medres/iss-mc31.jpg
+share/celestia/textures/medres/iss-sol1.jpg
+share/celestia/textures/medres/jupiter.jpg
+share/celestia/textures/medres/jupiterlike.jpg
+share/celestia/textures/medres/mars.jpg
+share/celestia/textures/medres/marsbump1k.jpg
+share/celestia/textures/medres/mercury.jpg
+share/celestia/textures/medres/mercurybump.jpg
+share/celestia/textures/medres/mimas.jpg
+share/celestia/textures/medres/miranda.jpg
+share/celestia/textures/medres/moon.jpg
+share/celestia/textures/medres/moonbump1k.jpg
+share/celestia/textures/medres/mstar.jpg
+share/celestia/textures/medres/oberon.jpg
+share/celestia/textures/medres/phobos.jpg
+share/celestia/textures/medres/pluto.jpg
+share/celestia/textures/medres/plutobump1k.jpg
+share/celestia/textures/medres/renova.jpg
+share/celestia/textures/medres/rhea.jpg
+share/celestia/textures/medres/saturn.jpg
+share/celestia/textures/medres/tethys.jpg
+share/celestia/textures/medres/titania.jpg
+share/celestia/textures/medres/triton.jpg
+share/celestia/textures/medres/umbriel.jpg
+share/celestia/textures/medres/venus.jpg
+share/celestia/textures/medres/venuslike.jpg
+share/celestia/textures/medres/venussurface.jpg
+share/celestia/textures/mstar.jpg
+share/doc/celestia/COPYING
+share/doc/celestia/controls.txt
+share/doc/html/celestia/manual/celestia.html
+share/doc/html/celestia/manual/manual.css
+share/doc/html/celestia/manual/movement.html
+share/doc/html/celestia/manual/starting.html
+share/examples/celestia/celestia.cfg.default
+@dirrm share/examples/celestia
+@dirrm share/doc/html/celestia/manual
+@dirrm share/doc/html/celestia
+@dirrm share/doc/celestia
+@dirrm share/celestia/textures/medres
+@dirrm share/celestia/textures/lores
+@exec ${MKDIR} %D/share/celestia/textures/hires
+@dirrm share/celestia/textures/hires
+@dirrm share/celestia/textures
+@dirrm share/celestia/shaders
+@dirrm share/celestia/models
+@dirrm share/celestia/fonts
+@dirrm share/celestia/extras
+@dirrm share/celestia/data
+@dirrm share/celestia
diff --git a/misc/celestia/distinfo b/misc/celestia/distinfo
new file mode 100644
index 00000000000..f93815ab769
--- /dev/null
+++ b/misc/celestia/distinfo
@@ -0,0 +1,9 @@
+$NetBSD: distinfo,v 1.1.1.1 2003/05/08 23:47:03 salo Exp $
+
+SHA1 (celestia-1.3.0.tar.gz) = 1ec0c5520f9ca44d76df8828afe6cd2f3d361894
+Size (celestia-1.3.0.tar.gz) = 15935711 bytes
+SHA1 (patch-aa) = 1523b4faec51534b2e0df05b93071b93c5c2f493
+SHA1 (patch-ab) = 8e452ab8d693d0b79c89805adb6b876708285ec1
+SHA1 (patch-ac) = 47bf6f71ea272f82dbbf661cd38e1a0f3e31abd3
+SHA1 (patch-ad) = 76d5382d61154456d3f128e7ff170aaab0c2898b
+SHA1 (patch-ae) = db8a8f02c208ef2b66f6e1874b32bf5821fb113c
diff --git a/misc/celestia/patches/patch-aa b/misc/celestia/patches/patch-aa
new file mode 100644
index 00000000000..14f3fba8d49
--- /dev/null
+++ b/misc/celestia/patches/patch-aa
@@ -0,0 +1,154 @@
+$NetBSD: patch-aa,v 1.1.1.1 2003/05/08 23:47:03 salo Exp $
+
+--- configure.orig 2003-04-16 09:03:21.000000000 +0200
++++ configure 2003-05-08 18:06:45.000000000 +0200
+@@ -14924,7 +14924,7 @@
+ else
+ enable_debug="no"
+ fi;
+-if test "$enable_debug" == "yes" ; then
++if test "$enable_debug" = "yes" ; then
+ CELESTIA_CFLAGS="-g -Wall"; CELESTIA_CXXFLAGS="-g -Wall"
+ cat >>confdefs.h <<\_ACEOF
+ #define DEBUG 1
+@@ -14943,7 +14943,7 @@
+ else
+ enable_pedantic="no"
+ fi;
+-if test "$enable_pedantic" == "yes" ; then
++if test "$enable_pedantic" = "yes" ; then
+ CELESTIA_CFLAGS="$CELESTIA_CFLAGS -ansi -pedantic"; CELESTIA_CXXFLAGS="$CELESTIA_CXXFLAGS -pedantic"
+ fi
+ echo "$as_me:$LINENO: result: $enable_pedantic" >&5
+@@ -14958,7 +14958,7 @@
+ else
+ enable_profile="no"
+ fi;
+-if test "$enable_profile" == "yes" ; then
++if test "$enable_profile" = "yes" ; then
+ CELESTIA_CFLAGS="$CELESTIA_CFLAGS -pg"; CELESTIA_CXXFLAGS="$CELESTIA_CXXFLAGS -pg"
+ else
+ if test "$enable_debug" != "yes" ; then
+@@ -15026,7 +15026,7 @@
+
+ echo "$as_me:$LINENO: checking whether to enable GLUT" >&5
+ echo $ECHO_N "checking whether to enable GLUT... $ECHO_C" >&6
+-if test "$enable_gtk" == "no" -a "$gtk_by_default" == "no" -a "$enable_kde" == "no" -a "$kde_by_default" == "no"; then
++if test "$enable_gtk" = "no" -a "$gtk_by_default" = "no" -a "$enable_kde" = "no" -a "$kde_by_default" = "no"; then
+ enable_glut="yes"
+ echo "$as_me:$LINENO: result: yes" >&5
+ echo "${ECHO_T}yes" >&6
+@@ -15035,15 +15035,15 @@
+ echo "${ECHO_T}no" >&6
+ fi
+
+-if test "$enable_gtk" != "no" -a "$gtk_by_default" == "no" -a "$enable_kde" != "no" -a "$kde_by_default" == "no"; then
++if test "$enable_gtk" != "no" -a "$gtk_by_default" = "no" -a "$enable_kde" != "no" -a "$kde_by_default" = "no"; then
+ enable_gtk="no"
+ fi
+
+-if test "$enable_gtk" != "no" -a "$gtk_by_default" == "no" -a "$kde_by_default" == "yes" ; then
++if test "$enable_gtk" != "no" -a "$gtk_by_default" = "no" -a "$kde_by_default" = "yes" ; then
+ enable_kde="no"
+ fi
+
+-if test "$enable_gtk" == "no" -a "$gtk_by_default" == "yes" -a "$enable_kde" == "no" -a "$kde_by_default" == "no" ; then
++if test "$enable_gtk" = "no" -a "$gtk_by_default" = "yes" -a "$enable_kde" = "no" -a "$kde_by_default" = "no" ; then
+ enable_gtk="yes"
+ fi
+
+@@ -15058,7 +15058,7 @@
+ echo "$as_me:$LINENO: result: GTK" >&5
+ echo "${ECHO_T}GTK" >&6
+ fi
+-if test "$enable_glut" == "yes" ; then
++if test "$enable_glut" = "yes" ; then
+ echo "$as_me:$LINENO: result: GLUT" >&5
+ echo "${ECHO_T}GLUT" >&6
+ fi
+@@ -15067,7 +15067,7 @@
+
+ echo "$as_me:$LINENO: checking whether to disable GTK." >&5
+ echo $ECHO_N "checking whether to disable GTK.... $ECHO_C" >&6
+-if test "$enable_gtk" == "yes" ; then
++if test "$enable_gtk" = "yes" ; then
+ echo "$as_me:$LINENO: result: no" >&5
+ echo "${ECHO_T}no" >&6
+
+@@ -15376,7 +15376,7 @@
+ rm -f conf.gtktest
+
+
+- if test "$enable_gtk_by_default" == "no" -a "$enable_gtk" == "no"; then
++ if test "$enable_gtk_by_default" = "no" -a "$enable_gtk" = "no"; then
+ echo "$as_me:$LINENO: result: Unable to find GTK" >&5
+ echo "${ECHO_T}Unable to find GTK" >&6
+ enable_glut="yes"
+@@ -20537,7 +20537,7 @@
+ fi
+
+
+-if test "$enable_gtk" != "no" -o "$enable_glut" == "yes" ; then
++if test "$enable_gtk" != "no" -o "$enable_glut" = "yes" ; then
+
+ for ac_header in GL/glut.h
+ do
+@@ -20756,7 +20756,7 @@
+ fi
+
+
+-if test "$enable_glut" == "yes"; then
++if test "$enable_glut" = "yes"; then
+ ENABLE_GLUT_TRUE=
+ ENABLE_GLUT_FALSE='#'
+ else
+@@ -20835,7 +20835,7 @@
+ fi
+
+
+- if test "$enable_gtk_by_default" == "no" -a "$enable_gtk" == "no"; then
++ if test "$enable_gtk_by_default" = "no" -a "$enable_gtk" = "no"; then
+ { { echo "$as_me:$LINENO: error: Unable to find gtkglarea" >&5
+ echo "$as_me: error: Unable to find gtkglarea" >&2;}
+ { (exit 1); exit 1; }; }
+@@ -22103,7 +22103,7 @@
+ LIBS="$LIBS $GTK_LIBS $GNOME_LIBS $GNOMEUI_LIBS $GTKGL_LIBS"
+ LDFLAGS="$LDFLAGS $GNOME_LIBDIR"
+ else
+- if test "$enable_gtk_by_default" == "yes" ; then
++ if test "$enable_gtk_by_default" = "yes" ; then
+ { echo "$as_me:$LINENO: WARNING: Disabled GTK GUI because of missing necessary packages" >&5
+ echo "$as_me: WARNING: Disabled GTK GUI because of missing necessary packages" >&2;}
+ fi
+@@ -22111,7 +22111,7 @@
+ fi
+
+
+-if test "$enable_gtk" == "yes"; then
++if test "$enable_gtk" = "yes"; then
+ ENABLE_GTK_TRUE=
+ ENABLE_GTK_FALSE='#'
+ else
+@@ -29752,7 +29752,7 @@
+ fi
+
+
+-if test "$enable_kde" == "yes"; then
++if test "$enable_kde" = "yes"; then
+ ENABLE_KDE_TRUE=
+ ENABLE_KDE_FALSE='#'
+ else
+@@ -30423,12 +30423,7 @@
+ prefix=$ac_default_prefix
+ fi
+
+-if test "$enable_kde" == "yes" ; then
+- PKGDATADIR=`eval echo "${kde_datadir}/$PACKAGE"`
+- datadir=${kde_datadir}
+-else
+- PKGDATADIR=`eval echo "${datadir}/$PACKAGE"`
+-fi
++PKGDATADIR=`eval echo "${datadir}/$PACKAGE"`
+
+
+ cat >>confdefs.h <<_ACEOF
diff --git a/misc/celestia/patches/patch-ab b/misc/celestia/patches/patch-ab
new file mode 100644
index 00000000000..6755fac367e
--- /dev/null
+++ b/misc/celestia/patches/patch-ab
@@ -0,0 +1,13 @@
+$NetBSD: patch-ab,v 1.1.1.1 2003/05/08 23:47:03 salo Exp $
+
+--- manual/Makefile.in.orig 2003-04-16 09:04:31.000000000 +0200
++++ manual/Makefile.in 2003-05-07 23:38:16.000000000 +0200
+@@ -38,7 +38,7 @@
+ build_triplet = @build@
+ host_triplet = @host@
+ target_triplet = @target@
+-pkgdatadir = @datadir@/@PACKAGE@/manual
++pkgdatadir = @datadir@/doc/html/@PACKAGE@/manual
+ ACLOCAL = @ACLOCAL@
+ AMDEP_FALSE = @AMDEP_FALSE@
+ AMDEP_TRUE = @AMDEP_TRUE@
diff --git a/misc/celestia/patches/patch-ac b/misc/celestia/patches/patch-ac
new file mode 100644
index 00000000000..826f740b2b6
--- /dev/null
+++ b/misc/celestia/patches/patch-ac
@@ -0,0 +1,12 @@
+$NetBSD: patch-ac,v 1.1.1.1 2003/05/08 23:47:03 salo Exp $
+
+--- src/celestia/kde/kdeapp.h.orig 2003-04-09 09:14:04.000000000 +0200
++++ src/celestia/kde/kdeapp.h 2003-05-08 18:45:02.000000000 +0200
+@@ -22,6 +22,7 @@
+ #include <config.h>
+ #endif
+
++#include <time.h>
+ #include <kapp.h>
+ #include <qwidget.h>
+ #include <kmainwindow.h>
diff --git a/misc/celestia/patches/patch-ad b/misc/celestia/patches/patch-ad
new file mode 100644
index 00000000000..7bf160f5f18
--- /dev/null
+++ b/misc/celestia/patches/patch-ad
@@ -0,0 +1,13 @@
+$NetBSD: patch-ad,v 1.1.1.1 2003/05/08 23:47:03 salo Exp $
+
+--- src/celestia/celestiacore.cpp.orig 2003-04-14 19:58:00.000000000 +0200
++++ src/celestia/celestiacore.cpp 2003-05-08 23:46:34.000000000 +0200
+@@ -2658,7 +2658,7 @@
+ }
+ #endif
+
+- config = ReadCelestiaConfig("celestia.cfg");
++ config = ReadCelestiaConfig(PKG_SYSCONFDIR "/celestia.cfg");
+ if (config == NULL)
+ {
+ fatalError("Error reading configuration file.");;
diff --git a/misc/celestia/patches/patch-ae b/misc/celestia/patches/patch-ae
new file mode 100644
index 00000000000..3812536e5c3
--- /dev/null
+++ b/misc/celestia/patches/patch-ae
@@ -0,0 +1,13 @@
+$NetBSD: patch-ae,v 1.1.1.1 2003/05/08 23:47:03 salo Exp $
+
+--- Makefile.in.orig 2003-04-16 09:04:31.000000000 +0200
++++ Makefile.in 2003-05-08 23:54:18.000000000 +0200
+@@ -270,7 +270,7 @@
+ x_libraries = @x_libraries@
+ dosstuff = celestia.mak $(wildcard *.bat)
+ noinst_DATA = devguide.txt $(dosstuff)
+-pkgdata_DATA = celestia.cfg $(wildcard *.cel) controls.txt COPYING
++pkgdata_DATA = $(wildcard *.cel)
+
+ EXTRA_DIST = $(pkgdata_DATA) $(noinst_DATA) admin
+