wok view celestia/receipt @ rev 15002

Add some GPL2 licenses
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Aug 10 21:12:16 2013 +0000 (2013-08-10)
parents b7cbbcea8704
children 17e313b5b9c1
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://www.shatters.net/celestia/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="gtk+ glew libtheora lua5.1 gtkglext freeglut xorg-libXmu mesa libglu-mesa libjpeg jpeg zlib"
14 BUILD_DEPENDS="$DEPENDS gtk+-dev libtheora-dev lua5.1-dev gtkglext-dev freeglut-dev xorg-libXmu-dev libglu-mesa mesa-dev libpng-dev libogg-dev jpeg-dev glew-dev zlib-dev gettext autoconf"
16 # Rules to configure and make the package.
17 compile_rules()
18 {
19 cd $src
20 export LDFLAGS="-Wl,--copy-dt-needed-entries -ldl"
21 patch -p0 -i $stuff/celestia-1.6.0-gcc45.patch
22 patch -p1 -i $stuff/make-dereferenced-temporaries-explicit
23 sed -i 's/NULL/0/' src/celengine/frametree.h
24 ./configure \
25 --prefix=/usr \
26 --infodir=/usr/share/info \
27 --mandir=/usr/share/man \
28 --with-gtk \
29 $CONFIGURE_ARGS &&
30 make && make DESTDIR=$DESTDIR install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share/applications
37 cp -a $install/usr/bin $fs/usr
38 cp -a $install/usr/share/celestia $fs/usr/share
39 cp -a $install/usr/share/pixmaps $fs/usr/share
40 }