wok-next view celestia/receipt @ rev 20309
Up foo2xqx (20170320)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Nov 10 16:07:36 2017 +0100 (2017-11-10) |
parents | 17e313b5b9c1 |
children | dd145c435e4b |
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 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 \
15 freeglut-dev xorg-libXmu-dev libglu-mesa mesa-dev libpng-dev libogg-dev \
16 jpeg-dev glew-dev zlib-dev gettext autoconf"
18 # Rules to configure and make the package.
19 compile_rules()
20 {
21 sed -i 's|"ray.h"|&\n#include "mathlib.h"|' src/celmath/intersect.h
22 sed -i 's|NULL|0|' src/celengine/frametree.h
23 sed -i 's|"png.h"|&\n#include "zlib.h"|' src/celestia/imagecapture.cpp
24 sed -i 's|<cstdio>|&\n#include <string.h>|' src/celengine/*.cpp
25 ./configure \
26 --prefix=/usr \
27 --infodir=/usr/share/info \
28 --mandir=/usr/share/man \
29 --with-gtk \
30 $CONFIGURE_ARGS &&
31 make && make DESTDIR=$DESTDIR install
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/usr/share/applications
38 cp -a $install/usr/bin $fs/usr
39 cp -a $install/usr/share/celestia $fs/usr/share
40 cp -a $install/usr/share/pixmaps $fs/usr/share
41 }