wok-current annotate foobillard/receipt @ rev 25730

Fix depend for xorg-server (libxshmfence)
author Stanislas Leduc <shann@slitaz.org>
date Thu Dec 05 13:05:56 2024 +0000 (12 days ago)
parents 640a2eba2511
children
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"
pascal@25460 10 WEB_SITE="https://foobillard.sourceforge.net/"
slaxemulator@7500 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
slaxemulator@7500 12
pascal@13796 13 DEPENDS="libsdl freetype libpng mesa libglu-mesa"
pascal@13796 14 BUILD_DEPENDS="libsdl-dev freetype-dev libpng-dev libglu-mesa mesa-dev zlib-dev"
pascal@13796 15
pascal@24385 16 # What is the latest version available today?
pascal@24385 17 current_version()
pascal@24385 18 {
pascal@24385 19 wget -O - https://sourceforge.net/projects/foobillard/files/FooBillard-Sources/ 2>/dev/null | \
pascal@24385 20 sed '/scope="row/!d;s|.*/foobillard-||;s|.tar.*||;q'
pascal@24385 21 }
pascal@24385 22
slaxemulator@7500 23 # Rules to configure and make the package.
slaxemulator@7500 24 compile_rules()
slaxemulator@7500 25 {
slaxemulator@7500 26 cd $src
slaxemulator@7500 27 sed -i -e 's/-lXaw//' -e 's/-lXi//' src/Makefile.in
slaxemulator@9700 28 patch -p1 < $stuff/03_bugfixes
slaxemulator@9700 29 patch -p1 < $stuff/05_foul_explanation
slaxemulator@9700 30 patch -p1 < $stuff/06_show_ball_to_hit
slaxemulator@9700 31 patch -p0 < $stuff/snooker_reset.patch
slaxemulator@9700 32 patch -p0 < $stuff/snooker_draw.patch
slaxemulator@7500 33
slaxemulator@7500 34 ./configure \
slaxemulator@7500 35 --prefix=/usr \
pascal@14925 36 --enable-nvidia=no \
slaxemulator@7500 37 --infodir=/usr/share/info \
slaxemulator@7500 38 --mandir=/usr/share/man \
slaxemulator@7500 39 $CONFIGURE_ARGS &&
pascal@13796 40 make && make DESTDIR=$DESTDIR install
slaxemulator@7500 41 }
slaxemulator@7500 42
slaxemulator@7500 43 # Rules to gen a SliTaz package suitable for Tazpkg.
slaxemulator@7500 44 genpkg_rules()
slaxemulator@7500 45 {
slaxemulator@7500 46 mkdir -p $fs/usr/share
pascal@13796 47 cp -a $install/usr/bin $fs/usr
pascal@13796 48 cp -a $install/usr/share/foobillard $fs/usr/share
slaxemulator@7500 49 }
slaxemulator@7500 50