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