wok annotate frogatto/receipt @ rev 13405

Up frogatto (1.1.1)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Fri Sep 28 18:22:39 2012 +0200 (2012-09-28)
parents fc917d308352
children 6b09507225ec
rev   line source
gokhlayeh@6437 1 # SliTaz package receipt.
gokhlayeh@6437 2
gokhlayeh@6437 3 PACKAGE="frogatto"
pascal@13405 4 VERSION="1.1.1"
gokhlayeh@6437 5 CATEGORY="games"
gokhlayeh@6437 6 SHORT_DESC="An old-school 2d platformer game, starring a certain quixotic frog"
gokhlayeh@7034 7 MAINTAINER="gokhlayeh@slitaz.org"
pascal@13403 8 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@13403 9 WEB_SITE="http://www.frogatto.com"
pascal@13403 10 WGET_URL="$WEB_SITE/files/$TARBALL"
pascal@13403 11
gokhlayeh@6437 12 DEPENDS="xorg-server mesa glew libsdl libsdl-image libsdl-ttf libsdl-mixer libpng \
gokhlayeh@6437 13 libboost-regex libboost-system libboost-date-time libboost-thread libboost-iostreams \
gokhlayeh@6437 14 frogatto-data"
gokhlayeh@6437 15 BUILD_DEPENDS="${DEPENDS/frogatto-data/} ccache xorg-server-dev mesa-dev libsdl-dev libsdl-image-dev \
gokhlayeh@6437 16 libsdl-ttf-dev libsdl-mixer-dev libpng-dev libboost-regex-dev libboost-system-dev \
pascal@13403 17 libboost-date-time-dev libboost-thread-dev libboost-iostreams-dev glew-dev"
gokhlayeh@6437 18
gokhlayeh@6437 19 # Rules to configure and make the package.
gokhlayeh@6437 20 compile_rules()
gokhlayeh@6437 21 {
gokhlayeh@6437 22 cd $src
gokhlayeh@6437 23
gokhlayeh@6437 24 # Frogatto look for multithread libbost (*-mt.so) but we don't use
gokhlayeh@6437 25 # them in SliTaz, let's lure it.
gokhlayeh@6437 26 for lib in $(ls /usr/lib/libboost*); do
gokhlayeh@6437 27 link=$(echo $lib | sed 's/\./-mt./')
gokhlayeh@6437 28 ln -s $lib $link
gokhlayeh@6437 29 done
gokhlayeh@6437 30
gokhlayeh@11574 31 make $MAKEFLAGS game server
gokhlayeh@6437 32
gokhlayeh@6437 33 # Remove the links previously created.
gokhlayeh@6437 34 rm -f /usr/lib/libboost*-mt*
gokhlayeh@6437 35 }
gokhlayeh@6437 36
gokhlayeh@6437 37 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@6437 38 genpkg_rules()
gokhlayeh@6437 39 {
samuel_trassare@12062 40 mkdir -p $fs/usr/games/frogatto $fs/usr/bin $fs/usr/share/pixmaps
gokhlayeh@6437 41 cp -a $src/game $src/server $fs/usr/games/frogatto
samuel_trassare@12062 42 cp -a $src/images/window-icon.png $fs/usr/share/pixmaps
samuel_trassare@12062 43 cp -a $stuff/frogatto $fs/usr/bin
gokhlayeh@6437 44 }