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