wok-current annotate frogatto/receipt @ rev 15330

gnome-doc-utils-dev: update genpkg_rules
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Sep 28 11:01:47 2013 +0000 (2013-09-28)
parents 13adb754dd02
children 0f4caca09bc0
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@15068 8 LICENSE="GPL3"
pascal@13403 9 TARBALL="$PACKAGE-$VERSION.tar.bz2"
pascal@13403 10 WEB_SITE="http://www.frogatto.com"
pascal@13403 11 WGET_URL="$WEB_SITE/files/$TARBALL"
pascal@13403 12
gokhlayeh@6437 13 DEPENDS="xorg-server mesa glew libsdl libsdl-image libsdl-ttf libsdl-mixer libpng \
gokhlayeh@6437 14 libboost-regex libboost-system libboost-date-time libboost-thread libboost-iostreams \
gokhlayeh@6437 15 frogatto-data"
gokhlayeh@6437 16 BUILD_DEPENDS="${DEPENDS/frogatto-data/} ccache xorg-server-dev mesa-dev libsdl-dev libsdl-image-dev \
gokhlayeh@6437 17 libsdl-ttf-dev libsdl-mixer-dev libpng-dev libboost-regex-dev libboost-system-dev \
pascal@13403 18 libboost-date-time-dev libboost-thread-dev libboost-iostreams-dev glew-dev"
gokhlayeh@6437 19
gokhlayeh@6437 20 # Rules to configure and make the package.
gokhlayeh@6437 21 compile_rules()
gokhlayeh@6437 22 {
gokhlayeh@6437 23 cd $src
gokhlayeh@6437 24
gokhlayeh@6437 25 # Frogatto look for multithread libbost (*-mt.so) but we don't use
gokhlayeh@6437 26 # them in SliTaz, let's lure it.
gokhlayeh@6437 27 for lib in $(ls /usr/lib/libboost*); do
gokhlayeh@6437 28 link=$(echo $lib | sed 's/\./-mt./')
gokhlayeh@6437 29 ln -s $lib $link
gokhlayeh@6437 30 done
gokhlayeh@6437 31
al@13847 32 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652756#19
al@13847 33 sed -i 's/io_service()/get_io_service()/' $src/src/server.cpp
al@13847 34
gokhlayeh@11574 35 make $MAKEFLAGS game server
gokhlayeh@6437 36
gokhlayeh@6437 37 # Remove the links previously created.
gokhlayeh@6437 38 rm -f /usr/lib/libboost*-mt*
gokhlayeh@6437 39 }
gokhlayeh@6437 40
gokhlayeh@6437 41 # Rules to gen a SliTaz package suitable for Tazpkg.
gokhlayeh@6437 42 genpkg_rules()
gokhlayeh@6437 43 {
samuel_trassare@12062 44 mkdir -p $fs/usr/games/frogatto $fs/usr/bin $fs/usr/share/pixmaps
gokhlayeh@6437 45 cp -a $src/game $src/server $fs/usr/games/frogatto
samuel_trassare@12062 46 cp -a $src/images/window-icon.png $fs/usr/share/pixmaps
samuel_trassare@12062 47 cp -a $stuff/frogatto $fs/usr/bin
gokhlayeh@6437 48 }