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