wok rev 7697

Add celestia. A Real-time 3D space simulation.
author Christopher Rogers <slaxemulator@gmail.com>
date Sat Dec 18 10:48:05 2010 +0000 (2010-12-18)
parents 9ddf951b7f17
children c57bc0156264
files celestia/receipt celestia/stuff/celestia-1.6.0-gcc45.patch
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/celestia/receipt	Sat Dec 18 10:48:05 2010 +0000
     1.3 @@ -0,0 +1,37 @@
     1.4 +# SliTaz package receipt.
     1.5 +
     1.6 +PACKAGE="celestia"
     1.7 +VERSION="1.6.0"
     1.8 +CATEGORY="games"
     1.9 +SHORT_DESC="Real-time 3D Space Simulation"
    1.10 +MAINTAINER="slaxemulator@gmail.com"
    1.11 +DEPENDS="gtk+ glew libtheora lua gtkglext freeglut xorg-libXmu mesa libglu-mesa libjpeg jpeg zlib"
    1.12 +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"
    1.13 +TARBALL="$PACKAGE-$VERSION.tar.gz"
    1.14 +WEB_SITE="http://www.shatters.net/celestia/"
    1.15 +WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
    1.16 +
    1.17 +# Rules to configure and make the package.
    1.18 +compile_rules()
    1.19 +{
    1.20 +	cd $src
    1.21 +	patch -p0 -i ../stuff/celestia-1.6.0-gcc45.patch
    1.22 +	./configure \
    1.23 +		--prefix=/usr \
    1.24 +		--infodir=/usr/share/info \
    1.25 +		--mandir=/usr/share/man \
    1.26 +		--with-gtk \
    1.27 +		$CONFIGURE_ARGS &&
    1.28 +	make && make DESTDIR=$PWD/_pkg install
    1.29 +}
    1.30 +
    1.31 +# Rules to gen a SliTaz package suitable for Tazpkg.
    1.32 +genpkg_rules()
    1.33 +{
    1.34 +	mkdir -p $fs/usr/share
    1.35 +	cp -a $_pkg/usr/bin $fs/usr
    1.36 +	cp -a $_pkg/usr/share/applications $fs/usr/share
    1.37 +	cp -a $_pkg/usr/share/celestia $fs/usr/share
    1.38 +	cp -a $_pkg/usr/share/pixmaps $fs/usr/share
    1.39 +}
    1.40 +
     2.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     2.2 +++ b/celestia/stuff/celestia-1.6.0-gcc45.patch	Sat Dec 18 10:48:05 2010 +0000
     2.3 @@ -0,0 +1,45 @@
     2.4 +--- src/celengine/overlay.h	2010-04-16 17:43:35.000000000 +0200
     2.5 ++++ src/celengine/overlay.h	2010-04-16 17:43:55.000000000 +0200
     2.6 +@@ -12,6 +12,7 @@
     2.7 + 
     2.8 + #include <string>
     2.9 + #include <iostream>
    2.10 ++#include <cstdio>
    2.11 + #include <celtxf/texturefont.h>
    2.12 + 
    2.13 + 
    2.14 +--- src/celmath/mathlib.h	2010-04-16 18:16:09.000000000 +0200
    2.15 ++++ src/celmath/mathlib.h	2010-04-16 18:16:18.000000000 +0200
    2.16 +@@ -44,11 +44,6 @@ template<class T> T radToDeg(T r)
    2.17 +     return r * 180 / static_cast<T>(PI);
    2.18 + }
    2.19 + 
    2.20 +-template<class T> T abs(T x)
    2.21 +-{
    2.22 +-    return (x < 0) ? -x : x;
    2.23 +-}
    2.24 +-
    2.25 + template<class T> T square(T x)
    2.26 + {
    2.27 +     return x * x;
    2.28 +--- src/celengine/star.cpp	2010-04-16 18:17:42.000000000 +0200
    2.29 ++++ src/celengine/star.cpp	2010-04-16 18:17:57.000000000 +0200
    2.30 +@@ -10,6 +10,7 @@
    2.31 + #include <celmath/mathlib.h>
    2.32 + #include <cstring>
    2.33 + #include <cassert>
    2.34 ++#include <cstdio>
    2.35 + #include "celestia.h"
    2.36 + #include "astro.h"
    2.37 + #include "orbit.h"
    2.38 +--- src/celestia/celx_object.cpp	2010-04-16 18:19:52.000000000 +0200
    2.39 ++++ src/celestia/celx_object.cpp	2010-04-16 18:22:37.000000000 +0200
    2.40 +@@ -773,7 +773,7 @@ static int object_mark(lua_State* l)
    2.41 +         markAlpha = 1.0f;
    2.42 +     
    2.43 +     Color markColorAlpha(0.0f, 1.0f, 0.0f, 0.9f);
    2.44 +-    markColorAlpha = Color::Color(markColor, markAlpha);
    2.45 ++    markColorAlpha = Color(markColor, markAlpha);
    2.46 +     
    2.47 +     const char* markLabel = celx.safeGetString(6, WrongType, "Fifth argument to object:mark must be a string");
    2.48 +     if (markLabel == NULL)