wok-next view wesnoth/receipt @ rev 21207

try to build asterisk again
author Hans-G?nter Theisgen
date Mon Dec 02 09:52:22 2019 +0100 (2019-12-02)
parents 0f2575775b2d
children
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="devel@slitaz.org"
8 LICENSE="GPL2"
9 WEB_SITE="http://www.wesnoth.org/"
11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
12 WGET_URL="$SF_MIRROR/$PACKAGE/$TARBALL"
14 BUILD_DEPENDS="cairo-dev pango-dev boost-dev boost-regex \
15 boost-iostreams sdl-dev sdl-mixer-dev sdl-ttf-dev sdl-ttf \
16 sdl-image-dev sdl-net-dev libpng-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"
20 SPLIT="$PACKAGE-music"
22 compile_rules() {
23 cmake \
24 -DCMAKE_INSTALL_PREFIX=/usr \
25 . &&
26 make $MAKEFLAGS &&
27 make DESTDIR=$install install
28 }
30 genpkg_rules() {
31 case $PACKAGE in
32 wesnoth)
33 DEPENDS="sdl sdl-mixer sdl-ttf sdl-net \
34 sdl-image zlib pango libcairo fontconfig \
35 boost-regex boost-iostreams libpng fribidi \
36 gcc-lib-base xcb-util boost-system \
37 boost-program-options"
38 # programs
39 mkdir -p $fs/usr/bin
40 cp $install/usr/bin/wesnoth $fs/usr/bin/
42 # data
43 mkdir -p $fs/usr/share/wesnoth/
44 cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/
45 cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/
46 cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/
47 cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
49 mkdir $fs/usr/share/wesnoth/translations
50 if [ -n "$LOCALE" ]; then
51 for i in $LOCALE; do
52 cp -a $install/usr/share/wesnoth/translations/$i \
53 $fs/usr/share/wesnoth/translations
54 done
55 else
56 cp -a $install/usr/share/wesnoth/translations \
57 $fs/usr/share/wesnoth/
58 fi
60 # Remove music
61 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2>/dev/null
63 # finalize
64 cp -a $install/usr/share/applications $fs/usr/share
65 cp -a $install/usr/share/pixmaps $fs/usr/share
66 TAGS="strategy"
67 ;;
68 *-music)
69 CAT="games|music files"
70 mkdir -p $fs/usr/share/wesnoth/data/core
71 cp -a $src/data/core/music $fs/usr/share/wesnoth/data/core
72 ;;
73 esac
74 }