# HG changeset patch # User Christopher Rogers # Date 1292669285 0 # Node ID aed0579895458800d124da966b5593c9003cbc11 # Parent 9ddf951b7f17a1dad4f9265be742024b370a8b50 Add celestia. A Real-time 3D space simulation. diff -r 9ddf951b7f17 -r aed057989545 celestia/receipt --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/celestia/receipt Sat Dec 18 10:48:05 2010 +0000 @@ -0,0 +1,37 @@ +# SliTaz package receipt. + +PACKAGE="celestia" +VERSION="1.6.0" +CATEGORY="games" +SHORT_DESC="Real-time 3D Space Simulation" +MAINTAINER="slaxemulator@gmail.com" +DEPENDS="gtk+ glew libtheora lua gtkglext freeglut xorg-libXmu mesa libglu-mesa libjpeg jpeg zlib" +BUILD_DEPENDS="$DEPENDS gtk+-dev libtheora-dev lua-dev gtkglext-dev freeglut-dev xorg-libXmu-dev libglu-mesa mesa-dev libpng-dev libogg-dev jpeg-dev glew-dev zlib-dev gettext autoconf" +TARBALL="$PACKAGE-$VERSION.tar.gz" +WEB_SITE="http://www.shatters.net/celestia/" +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" + +# Rules to configure and make the package. +compile_rules() +{ + cd $src + patch -p0 -i ../stuff/celestia-1.6.0-gcc45.patch + ./configure \ + --prefix=/usr \ + --infodir=/usr/share/info \ + --mandir=/usr/share/man \ + --with-gtk \ + $CONFIGURE_ARGS && + make && make DESTDIR=$PWD/_pkg install +} + +# Rules to gen a SliTaz package suitable for Tazpkg. +genpkg_rules() +{ + mkdir -p $fs/usr/share + cp -a $_pkg/usr/bin $fs/usr + cp -a $_pkg/usr/share/applications $fs/usr/share + cp -a $_pkg/usr/share/celestia $fs/usr/share + cp -a $_pkg/usr/share/pixmaps $fs/usr/share +} + diff -r 9ddf951b7f17 -r aed057989545 celestia/stuff/celestia-1.6.0-gcc45.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/celestia/stuff/celestia-1.6.0-gcc45.patch Sat Dec 18 10:48:05 2010 +0000 @@ -0,0 +1,45 @@ +--- src/celengine/overlay.h 2010-04-16 17:43:35.000000000 +0200 ++++ src/celengine/overlay.h 2010-04-16 17:43:55.000000000 +0200 +@@ -12,6 +12,7 @@ + + #include + #include ++#include + #include + + +--- src/celmath/mathlib.h 2010-04-16 18:16:09.000000000 +0200 ++++ src/celmath/mathlib.h 2010-04-16 18:16:18.000000000 +0200 +@@ -44,11 +44,6 @@ template T radToDeg(T r) + return r * 180 / static_cast(PI); + } + +-template T abs(T x) +-{ +- return (x < 0) ? -x : x; +-} +- + template T square(T x) + { + return x * x; +--- src/celengine/star.cpp 2010-04-16 18:17:42.000000000 +0200 ++++ src/celengine/star.cpp 2010-04-16 18:17:57.000000000 +0200 +@@ -10,6 +10,7 @@ + #include + #include + #include ++#include + #include "celestia.h" + #include "astro.h" + #include "orbit.h" +--- src/celestia/celx_object.cpp 2010-04-16 18:19:52.000000000 +0200 ++++ src/celestia/celx_object.cpp 2010-04-16 18:22:37.000000000 +0200 +@@ -773,7 +773,7 @@ static int object_mark(lua_State* l) + markAlpha = 1.0f; + + Color markColorAlpha(0.0f, 1.0f, 0.0f, 0.9f); +- markColorAlpha = Color::Color(markColor, markAlpha); ++ markColorAlpha = Color(markColor, markAlpha); + + const char* markLabel = celx.safeGetString(6, WrongType, "Fifth argument to object:mark must be a string"); + if (markLabel == NULL)