wok-next view foobillardplus/receipt @ rev 20324

linux-libre-api-headers: update bdeps
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Nov 12 00:47:34 2017 +0100 (2017-11-12)
parents 6ff3a3889626
children dd145c435e4b
line source
1 # SliTaz package receipt v2.
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="http://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 libglu-mesa-dev"
17 SPLIT="foobillardplus foobillardplus-music"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 aclocal --force
23 autoconf -f
24 autoheader -f
25 automake --gnu -a -c -f
26 ./configure &&
27 make
28 }
30 # Rules to gen a SliTaz package suitable for Tazpkg.
31 genpkg_rules()
32 {
33 case $PACKAGE in
34 foobillardplus)
35 mkdir -p $fs/usr/bin $fs/usr/share/foobillardplus
36 cp -a $src/src/foobillardplus $fs/usr/bin
37 DATADIR=$fs/usr/share/foobillardplus
38 cp -a $src/data/* $DATADIR
39 rm -f $DATADIR/*.ttf
40 rm -f $DATADIR/*.ico
41 # move to package foobillardplus-music
42 rm -rf $DATADIR/music
43 ;;
44 foobillardplus-music)
45 CAT="games|Music files for FooBillard++"
46 DEPENDS="foobillardplus"
47 mkdir -p $fs/usr/share/foobillardplus
48 cp -a $src/data/music $fs/usr/share/foobillardplus
49 ;;
50 esac
51 }