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