wok-next annotate frogatto/receipt @ rev 9609

Up tazweb (1.2) - New URL entry and handle personal/bookmarks page
author Christophe Lincoln <pankso@slitaz.org>
date Fri Apr 15 05:22:23 2011 +0200 (2011-04-15)
parents a9dbe46ded86
children 8e4c74abdf74
rev   line source
gokhlayeh@6437 1 # SliTaz package receipt.
gokhlayeh@6437 2
gokhlayeh@6437 3 PACKAGE="frogatto"
gokhlayeh@6437 4 VERSION="1.0.3"
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"
gokhlayeh@6437 8 DEPENDS="xorg-server mesa glew libsdl libsdl-image libsdl-ttf libsdl-mixer libpng \
gokhlayeh@6437 9 libboost-regex libboost-system libboost-date-time libboost-thread libboost-iostreams \
gokhlayeh@6437 10 frogatto-data"
gokhlayeh@6437 11 BUILD_DEPENDS="${DEPENDS/frogatto-data/} ccache xorg-server-dev mesa-dev libsdl-dev libsdl-image-dev \
gokhlayeh@6437 12 libsdl-ttf-dev libsdl-mixer-dev libpng-dev libboost-regex-dev libboost-system-dev \
gokhlayeh@6437 13 libboost-date-time-dev libboost-thread-dev libboost-iostreams-dev"
gokhlayeh@6437 14 TARBALL="$PACKAGE-$VERSION.tar.bz2"
gokhlayeh@6437 15 WEB_SITE="http://www.frogatto.com"
gokhlayeh@6437 16 WGET_URL="$WEB_SITE/files/$TARBALL"
gokhlayeh@6437 17
gokhlayeh@6437 18 # Rules to configure and make the package.
gokhlayeh@6437 19 compile_rules()
gokhlayeh@6437 20 {
gokhlayeh@6437 21 cd $src
gokhlayeh@6437 22
gokhlayeh@6437 23 # Frogatto look for multithread libbost (*-mt.so) but we don't use
gokhlayeh@6437 24 # them in SliTaz, let's lure it.
gokhlayeh@6437 25 for lib in $(ls /usr/lib/libboost*); do
gokhlayeh@6437 26 link=$(echo $lib | sed 's/\./-mt./')
gokhlayeh@6437 27 ln -s $lib $link
gokhlayeh@6437 28 done
gokhlayeh@6437 29
gokhlayeh@6437 30 make -j 4 game server
gokhlayeh@6437 31
gokhlayeh@6437 32 # Remove the links previously created.
gokhlayeh@6437 33 rm -f /usr/lib/libboost*-mt*
gokhlayeh@6437 34 }
gokhlayeh@6437 35
gokhlayeh@6437 36 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@6437 37 genpkg_rules()
gokhlayeh@6437 38 {
gokhlayeh@6437 39 mkdir -p $fs/usr/games/frogatto $fs/usr/share/applications \
gokhlayeh@6437 40 $fs/usr/bin
gokhlayeh@6437 41 cp -a $src/game $src/server $fs/usr/games/frogatto
gokhlayeh@6437 42 cp -a stuff/frogatto $fs/usr/bin
gokhlayeh@6437 43 cp -a stuff/frogatto.desktop $fs/usr/share/applications
gokhlayeh@6437 44 }