wok-next annotate celestia/receipt @ rev 20454

Choose between libpng16 and libpng12
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 28 17:32:31 2018 +0200 (2018-02-28)
parents c87e072a7568
children c0521c689857
rev   line source
slaxemulator@7697 1 # SliTaz package receipt.
slaxemulator@7697 2
slaxemulator@7697 3 PACKAGE="celestia"
pascal@20128 4 VERSION="1.6.1"
slaxemulator@7697 5 CATEGORY="games"
slaxemulator@7697 6 SHORT_DESC="Real-time 3D Space Simulation"
slaxemulator@7697 7 MAINTAINER="slaxemulator@gmail.com"
pascal@15002 8 LICENSE="GPL2"
slaxemulator@7697 9 TARBALL="$PACKAGE-$VERSION.tar.gz"
slaxemulator@7697 10 WEB_SITE="http://www.shatters.net/celestia/"
slaxemulator@7697 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
slaxemulator@7697 12
pascal@15002 13 DEPENDS="gtk+ glew libtheora lua5.1 gtkglext freeglut xorg-libXmu mesa libglu-mesa libjpeg jpeg zlib"
pascal@20128 14 BUILD_DEPENDS="$DEPENDS gtk+-dev libtheora-dev lua5.1-dev gtkglext-dev \
al@20454 15 freeglut-dev xorg-libXmu-dev libglu-mesa mesa-dev libpng16-dev libogg-dev \
pascal@20128 16 jpeg-dev glew-dev zlib-dev gettext autoconf"
pascal@15002 17
slaxemulator@7697 18 # Rules to configure and make the package.
slaxemulator@7697 19 compile_rules()
slaxemulator@7697 20 {
pascal@20128 21 sed -i 's|"ray.h"|&\n#include "mathlib.h"|' src/celmath/intersect.h
pascal@20128 22 sed -i 's|NULL|0|' src/celengine/frametree.h
pascal@20128 23 sed -i 's|"png.h"|&\n#include "zlib.h"|' src/celestia/imagecapture.cpp
pascal@20128 24 sed -i 's|<cstdio>|&\n#include <string.h>|' src/celengine/*.cpp
slaxemulator@7697 25 ./configure \
slaxemulator@7697 26 --prefix=/usr \
slaxemulator@7697 27 --infodir=/usr/share/info \
slaxemulator@7697 28 --mandir=/usr/share/man \
slaxemulator@7697 29 --with-gtk \
slaxemulator@7697 30 $CONFIGURE_ARGS &&
pascal@13796 31 make && make DESTDIR=$DESTDIR install
slaxemulator@7697 32 }
slaxemulator@7697 33
slaxemulator@7697 34 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7697 35 genpkg_rules()
slaxemulator@7697 36 {
slaxemulator@8641 37 mkdir -p $fs/usr/share/applications
pascal@13796 38 cp -a $install/usr/bin $fs/usr
pascal@13796 39 cp -a $install/usr/share/celestia $fs/usr/share
pascal@13796 40 cp -a $install/usr/share/pixmaps $fs/usr/share
slaxemulator@7697 41 }
slaxemulator@7697 42