wok view wesnoth/receipt @ rev 4545
busybox/init: add loop & crypto support
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Thu Dec 03 17:58:06 2009 +0100 (2009-12-03) |
parents | e8024c01fc47 |
children | 35ec83c60e58 |
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 cairo fontconfig libboost-regex libboost-iostreams libpng"
9 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"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.wesnoth.org/"
12 WGET_URL="$SF_MIRROR/wesnoth/$TARBALL"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure --prefix=/usr $CONFIGURE_ARGS
19 sed -i -e 's/CFLAGS = -O2/CFLAGS = -fno-strict-aliasing -O2/' \
20 -e 's/CXXFLAGS = -O2/CXXFLAGS = -fno-strict-aliasing -O2/' \
21 Makefile src/Makefile
22 make && make DESTDIR=$PWD/_pkg install
23 }
25 # Rules to gen a SliTaz package suitable for Tazpkg.
26 genpkg_rules()
27 {
28 # programs
29 mkdir -p $fs/usr/bin
30 cp $_pkg/usr/bin/wesnoth $fs/usr/bin/
32 # data
33 mkdir -p $fs/usr/share/wesnoth/
34 cp -a $_pkg/usr/share/wesnoth/data $fs/usr/share/wesnoth/
35 cp -a $_pkg/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/
36 cp -a $_pkg/usr/share/wesnoth/icons $fs/usr/share/wesnoth/
37 cp -a $_pkg/usr/share/wesnoth/images $fs/usr/share/wesnoth/
38 cp -a $_pkg/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
40 mkdir $fs/usr/share/wesnoth/translations
41 if [ ! "$LOCALE" = "" ]; then
42 for i in $LOCALE
43 do
44 cp -a $_pkg/usr/share/wesnoth/translations/$i \
45 $fs/usr/share/wesnoth/translations
46 done
47 else
48 cp -a $_pkg/usr/share/wesnoth/translations \
49 $fs/usr/share/wesnoth/
50 fi
52 # Remove music
53 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null
55 # finalize
56 cp -a $_pkg/usr/share/applications $fs/usr/share
57 cp -a $_pkg/usr/share/icons $fs/usr/share
59 }