diff options
author | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
---|---|---|
committer | Parabola <dev@list.parabolagnulinux.org> | 2011-04-05 14:26:38 +0000 |
commit | 415856bdd4f48ab4f2732996f0bae58595092bbe (patch) | |
tree | ede2018b591f6dfb477fe9341ba17b9bc000fab9 /extra/celestia |
Tue Apr 5 14:26:38 UTC 2011
Diffstat (limited to 'extra/celestia')
-rw-r--r-- | extra/celestia/PKGBUILD | 34 | ||||
-rw-r--r-- | extra/celestia/celestia-1.5.1-gcc44.patch | 20 | ||||
-rw-r--r-- | extra/celestia/libpng14.patch | 12 |
3 files changed, 66 insertions, 0 deletions
diff --git a/extra/celestia/PKGBUILD b/extra/celestia/PKGBUILD new file mode 100644 index 000000000..87c4af8a6 --- /dev/null +++ b/extra/celestia/PKGBUILD @@ -0,0 +1,34 @@ +# $Id: PKGBUILD 63841 2010-01-18 21:47:42Z ibiru $ +# Maintainer: Ronald van Haren <ronald.archlinux.org> +# Contributor : Damir Perisa <damir.perisa@bluewin.ch> + +pkgname=celestia +pkgver=1.6.0 +pkgrel=2 +pkgdesc="Real-time space simulation" +arch=('i686' 'x86_64') +license=('GPL') +url="http://www.shatters.net/celestia/" +depends=('gtk2' 'libtheora' 'lua' 'gtkglext' 'glut' 'libxmu' 'mesa' 'libjpeg>=8') +options=('!makeflags') +source=(http://downloads.sourceforge.net/sourceforge/celestia/${pkgname}-${pkgver}.tar.gz + celestia-1.5.1-gcc44.patch libpng14.patch) +md5sums=('9b96a8e7666ab5a26f032b9d605e023d' + '0c606dbd3a641afb1b0725428db854c8' + '829c0860659272a9f55aedf096ee4216') + +build() { + cd ${srcdir}/${pkgname}-${pkgver} + + # build patch + patch -Np0 < ${srcdir}/celestia-1.5.1-gcc44.patch || return 1 + patch -Np1 -i ${srcdir}/libpng14.patch || return 1 + + ./configure --prefix=/usr \ + --with-lua=/usr \ + --datadir=/usr/share \ + --with-gtk + make || return 1 + make DESTDIR=${pkgdir} install || return 1 +} + diff --git a/extra/celestia/celestia-1.5.1-gcc44.patch b/extra/celestia/celestia-1.5.1-gcc44.patch new file mode 100644 index 000000000..b1ee896f0 --- /dev/null +++ b/extra/celestia/celestia-1.5.1-gcc44.patch @@ -0,0 +1,20 @@ +--- src/celengine/overlay.h.orig 2009-07-08 02:27:08.000000000 -0400 ++++ src/celengine/overlay.h 2009-07-08 02:27:28.000000000 -0400 +@@ -10,6 +10,7 @@ + #ifndef _OVERLAY_H_ + #define _OVERLAY_H_ + ++#include <cstdio> + #include <string> + #include <iostream> + #include <celtxf/texturefont.h> +--- src/celengine/star.cpp.orig 2009-07-08 02:40:52.000000000 -0400 ++++ src/celengine/star.cpp 2009-07-08 02:41:08.000000000 -0400 +@@ -8,6 +8,7 @@ + // of the License, or (at your option) any later version. + + #include <celmath/mathlib.h> ++#include <cstdio> + #include <cstring> + #include <cassert> + #include "celestia.h" diff --git a/extra/celestia/libpng14.patch b/extra/celestia/libpng14.patch new file mode 100644 index 000000000..1d47637b9 --- /dev/null +++ b/extra/celestia/libpng14.patch @@ -0,0 +1,12 @@ +diff -Nur celestia-1.6.0.orig/src/celengine/image.cpp celestia-1.6.0/src/celengine/image.cpp +--- celestia-1.6.0.orig/src/celengine/image.cpp 2009-06-22 18:44:08.000000000 +0300 ++++ celestia-1.6.0/src/celengine/image.cpp 2010-01-18 23:27:55.000000000 +0200 +@@ -737,7 +737,7 @@ + + if (color_type == PNG_COLOR_TYPE_GRAY && bit_depth < 8) + { +- png_set_gray_1_2_4_to_8(png_ptr); ++ png_set_expand_gray_1_2_4_to_8(png_ptr); + } + + if (png_get_valid(png_ptr, info_ptr, PNG_INFO_tRNS)) |