wok view frogatto/receipt @ rev 21845

updated rox packages (2.8 -> 2.11)
author Hans-G?nter Theisgen
date Sun Sep 15 11:06:31 2019 +0100 (2019-09-15)
parents 781ac64941ee
children 5ea0ce1cecc0
line source
1 # SliTaz package receipt.
3 PACKAGE="frogatto"
4 VERSION="1.3.1"
5 CATEGORY="games"
6 SHORT_DESC="An old-school 2d platform game, starring a certain quixotic frog."
7 MAINTAINER="gokhlayeh@slitaz.org"
8 LICENSE="GPL3"
9 WEB_SITE="https://www.frogatto.com"
11 TARBALL="$PACKAGE-$VERSION.tar.gz"
12 WGET_URL="https://github.com/$PACKAGE/$PACKAGE/archive/$VERSION/$TARBALL"
14 DEPENDS="frogatto-data glew libboost-date-time libboost-iostreams \
15 libboost-regex libboost-system libboost-thread libpng \
16 libsdl libsdl-image libsdl-mixer libsdl-ttf mesa xorg-server"
17 BUILD_DEPENDS="${DEPENDS/frogatto-data/} ccache coreutils glew-dev \
18 libboost-date-time-dev libboost-iostreams-dev libboost-regex-dev \
19 libboost-system-dev libboost-thread-dev libpng-dev libsdl-dev \
20 libsdl-image-dev libsdl-mixer-dev libsdl-ttf-dev mesa-dev \
21 xorg-server-dev"
23 # Rules to configure and make the package.
24 compile_rules()
25 {
26 patch --input=$stuff/patches/server.cpp-1.3.1 \
27 src/server.cpp
29 # Frogatto look for multithread libbost (*-mt.so) but we don't use
30 # them in SliTaz, let's lure it.
31 for lib in $(ls /usr/lib/libboost*)
32 do
33 link=$(echo $lib | sed 's/\./-mt./')
34 ln -s $lib $link
35 done
37 # http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=652756#19
38 # sed -i 's/io_service()/get_io_service()/' $src/src/server.cpp
39 # not required with version 1.3.1
41 make $MAKEFLAGS game server
43 # Remove the links previously created.
44 rm -f /usr/lib/libboost*-mt*
45 }
47 # Rules to gen a SliTaz package suitable for Tazpkg.
48 genpkg_rules()
49 {
50 mkdir -p $fs/usr/games/frogatto
51 mkdir -p $fs/usr/bin
52 mkdir -p $fs/usr/share/pixmaps
54 cp -a $src/game $fs/usr/games/frogatto
55 cp -a $src/server $fs/usr/games/frogatto
56 cp -a $src/images/window-icon.png $fs/usr/share/pixmaps
57 cp -a $stuff/frogatto $fs/usr/bin
58 }