wok annotate celestia/receipt @ rev 24992
Up sip (4.19.25)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat May 14 18:19:29 2022 +0000 (2022-05-14) |
parents | ead22d5c128f |
children | 7dd01dedad38 |
rev | line source |
---|---|
slaxemulator@7697 | 1 # SliTaz package receipt. |
slaxemulator@7697 | 2 |
slaxemulator@7697 | 3 PACKAGE="celestia" |
Hans-G?nter@22587 | 4 VERSION="1.6.1" |
slaxemulator@7697 | 5 CATEGORY="games" |
Hans-G?nter@22587 | 6 SHORT_DESC="Real-time 3D Space Simulation." |
slaxemulator@7697 | 7 MAINTAINER="slaxemulator@gmail.com" |
pascal@15002 | 8 LICENSE="GPL2" |
pascal@22602 | 9 WEB_SITE="http://celestia.sourceforge.net/" |
Hans-G?nter@22587 | 10 |
slaxemulator@7697 | 11 TARBALL="$PACKAGE-$VERSION.tar.gz" |
slaxemulator@7697 | 12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL" |
slaxemulator@7697 | 13 |
Hans-G?nter@22587 | 14 DEPENDS="freeglut glew gtk+ gtkglext jpeg libglu-mesa libjpeg libtheora |
Hans-G?nter@22587 | 15 lua5.1 mesa xorg-libXmu zlib" |
Hans-G?nter@22587 | 16 BUILD_DEPENDS="autoconf freeglut-dev gettext glew-dev gtk+-dev gtkglext-dev |
Hans-G?nter@22587 | 17 jpeg-dev libglu-mesa libogg-dev libpng-dev libtheora-dev lua5.1-dev |
Hans-G?nter@22587 | 18 mesa-dev xorg-libXmu-dev zlib-dev" |
pascal@15002 | 19 |
pascal@24373 | 20 # What is the latest version available today? |
pascal@24373 | 21 current_version() |
pascal@24373 | 22 { |
pascal@24373 | 23 wget -O - https://sourceforge.net/projects/celestia/files/Celestia-source/ 2>/dev/null | \ |
pascal@24373 | 24 sed '/scope="row/!d;s|.*href="|"https://sourceforge.net|;q' | xargs wget -O - 2>/dev/null | \ |
pascal@24373 | 25 sed '/scope="row/!d;s|.*/Celestia-source/||;s|/.*||;q' |
pascal@24373 | 26 } |
pascal@24373 | 27 |
slaxemulator@7697 | 28 # Rules to configure and make the package. |
slaxemulator@7697 | 29 compile_rules() |
slaxemulator@7697 | 30 { |
pascal@17670 | 31 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -ldl" |
Hans-G?nter@22587 | 32 # 1.6.0 |
Hans-G?nter@22587 | 33 # patch -p0 -i $stuff/celestia-1.6.0-gcc45.patch |
Hans-G?nter@22587 | 34 # patch -p1 -i $stuff/make-dereferenced-temporaries-explicit |
pascal@12930 | 35 sed -i 's/NULL/0/' src/celengine/frametree.h |
Hans-G?nter@22587 | 36 |
Hans-G?nter@22587 | 37 ./configure \ |
Hans-G?nter@22587 | 38 --prefix=/usr \ |
Hans-G?nter@22587 | 39 --infodir=/usr/share/info \ |
Hans-G?nter@22587 | 40 --mandir=/usr/share/man \ |
Hans-G?nter@22587 | 41 --with-gtk \ |
slaxemulator@7697 | 42 $CONFIGURE_ARGS && |
Hans-G?nter@22587 | 43 make && |
Hans-G?nter@22587 | 44 make DESTDIR=$DESTDIR install |
slaxemulator@7697 | 45 } |
slaxemulator@7697 | 46 |
slaxemulator@7697 | 47 # Rules to gen a SliTaz package suitable for Tazpkg. |
slaxemulator@7697 | 48 genpkg_rules() |
slaxemulator@7697 | 49 { |
slaxemulator@8641 | 50 mkdir -p $fs/usr/share/applications |
Hans-G?nter@22587 | 51 |
Hans-G?nter@22587 | 52 cp -a $install/usr/bin $fs/usr |
Hans-G?nter@22587 | 53 cp -a $install/usr/share/celestia $fs/usr/share |
Hans-G?nter@22587 | 54 cp -a $install/usr/share/pixmaps $fs/usr/share |
slaxemulator@7697 | 55 } |