wok-next view wesnoth/receipt @ rev 5007

[s-w]*: update depends
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Feb 28 17:49:32 2010 +0100 (2010-02-28)
parents 35ec83c60e58
children d5cc0560589c
line source
1 # SliTaz package receipt.
3 PACKAGE="wesnoth"
4 VERSION="1.6.2"
5 CATEGORY="games"
6 SHORT_DESC="Turn based strategy game"
7 MAINTAINER="mimas@slitaz.org"
8 DEPENDS="libsdl libsdl-mixer libsdl-ttf libsdl-net libsdl-image zlib pango \
9 cairo fontconfig libboost-regex libboost-iostreams libpng fribidi gcc-lib-base \
10 xcb-util"
11 BUILD_DEPENDS="cairo-dev pango-dev libboost-regex-dev libboost-iostreams-dev libsdl-dev libsdl-mixer-dev libsdl-ttf-dev libsdl-image-dev libsdl-net-dev libpng-dev freetype-dev fontconfig-dev findutils"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WEB_SITE="http://www.wesnoth.org/"
14 WGET_URL="$SF_MIRROR/wesnoth/$TARBALL"
15 TAGS="strategy"
17 # Rules to configure and make the package.
18 compile_rules()
19 {
20 cd $src
21 ./configure --prefix=/usr $CONFIGURE_ARGS
22 sed -i -e 's/CFLAGS = -O2/CFLAGS = -fno-strict-aliasing -O2/' \
23 -e 's/CXXFLAGS = -O2/CXXFLAGS = -fno-strict-aliasing -O2/' \
24 Makefile src/Makefile
25 make && make DESTDIR=$PWD/_pkg install
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 # programs
32 mkdir -p $fs/usr/bin
33 cp $_pkg/usr/bin/wesnoth $fs/usr/bin/
35 # data
36 mkdir -p $fs/usr/share/wesnoth/
37 cp -a $_pkg/usr/share/wesnoth/data $fs/usr/share/wesnoth/
38 cp -a $_pkg/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/
39 cp -a $_pkg/usr/share/wesnoth/icons $fs/usr/share/wesnoth/
40 cp -a $_pkg/usr/share/wesnoth/images $fs/usr/share/wesnoth/
41 cp -a $_pkg/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
43 mkdir $fs/usr/share/wesnoth/translations
44 if [ ! "$LOCALE" = "" ]; then
45 for i in $LOCALE
46 do
47 cp -a $_pkg/usr/share/wesnoth/translations/$i \
48 $fs/usr/share/wesnoth/translations
49 done
50 else
51 cp -a $_pkg/usr/share/wesnoth/translations \
52 $fs/usr/share/wesnoth/
53 fi
55 # Remove music
56 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null
58 # finalize
59 cp -a $_pkg/usr/share/applications $fs/usr/share
60 cp -a $_pkg/usr/share/icons $fs/usr/share
62 }