wok-next view celestia/receipt @ rev 12959
gobby: update bdeps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu May 31 20:16:47 2012 +0200 (2012-05-31) |
parents | 97eef196916c |
children | 6b09507225ec |
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 export LDFLAGS="-Wl,--copy-dt-needed-entries -ldl"
19 patch -p0 -i $stuff/celestia-1.6.0-gcc45.patch
20 patch -p1 -i $stuff/make-dereferenced-temporaries-explicit
21 sed -i 's/NULL/0/' src/celengine/frametree.h
22 ./configure \
23 --prefix=/usr \
24 --infodir=/usr/share/info \
25 --mandir=/usr/share/man \
26 --with-gtk \
27 $CONFIGURE_ARGS &&
28 make && make DESTDIR=$PWD/_pkg install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 mkdir -p $fs/usr/share/applications
35 cp -a $_pkg/usr/bin $fs/usr
36 cp -a $_pkg/usr/share/celestia $fs/usr/share
37 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
38 }