wok-next view wesnoth/receipt @ rev 19879
qemacs: does not need gcc3
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Oct 04 18:36:44 2017 +0200 (2017-10-04) |
parents | 380ffe05937a |
children | 0d1f42a8a414 |
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
10 WEB_SITE="http://www.wesnoth.org/"
11 WGET_URL="$SF_MIRROR/wesnoth/$TARBALL"
12 TAGS="strategy"
14 DEPENDS="libsdl libsdl-mixer libsdl-ttf libsdl-net libsdl-image zlib pango \
15 cairo fontconfig libboost-regex libboost-iostreams libpng fribidi gcc-lib-base \
16 xcb-util libboost-system libboost-program-options"
17 BUILD_DEPENDS="cairo-dev pango-dev libboost-dev libboost-regex \
18 libboost-iostreams libsdl-dev libsdl-mixer-dev libsdl-ttf-dev libsdl-ttf \
19 libsdl-image-dev libsdl-net-dev libpng-dev freetype-dev fontconfig-dev \
20 findutils lua-dev libboost-serialization autoconf automake fribidi-dev \
21 libboost-system libboost-program-options cmake"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 cd $src
27 cmake -DCMAKE_INSTALL_PREFIX=/usr .
28 make $MAKEFLAGS && make DESTDIR=$DESTDIR install
29 }
31 # Rules to gen a SliTaz package suitable for Tazpkg.
32 genpkg_rules()
33 {
34 # programs
35 mkdir -p $fs/usr/bin
36 cp $install/usr/bin/wesnoth $fs/usr/bin/
38 # data
39 mkdir -p $fs/usr/share/wesnoth/
40 cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/
41 cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/
42 cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/
43 cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
45 mkdir $fs/usr/share/wesnoth/translations
46 if [ ! "$LOCALE" = "" ]; then
47 for i in $LOCALE
48 do
49 cp -a $install/usr/share/wesnoth/translations/$i \
50 $fs/usr/share/wesnoth/translations
51 done
52 else
53 cp -a $install/usr/share/wesnoth/translations \
54 $fs/usr/share/wesnoth/
55 fi
57 # Remove music
58 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null
60 # finalize
61 cp -a $install/usr/share/applications $fs/usr/share
62 cp -a $install/usr/share/pixmaps $fs/usr/share
64 }