wok-next annotate wesnoth/receipt @ rev 4637
Up: web-applications (1.1)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Thu Dec 24 18:22:10 2009 +0100 (2009-12-24) |
parents | e8024c01fc47 |
children | 35ec83c60e58 |
rev | line source |
---|---|
pascal@3049 | 1 # SliTaz package receipt. |
pascal@3049 | 2 |
pascal@3049 | 3 PACKAGE="wesnoth" |
pascal@3049 | 4 VERSION="1.6.2" |
pascal@3049 | 5 CATEGORY="games" |
pascal@3049 | 6 SHORT_DESC="Turn based strategy game" |
pascal@3049 | 7 MAINTAINER="mimas@slitaz.org" |
pankso@3425 | 8 DEPENDS="libsdl libsdl-mixer libsdl-ttf libsdl-net libsdl-image zlib pango cairo fontconfig libboost-regex libboost-iostreams libpng" |
pankso@3425 | 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" |
pascal@3049 | 10 TARBALL="$PACKAGE-$VERSION.tar.bz2" |
pascal@3049 | 11 WEB_SITE="http://www.wesnoth.org/" |
pascal@3049 | 12 WGET_URL="$SF_MIRROR/wesnoth/$TARBALL" |
pascal@3049 | 13 |
pascal@3049 | 14 # Rules to configure and make the package. |
pascal@3049 | 15 compile_rules() |
pascal@3049 | 16 { |
pascal@3049 | 17 cd $src |
pascal@4255 | 18 ./configure --prefix=/usr $CONFIGURE_ARGS |
pascal@4255 | 19 sed -i -e 's/CFLAGS = -O2/CFLAGS = -fno-strict-aliasing -O2/' \ |
pascal@4255 | 20 -e 's/CXXFLAGS = -O2/CXXFLAGS = -fno-strict-aliasing -O2/' \ |
pascal@4255 | 21 Makefile src/Makefile |
pascal@3049 | 22 make && make DESTDIR=$PWD/_pkg install |
pascal@3049 | 23 } |
pascal@3049 | 24 |
pascal@3049 | 25 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@3049 | 26 genpkg_rules() |
pascal@3049 | 27 { |
pascal@3049 | 28 # programs |
pascal@3049 | 29 mkdir -p $fs/usr/bin |
pascal@3049 | 30 cp $_pkg/usr/bin/wesnoth $fs/usr/bin/ |
pascal@3049 | 31 |
pascal@3049 | 32 # data |
pascal@3049 | 33 mkdir -p $fs/usr/share/wesnoth/ |
pascal@3049 | 34 cp -a $_pkg/usr/share/wesnoth/data $fs/usr/share/wesnoth/ |
pascal@3049 | 35 cp -a $_pkg/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/ |
pascal@3049 | 36 cp -a $_pkg/usr/share/wesnoth/icons $fs/usr/share/wesnoth/ |
pascal@3049 | 37 cp -a $_pkg/usr/share/wesnoth/images $fs/usr/share/wesnoth/ |
pascal@3049 | 38 cp -a $_pkg/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/ |
pascal@3049 | 39 |
pascal@3049 | 40 mkdir $fs/usr/share/wesnoth/translations |
pascal@3049 | 41 if [ ! "$LOCALE" = "" ]; then |
pascal@3049 | 42 for i in $LOCALE |
pascal@3049 | 43 do |
pascal@3049 | 44 cp -a $_pkg/usr/share/wesnoth/translations/$i \ |
pascal@3049 | 45 $fs/usr/share/wesnoth/translations |
pascal@3049 | 46 done |
pascal@3049 | 47 else |
pascal@3049 | 48 cp -a $_pkg/usr/share/wesnoth/translations \ |
pascal@3049 | 49 $fs/usr/share/wesnoth/ |
pascal@3049 | 50 fi |
pascal@3049 | 51 |
pascal@3049 | 52 # Remove music |
pascal@3050 | 53 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null |
pascal@3049 | 54 |
pascal@3049 | 55 # finalize |
pascal@3049 | 56 cp -a $_pkg/usr/share/applications $fs/usr/share |
pascal@3049 | 57 cp -a $_pkg/usr/share/icons $fs/usr/share |
pascal@3049 | 58 |
pascal@3049 | 59 } |
pascal@3049 | 60 |