wok-next view celestia/receipt @ rev 20554
Fix build brasero, clutter-gtk, freetype-infinality, gnome-commander
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Fri Apr 06 16:49:09 2018 +0300 (2018-04-06) |
parents | dd145c435e4b |
children | fb9d8c16e8db |
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 glu libjpeg jpeg zlib"
14 BUILD_DEPENDS="$DEPENDS gtk+-dev libtheora-dev lua5.1-dev gtkglext-dev \
15 freeglut-dev xorg-libXmu-dev glu mesa-dev libpng16-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 }