wok-next annotate wesnoth/receipt @ rev 20915

libboost -> boost
author Aleksej Bobylev <al.bobylev@gmail.com>
date Tue Aug 21 00:41:54 2018 +0300 (2018-08-21)
parents dd145c435e4b
children d5aab818505e
rev   line source
pascal@20260 1 # SliTaz package receipt v2.
pascal@3049 2
pascal@3049 3 PACKAGE="wesnoth"
pascal@20260 4 VERSION="1.12.6"
pascal@3049 5 CATEGORY="games"
pascal@3049 6 SHORT_DESC="Turn based strategy game"
pascal@3049 7 MAINTAINER="mimas@slitaz.org"
pascal@15000 8 LICENSE="GPL2"
pascal@15000 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@15000 10 WEB_SITE="http://www.wesnoth.org/"
pascal@20260 11 WGET_URL="$SF_MIRROR/wesnoth/wesnoth-${VERSION%.*}/$PACKAGE-$VERSION/$TARBALL"
pascal@15000 12 TAGS="strategy"
pascal@15000 13
al@20915 14 BUILD_DEPENDS="cairo-dev pango-dev boost-dev boost-regex \
al@20915 15 boost-iostreams libsdl-dev libsdl-mixer-dev libsdl-ttf-dev libsdl-ttf \
al@20454 16 libsdl-image-dev libsdl-net-dev libpng16-dev freetype-dev fontconfig-dev \
al@20915 17 findutils lua-dev boost-serialization autoconf automake fribidi-dev \
al@20915 18 boost-system boost-program-options boost-filesystem boost-locale \
pascal@20260 19 libvorbis-dev cmake gettext-tools"
pascal@20260 20 SPLIT="wesnoth-music"
pascal@3049 21
pascal@3049 22 # Rules to configure and make the package.
pascal@3049 23 compile_rules()
pascal@3049 24 {
pascal@13139 25 cmake -DCMAKE_INSTALL_PREFIX=/usr .
pascal@13139 26 make $MAKEFLAGS && make DESTDIR=$DESTDIR install
pascal@3049 27 }
pascal@3049 28
pascal@3049 29 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@3049 30 genpkg_rules()
pascal@3049 31 {
pascal@20260 32 case $PACKAGE in
pascal@20260 33 wesnoth)
pascal@20260 34 DEPENDS="libsdl libsdl-mixer libsdl-ttf libsdl-net \
pascal@20260 35 libsdl-image zlib pango cairo fontconfig \
al@20915 36 boost-regex boost-iostreams libpng16 fribidi \
al@20915 37 gcc-lib-base xorg-xcb-util boost-system \
al@20915 38 boost-program-options"
pascal@20260 39 # programs
pascal@20260 40 mkdir -p $fs/usr/bin
pascal@20260 41 cp $install/usr/bin/wesnoth $fs/usr/bin/
pascal@3049 42
pascal@20260 43 # data
pascal@20260 44 mkdir -p $fs/usr/share/wesnoth/
pascal@20260 45 cp -a $install/usr/share/wesnoth/data $fs/usr/share/wesnoth/
pascal@20260 46 cp -a $install/usr/share/wesnoth/fonts $fs/usr/share/wesnoth/
pascal@20260 47 cp -a $install/usr/share/wesnoth/images $fs/usr/share/wesnoth/
pascal@20260 48 cp -a $install/usr/share/wesnoth/sounds $fs/usr/share/wesnoth/
pascal@3049 49
pascal@20260 50 mkdir $fs/usr/share/wesnoth/translations
pascal@20260 51 if [ ! "$LOCALE" = "" ]; then
pascal@20260 52 for i in $LOCALE
pascal@20260 53 do
pascal@20260 54 cp -a $install/usr/share/wesnoth/translations/$i \
pascal@20260 55 $fs/usr/share/wesnoth/translations
pascal@20260 56 done
pascal@20260 57 else
pascal@20260 58 cp -a $install/usr/share/wesnoth/translations \
pascal@20260 59 $fs/usr/share/wesnoth/
pascal@20260 60 fi
pascal@3049 61
pascal@20260 62 # Remove music
pascal@20260 63 rm $fs/usr/share/wesnoth/data/core/music/*.ogg 2> /dev/null
pascal@3049 64
pascal@20260 65 # finalize
pascal@20260 66 cp -a $install/usr/share/applications $fs/usr/share
pascal@20260 67 cp -a $install/usr/share/pixmaps $fs/usr/share
pascal@20260 68 ;;
pascal@20260 69 wesnoth-music)
pascal@20260 70 CAT="games|music files"
pascal@20260 71 mkdir -p $fs/usr/share/wesnoth/data/core
pascal@20260 72 cp -a $src/data/core/music $fs/usr/share/wesnoth/data/core
pascal@20260 73 ;;
pascal@20260 74 esac
pascal@3049 75 }