# SliTaz package receipt. PACKAGE="wesnoth" VERSION="1.8.5" CATEGORY="games" SHORT_DESC="Turn based strategy game" MAINTAINER="mimas@slitaz.org" DEPENDS="libsdl libsdl-mixer libsdl-ttf libsdl-net libsdl-image zlib pango \ cairo fontconfig libboost-regex libboost-iostreams libpng fribidi gcc-lib-base \ xcb-util" BUILD_DEPENDS="cairo-dev pango-dev libboost-regex-dev libboost-iostreams-dev libsdl-dev libsdl-mixer-dev libsdl-ttf-dev \ libsdl-ttf libsdl-image-dev libsdl-net-dev libpng-dev freetype-dev fontconfig-dev findutils \ lua-dev libboost-serialization-dev autoconf automake fribidi-dev" TARBALL="$PACKAGE-$VERSION.tar.bz2" WEB_SITE="http://www.wesnoth.org/" WGET_URL="$SF_MIRROR/wesnoth/$TARBALL" TAGS="strategy" # Rules to configure and make the package. compile_rules() { cd $src ./autogen.sh || return 1 ./configure --prefix=/usr $CONFIGURE_ARGS sed -i -e 's/CFLAGS = -O2/CFLAGS = -fno-strict-aliasing -O2/' \ -e 's/CXXFLAGS = -O2/CXXFLAGS = -fno-strict-aliasing -O2/' \ -e 's| -o -wholename "data/test/\*"||' \ Makefile src/Makefile make $MAKEFLAGS && make DESTDIR=$PWD/_pkg install } # Rules to gen a SliTaz package suitable for Tazpkg. genpkg_rules() { # programs mkdir -p $fs/usr/bin cp $_pkg/usr/bin/wesnoth $fs/usr/bin/ # data mkdir -p $fs/usr/share/wesnoth/ cp -a $_pkg/usr/share/wesnoth/data $fs/usr/share/wesnoth/ cp -a $_pkg/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/ cp -a $_pkg/usr/share/wesnoth/icons $fs/usr/share/wesnoth/ cp -a $_pkg/usr/share/wesnoth/images $fs/usr/share/wesnoth/ cp -a $_pkg/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/ mkdir $fs/usr/share/wesnoth/translations if [ ! "$LOCALE" = "" ]; then for i in $LOCALE do cp -a $_pkg/usr/share/wesnoth/translations/$i \ $fs/usr/share/wesnoth/translations done else cp -a $_pkg/usr/share/wesnoth/translations \ $fs/usr/share/wesnoth/ fi # Remove music rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null # finalize cp -a $_pkg/usr/share/applications $fs/usr/share cp -a $_pkg/usr/share/icons $fs/usr/share }