wok view wesnoth/receipt @ rev 11574

Replace all '-j 4' occurences by ''
author Antoine Bodin <gokhlayeh@slitaz.org>
date Mon Jan 02 23:06:19 2012 +0100 (2012-01-02)
parents 0867e290621a
children 9433ff922ea5
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/icons $fs/usr/share/wesnoth/
44 cp -a $_pkg/usr/share/wesnoth/images $fs/usr/share/wesnoth/
45 cp -a $_pkg/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
47 mkdir $fs/usr/share/wesnoth/translations
48 if [ ! "$LOCALE" = "" ]; then
49 for i in $LOCALE
50 do
51 cp -a $_pkg/usr/share/wesnoth/translations/$i \
52 $fs/usr/share/wesnoth/translations
53 done
54 else
55 cp -a $_pkg/usr/share/wesnoth/translations \
56 $fs/usr/share/wesnoth/
57 fi
59 # Remove music
60 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null
62 # finalize
63 cp -a $_pkg/usr/share/applications $fs/usr/share
64 cp -a $_pkg/usr/share/icons $fs/usr/share
66 }