wok annotate foobillardplus/receipt @ rev 25503

f3: include extra programs
author Hans-G?nter Theisgen
date Fri Jan 27 10:37:43 2023 +0100 (16 months ago)
parents 7dd01dedad38
children
rev   line source
pascal@14379 1 # SliTaz package receipt.
pascal@14379 2
pascal@14379 3 PACKAGE="foobillardplus"
pascal@14379 4 VERSION="3.42beta"
pascal@14379 5 CATEGORY="games"
pascal@14379 6 SHORT_DESC="FooBillard - free 3D OpenGL billard game for linux"
pascal@14379 7 MAINTAINER="al.bobylev@gmail.com"
pascal@15002 8 LICENSE="GPL2"
pascal@25460 9 WEB_SITE="https://foobillard.sourceforge.net/"
pascal@14379 10 TARBALL="$PACKAGE-$VERSION.tar.gz"
pascal@14379 11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
pascal@14379 12
pascal@14379 13 DEPENDS="bzlib freetype libglu-mesa libpng libsdl-mixer libsdl-net"
pascal@14379 14
pascal@14379 15 BUILD_DEPENDS="bash automake autoconf libsdl-dev libsdl-mixer-dev \
pascal@14379 16 libsdl-net-dev mesa-dev libglu-mesa freetype-dev libpng-dev"
pascal@14379 17
pascal@24385 18 # What is the latest version available today?
pascal@24385 19 current_version()
pascal@24385 20 {
pascal@24385 21 wget -O - https://sourceforge.net/projects/foobillardplus/files/source/ 2>/dev/null | \
pascal@24385 22 sed '/scope="row/!d;/README/d;s|.*/foobillardplus-||;s|.tar.*||;q'
pascal@24385 23 }
pascal@24385 24
pascal@14379 25 # Rules to configure and make the package.
pascal@14379 26 compile_rules()
pascal@14379 27 {
pascal@25461 28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lz"
pascal@14379 29 aclocal --force
pascal@14379 30 autoconf -f
pascal@14379 31 autoheader -f
pascal@14379 32 automake --gnu -a -c -f
pascal@24391 33 ac_cv_prog_cc_c99=no ./configure &&
pascal@14379 34 make
pascal@14379 35 }
pascal@14379 36
pascal@14379 37 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@14379 38 genpkg_rules()
pascal@14379 39 {
pascal@14379 40 mkdir -p $fs/usr/bin $fs/usr/share/foobillardplus
pascal@14379 41 cp -a $src/src/foobillardplus $fs/usr/bin
pascal@14379 42 DATADIR=$fs/usr/share/foobillardplus
pascal@14379 43 cp -a $src/data/* $DATADIR
pascal@14379 44 rm -f $DATADIR/*.ttf
pascal@14379 45 rm -f $DATADIR/*.ico
pascal@14379 46 # move to package foobillardplus-music
pascal@14379 47 rm -rf $DATADIR/music
pascal@14379 48 }