wok-current view foobillardplus/receipt @ rev 25709
Rework mesa-dri to use symlink (85% size free), thanks alanyih
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Mon Jun 03 16:29:38 2024 +0000 (6 months ago) |
parents | 7dd01dedad38 |
children |
line source
1 # SliTaz package receipt.
3 PACKAGE="foobillardplus"
4 VERSION="3.42beta"
5 CATEGORY="games"
6 SHORT_DESC="FooBillard - free 3D OpenGL billard game for linux"
7 MAINTAINER="al.bobylev@gmail.com"
8 LICENSE="GPL2"
9 WEB_SITE="https://foobillard.sourceforge.net/"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
13 DEPENDS="bzlib freetype libglu-mesa libpng libsdl-mixer libsdl-net"
15 BUILD_DEPENDS="bash automake autoconf libsdl-dev libsdl-mixer-dev \
16 libsdl-net-dev mesa-dev libglu-mesa freetype-dev libpng-dev"
18 # What is the latest version available today?
19 current_version()
20 {
21 wget -O - https://sourceforge.net/projects/foobillardplus/files/source/ 2>/dev/null | \
22 sed '/scope="row/!d;/README/d;s|.*/foobillardplus-||;s|.tar.*||;q'
23 }
25 # Rules to configure and make the package.
26 compile_rules()
27 {
28 export LDFLAGS="$LDFLAGS -Wl,--copy-dt-needed-entries -lz"
29 aclocal --force
30 autoconf -f
31 autoheader -f
32 automake --gnu -a -c -f
33 ac_cv_prog_cc_c99=no ./configure &&
34 make
35 }
37 # Rules to gen a SliTaz package suitable for Tazpkg.
38 genpkg_rules()
39 {
40 mkdir -p $fs/usr/bin $fs/usr/share/foobillardplus
41 cp -a $src/src/foobillardplus $fs/usr/bin
42 DATADIR=$fs/usr/share/foobillardplus
43 cp -a $src/data/* $DATADIR
44 rm -f $DATADIR/*.ttf
45 rm -f $DATADIR/*.ico
46 # move to package foobillardplus-music
47 rm -rf $DATADIR/music
48 }