wok-next view foobillard/receipt @ rev 11380

Improvement: libwebkit doesn't need -j1 to compile anymore
author Antoine Bodin <gokhlayeh@slitaz.org>
date Sat Dec 10 03:55:28 2011 +0100 (2011-12-10)
parents ab3747cf211d
children 6b09507225ec
line source
1 # SliTaz package receipt.
3 PACKAGE="foobillard"
4 VERSION="3.0a"
5 CATEGORY="games"
6 SHORT_DESC="An OpenGL billiard game for Linux."
7 MAINTAINER="slaxemulator@gmail.com"
8 DEPENDS="libsdl freetype libpng mesa libglu-mesa"
9 BUILD_DEPENDS="libsdl-dev freetype-dev libpng-dev libglu-mesa mesa-dev zlib-dev"
10 TARBALL="$PACKAGE-$VERSION.tar.gz"
11 WEB_SITE="http://foobillard.sourceforge.net/"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 sed -i -e 's/-lXaw//' -e 's/-lXi//' src/Makefile.in
19 patch -p1 < $stuff/03_bugfixes
20 patch -p1 < $stuff/05_foul_explanation
21 patch -p1 < $stuff/06_show_ball_to_hit
22 patch -p0 < $stuff/snooker_reset.patch
23 patch -p0 < $stuff/snooker_draw.patch
25 ./configure \
26 --prefix=/usr \
27 --infodir=/usr/share/info \
28 --mandir=/usr/share/man \
29 $CONFIGURE_ARGS &&
30 make && make DESTDIR=$PWD/_pkg install
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/share
37 cp -a $_pkg/usr/bin $fs/usr
38 cp -a $_pkg/usr/share/foobillard $fs/usr/share
39 }