wok-current view wesnoth/receipt @ rev 13136
wesnoth: fix genpkg_rules
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 08 16:36:30 2012 +0200 (2012-07-08) |
parents | 8e4c74abdf74 |
children | 1a058ee0e4c2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="wesnoth"
4 VERSION="1.8.5"
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 \
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 TARBALL="$PACKAGE-$VERSION.tar.bz2"
15 WEB_SITE="http://www.wesnoth.org/"
16 WGET_URL="$SF_MIRROR/wesnoth/$TARBALL"
17 TAGS="strategy"
19 # Rules to configure and make the package.
20 compile_rules()
21 {
22 cd $src
23 ./autogen.sh || return 1
24 ./configure --prefix=/usr $CONFIGURE_ARGS
25 sed -i -e 's/CFLAGS = -O2/CFLAGS = -fno-strict-aliasing -O2/' \
26 -e 's/CXXFLAGS = -O2/CXXFLAGS = -fno-strict-aliasing -O2/' \
27 -e 's| -o -wholename "data/test/\*"||' \
28 Makefile src/Makefile
29 make $MAKEFLAGS && make DESTDIR=$PWD/_pkg install
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 # programs
36 mkdir -p $fs/usr/bin
37 cp $_pkg/usr/bin/wesnoth $fs/usr/bin/
39 # data
40 mkdir -p $fs/usr/share/wesnoth/
41 cp -a $_pkg/usr/share/wesnoth/data $fs/usr/share/wesnoth/
42 cp -a $_pkg/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/
43 cp -a $_pkg/usr/share/wesnoth/images $fs/usr/share/wesnoth/
44 cp -a $_pkg/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
46 mkdir $fs/usr/share/wesnoth/translations
47 if [ ! "$LOCALE" = "" ]; then
48 for i in $LOCALE
49 do
50 cp -a $_pkg/usr/share/wesnoth/translations/$i \
51 $fs/usr/share/wesnoth/translations
52 done
53 else
54 cp -a $_pkg/usr/share/wesnoth/translations \
55 $fs/usr/share/wesnoth/
56 fi
58 # Remove music
59 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null
61 # finalize
62 cp -a $_pkg/usr/share/applications $fs/usr/share
63 cp -a $_pkg/usr/share/pixmaps $fs/usr/share
65 }