wok view wesnoth/receipt @ rev 5283

Up: ncmpcpp (0.5.3)
author Paul Issott <paul@slitaz.org>
date Sat Apr 17 12:59:32 2010 +0000 (2010-04-17)
parents d5cc0560589c
children c161b9c835d2
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 -e 's| -o -wholename "data/test/\*"||' \
25 Makefile src/Makefile
26 make && make DESTDIR=$PWD/_pkg install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 # programs
33 mkdir -p $fs/usr/bin
34 cp $_pkg/usr/bin/wesnoth $fs/usr/bin/
36 # data
37 mkdir -p $fs/usr/share/wesnoth/
38 cp -a $_pkg/usr/share/wesnoth/data $fs/usr/share/wesnoth/
39 cp -a $_pkg/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/
40 cp -a $_pkg/usr/share/wesnoth/icons $fs/usr/share/wesnoth/
41 cp -a $_pkg/usr/share/wesnoth/images $fs/usr/share/wesnoth/
42 cp -a $_pkg/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
44 mkdir $fs/usr/share/wesnoth/translations
45 if [ ! "$LOCALE" = "" ]; then
46 for i in $LOCALE
47 do
48 cp -a $_pkg/usr/share/wesnoth/translations/$i \
49 $fs/usr/share/wesnoth/translations
50 done
51 else
52 cp -a $_pkg/usr/share/wesnoth/translations \
53 $fs/usr/share/wesnoth/
54 fi
56 # Remove music
57 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null
59 # finalize
60 cp -a $_pkg/usr/share/applications $fs/usr/share
61 cp -a $_pkg/usr/share/icons $fs/usr/share
63 }