wok view wesnoth/receipt @ rev 14229
nspr-dev: tiny edit
author | Dominique Corbex <domcox@slitaz.org> |
---|---|
date | Fri Mar 22 07:32:45 2013 +0100 (2013-03-22) |
parents | 9433ff922ea5 |
children | 380ffe05937a |
line source
1 # SliTaz package receipt.
3 PACKAGE="wesnoth"
4 VERSION="1.10.3"
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 libboost-system libboost-program-options"
11 BUILD_DEPENDS="cairo-dev pango-dev libboost-regex-dev libboost-iostreams-dev libsdl-dev libsdl-mixer-dev libsdl-ttf-dev \
12 libsdl-ttf libsdl-image-dev libsdl-net-dev libpng-dev freetype-dev fontconfig-dev findutils \
13 lua-dev libboost-serialization-dev autoconf automake fribidi-dev \
14 libboost-system-dev libboost-program-options-dev cmake"
15 TARBALL="$PACKAGE-$VERSION.tar.bz2"
16 WEB_SITE="http://www.wesnoth.org/"
17 WGET_URL="$SF_MIRROR/wesnoth/$TARBALL"
18 TAGS="strategy"
20 # Rules to configure and make the package.
21 compile_rules()
22 {
23 cd $src
24 cmake -DCMAKE_INSTALL_PREFIX=/usr .
25 make $MAKEFLAGS && make DESTDIR=$DESTDIR 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/images $fs/usr/share/wesnoth/
40 cp -a $_pkg/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
42 mkdir $fs/usr/share/wesnoth/translations
43 if [ ! "$LOCALE" = "" ]; then
44 for i in $LOCALE
45 do
46 cp -a $_pkg/usr/share/wesnoth/translations/$i \
47 $fs/usr/share/wesnoth/translations
48 done
49 else
50 cp -a $_pkg/usr/share/wesnoth/translations \
51 $fs/usr/share/wesnoth/
52 fi
54 # Remove music
55 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null
57 # finalize
58 cp -a $_pkg/usr/share/applications $fs/usr/share
59 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
61 }