wok-next view celestia/receipt @ rev 20502

Swap: current mesa (which is developing and change it's version) is just mesa, while old mesa is mesa12 now (will be removed if no one old package require it).
Also, change long names to its origins: libglu-mesa -> glu, libglw-mesa -> glw, all variations with libegl -> mesa-libegl (because it is part of mesa package).
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Mar 16 00:27:34 2018 +0200 (2018-03-16)
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 }