wok view wesnoth/receipt @ rev 4982

libical-dev: fix include path
author Pascal Bellard <pascal.bellard@slitaz.org>
date Thu Feb 25 09:54:36 2010 +0100 (2010-02-25)
parents 283b42f9a258
children 4897058add72
line source
1 # SliTaz package receipt.
3 PACKAGE="wesnoth"
4 VERSION="1.6.2"
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 cairo fontconfig libboost-regex libboost-iostreams libpng"
9 BUILD_DEPENDS="cairo-dev pango-dev libboost-regex-dev libboost-iostreams-dev libsdl-dev libsdl-mixer-dev libsdl-ttf-dev libsdl-image-dev libsdl-net-dev libpng-dev freetype-dev fontconfig-dev findutils"
10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
11 WEB_SITE="http://www.wesnoth.org/"
12 WGET_URL="$SF_MIRROR/wesnoth/$TARBALL"
13 TAGS="strategy"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 ./configure --prefix=/usr $CONFIGURE_ARGS
20 sed -i -e 's/CFLAGS = -O2/CFLAGS = -fno-strict-aliasing -O2/' \
21 -e 's/CXXFLAGS = -O2/CXXFLAGS = -fno-strict-aliasing -O2/' \
22 Makefile src/Makefile
23 make && make DESTDIR=$PWD/_pkg install
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 # programs
30 mkdir -p $fs/usr/bin
31 cp $_pkg/usr/bin/wesnoth $fs/usr/bin/
33 # data
34 mkdir -p $fs/usr/share/wesnoth/
35 cp -a $_pkg/usr/share/wesnoth/data $fs/usr/share/wesnoth/
36 cp -a $_pkg/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/
37 cp -a $_pkg/usr/share/wesnoth/icons $fs/usr/share/wesnoth/
38 cp -a $_pkg/usr/share/wesnoth/images $fs/usr/share/wesnoth/
39 cp -a $_pkg/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
41 mkdir $fs/usr/share/wesnoth/translations
42 if [ ! "$LOCALE" = "" ]; then
43 for i in $LOCALE
44 do
45 cp -a $_pkg/usr/share/wesnoth/translations/$i \
46 $fs/usr/share/wesnoth/translations
47 done
48 else
49 cp -a $_pkg/usr/share/wesnoth/translations \
50 $fs/usr/share/wesnoth/
51 fi
53 # Remove music
54 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null
56 # finalize
57 cp -a $_pkg/usr/share/applications $fs/usr/share
58 cp -a $_pkg/usr/share/icons $fs/usr/share
60 }