wok view celestia/receipt @ rev 12929

celestia: add debian path make-dereferenced-temporaries-explicit
author Pascal Bellard <pascal.bellard@slitaz.org>
date Wed May 30 09:26:32 2012 +0200 (2012-05-30)
parents 4f527a2114bf
children c2d3acb84ef6
line source
1 # SliTaz package receipt.
3 PACKAGE="celestia"
4 VERSION="1.6.0"
5 CATEGORY="games"
6 SHORT_DESC="Real-time 3D Space Simulation"
7 MAINTAINER="slaxemulator@gmail.com"
8 DEPENDS="gtk+ glew libtheora lua gtkglext freeglut xorg-libXmu mesa libglu-mesa libjpeg jpeg zlib"
9 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"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://www.shatters.net/celestia/"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 patch -p0 -i $stuff/celestia-1.6.0-gcc45.patch
19 patch -p1 -i $stuff/make-dereferenced-temporaries-explicit
20 ./configure \
21 --prefix=/usr \
22 --infodir=/usr/share/info \
23 --mandir=/usr/share/man \
24 --with-gtk \
25 $CONFIGURE_ARGS &&
26 make && make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 mkdir -p $fs/usr/share/applications
33 cp -a $_pkg/usr/bin $fs/usr
34 cp -a $_pkg/usr/share/celestia $fs/usr/share
35 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
36 }