wok view frogatto/receipt @ rev 14169

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