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