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