wok-6.x view wesnoth/receipt @ rev 3291

Add: h8300-gcc; Update: h8300-gcc3
author Matthew Sheets <rcx@zoominternet.net>
date Wed Jun 03 15:24:25 2009 +0000 (2009-06-03)
parents 663221981524
children e8024c01fc47
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"
14 # Rules to configure and make the package.
15 compile_rules()
16 {
17 cd $src
18 ./configure --prefix=/usr $CONFIGURE_ARGS && \
19 make && make DESTDIR=$PWD/_pkg install
20 }
22 # Rules to gen a SliTaz package suitable for Tazpkg.
23 genpkg_rules()
24 {
25 # programs
26 mkdir -p $fs/usr/bin
27 cp $_pkg/usr/bin/wesnoth $fs/usr/bin/
29 # data
30 mkdir -p $fs/usr/share/wesnoth/
31 cp -a $_pkg/usr/share/wesnoth/data $fs/usr/share/wesnoth/
32 cp -a $_pkg/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/
33 cp -a $_pkg/usr/share/wesnoth/icons $fs/usr/share/wesnoth/
34 cp -a $_pkg/usr/share/wesnoth/images $fs/usr/share/wesnoth/
35 cp -a $_pkg/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
37 mkdir $fs/usr/share/wesnoth/translations
38 if [ ! "$LOCALE" = "" ]; then
39 for i in $LOCALE
40 do
41 cp -a $_pkg/usr/share/wesnoth/translations/$i \
42 $fs/usr/share/wesnoth/translations
43 done
44 else
45 cp -a $_pkg/usr/share/wesnoth/translations \
46 $fs/usr/share/wesnoth/
47 fi
49 # Remove music
50 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null
52 # finalize
53 cp -a $_pkg/usr/share/applications $fs/usr/share
54 cp -a $_pkg/usr/share/icons $fs/usr/share
56 }