wok-next annotate frogatto/receipt @ rev 12479
Add sg3_utils
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Mon Apr 23 16:15:50 2012 +0200 (2012-04-23) |
parents | 8e4c74abdf74 |
children | fc917d308352 |
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@11574 | 30 make $MAKEFLAGS 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 { |
samuel_trassare@12062 | 39 mkdir -p $fs/usr/games/frogatto $fs/usr/bin $fs/usr/share/pixmaps |
gokhlayeh@6437 | 40 cp -a $src/game $src/server $fs/usr/games/frogatto |
samuel_trassare@12062 | 41 cp -a $src/images/window-icon.png $fs/usr/share/pixmaps |
samuel_trassare@12062 | 42 cp -a $stuff/frogatto $fs/usr/bin |
gokhlayeh@6437 | 43 } |