wok-next view wesnoth/receipt @ rev 20915

libboost -> boost
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Aug 21 00:41:54 2018 +0300 (2018-08-21)
parents dd145c435e4b
children d5aab818505e
line source
1 # SliTaz package receipt v2.
3 PACKAGE="wesnoth"
4 VERSION="1.12.6"
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/wesnoth-${VERSION%.*}/$PACKAGE-$VERSION/$TARBALL"
12 TAGS="strategy"
14 BUILD_DEPENDS="cairo-dev pango-dev boost-dev boost-regex \
15 boost-iostreams libsdl-dev libsdl-mixer-dev libsdl-ttf-dev libsdl-ttf \
16 libsdl-image-dev libsdl-net-dev libpng16-dev freetype-dev fontconfig-dev \
17 findutils lua-dev boost-serialization autoconf automake fribidi-dev \
18 boost-system boost-program-options boost-filesystem boost-locale \
19 libvorbis-dev cmake gettext-tools"
20 SPLIT="wesnoth-music"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 cmake -DCMAKE_INSTALL_PREFIX=/usr .
26 make $MAKEFLAGS && make DESTDIR=$DESTDIR install
27 }
29 # Rules to gen a SliTaz package suitable for Tazpkg.
30 genpkg_rules()
31 {
32 case $PACKAGE in
33 wesnoth)
34 DEPENDS="libsdl libsdl-mixer libsdl-ttf libsdl-net \
35 libsdl-image zlib pango cairo fontconfig \
36 boost-regex boost-iostreams libpng16 fribidi \
37 gcc-lib-base xorg-xcb-util boost-system \
38 boost-program-options"
39 # programs
40 mkdir -p $fs/usr/bin
41 cp $install/usr/bin/wesnoth $fs/usr/bin/
43 # data
44 mkdir -p $fs/usr/share/wesnoth/
45 cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/
46 cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/
47 cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/
48 cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
50 mkdir $fs/usr/share/wesnoth/translations
51 if [ ! "$LOCALE" = "" ]; then
52 for i in $LOCALE
53 do
54 cp -a $install/usr/share/wesnoth/translations/$i \
55 $fs/usr/share/wesnoth/translations
56 done
57 else
58 cp -a $install/usr/share/wesnoth/translations \
59 $fs/usr/share/wesnoth/
60 fi
62 # Remove music
63 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null
65 # finalize
66 cp -a $install/usr/share/applications $fs/usr/share
67 cp -a $install/usr/share/pixmaps $fs/usr/share
68 ;;
69 wesnoth-music)
70 CAT="games|music files"
71 mkdir -p $fs/usr/share/wesnoth/data/core
72 cp -a $src/data/core/music $fs/usr/share/wesnoth/data/core
73 ;;
74 esac
75 }