wok-current annotate frogatto/receipt @ rev 13969
syslinux: add 5.0 searchdir resource leak fix
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Feb 03 17:35:36 2013 +0100 (2013-02-03) |
parents | 6b09507225ec |
children | 205d192370e5 |
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" |
pascal@13796 | 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 |
al@13847 | 31 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652756#19 |
al@13847 | 32 sed -i 's/io_service()/get_io_service()/' $src/src/server.cpp |
al@13847 | 33 |
gokhlayeh@11574 | 34 make $MAKEFLAGS game server |
gokhlayeh@6437 | 35 |
gokhlayeh@6437 | 36 # Remove the links previously created. |
gokhlayeh@6437 | 37 rm -f /usr/lib/libboost*-mt* |
gokhlayeh@6437 | 38 } |
gokhlayeh@6437 | 39 |
gokhlayeh@6437 | 40 # Rules to gen a SliTaz package suitable for Tazpkg. |
gokhlayeh@6437 | 41 genpkg_rules() |
gokhlayeh@6437 | 42 { |
samuel_trassare@12062 | 43 mkdir -p $fs/usr/games/frogatto $fs/usr/bin $fs/usr/share/pixmaps |
gokhlayeh@6437 | 44 cp -a $src/game $src/server $fs/usr/games/frogatto |
samuel_trassare@12062 | 45 cp -a $src/images/window-icon.png $fs/usr/share/pixmaps |
samuel_trassare@12062 | 46 cp -a $stuff/frogatto $fs/usr/bin |
gokhlayeh@6437 | 47 } |