wok-next view foobillard/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 6ff3a3889626
children c0521c689857
line source
1 # SliTaz package receipt.
3 PACKAGE="foobillard"
4 VERSION="3.0a"
5 CATEGORY="games"
6 SHORT_DESC="An OpenGL billiard game for Linux."
7 MAINTAINER="slaxemulator@gmail.com"
8 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WEB_SITE="http://foobillard.sourceforge.net/"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="libsdl freetype libpng16 mesa libglu-mesa"
14 BUILD_DEPENDS="libsdl-dev freetype-dev libpng16-dev libglu-mesa mesa-dev \
15 zlib-dev libglu-mesa-dev"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 sed -i -e 's/-lXaw//' -e 's/-lXi//' src/Makefile.in
21 patch -p1 < $stuff/03_bugfixes
22 patch -p1 < $stuff/05_foul_explanation
23 patch -p1 < $stuff/06_show_ball_to_hit
24 patch -p0 < $stuff/snooker_reset.patch
25 patch -p0 < $stuff/snooker_draw.patch
27 ./configure \
28 --prefix=/usr \
29 --enable-nvidia=no \
30 --infodir=/usr/share/info \
31 --mandir=/usr/share/man \
32 $CONFIGURE_ARGS &&
33 make && make DESTDIR=$DESTDIR install
34 }
36 # Rules to gen a SliTaz package suitable for Tazpkg.
37 genpkg_rules()
38 {
39 mkdir -p $fs/usr/share
40 cp -a $install/usr/bin $fs/usr
41 cp -a $install/usr/share/foobillard $fs/usr/share
42 }