wok annotate supertux/receipt @ rev 25030

giblib: inserted configure parameters
author Hans-G?nter Theisgen
date Fri May 20 10:23:32 2022 +0100 (2022-05-20)
parents 934055de50e2
children b81ceff0b056
rev   line source
mallory@2114 1 # SliTaz package receipt.
mallory@2114 2
mallory@2114 3 PACKAGE="supertux"
slaxemulator@7842 4 VERSION="0.3.3"
mallory@2114 5 CATEGORY="games"
mallory@2114 6 SHORT_DESC="SuperTux is a classic 2D jump'n run sidescroller game in a style similar to the original SuperMario games."
pascal@14277 7 MAINTAINER="mallory@sweetpeople.org"
pascal@14999 8 LICENSE="GPL3"
jozee@5019 9 SUGGESTED="nvidia"
mallory@2114 10 TARBALL="$PACKAGE-$VERSION.tar.bz2"
mallory@2114 11 WEB_SITE="http://supertux.lethargik.org/"
pascal@24982 12 WGET_URL="https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/$PACKAGE/$TARBALL"
mallory@2114 13
pascal@13796 14 DEPENDS="libsdl libsdl-image libsdl-mixer curl physfs openal mesa glew \
pascal@13796 15 supertux-data"
pascal@13796 16 BUILD_DEPENDS="libsdl-dev libsdl-image-dev libsdl-mixer-dev curl-dev \
pascal@13796 17 physfs-dev openal-dev mesa-dev glew-dev cmake libboost-dev"
pascal@13796 18
pascal@24462 19 # What is the latest version available today?
pascal@24462 20 current_version()
pascal@24462 21 {
pascal@24462 22 wget -O - http://supertux.github.io/index.html 2>/dev/null | \
pascal@24462 23 sed '/SuperTux [0-9]/!d;s|.*SuperTux ||;s|<.*||;q'
pascal@24462 24 }
pascal@24462 25
mallory@2114 26 # Rules to configure and make the package.
mallory@2114 27 compile_rules()
mallory@2114 28 {
mallory@2114 29 cd $src
pascal@8974 30 cp $stuff/menu.h src
slaxemulator@11405 31 sed -i 's|# include <curl/types.h>||g' src/addon/addon_manager.cpp
slaxemulator@11405 32 sed -i '1i#include <cstddef>' src/supertux/screen_manager.hpp
slaxemulator@7842 33 cmake -D CMAKE_INSTALL_PREFIX=/usr -D INSTALL_SUBDIR_BIN=bin .
slaxemulator@11405 34 make && make DESTDIR=$DESTDIR install
mallory@2114 35 }
mallory@2114 36
mallory@2114 37 # Rules to gen a SliTaz package suitable for Tazpkg.
mallory@2114 38 genpkg_rules()
mallory@2114 39 {
mallory@2114 40 mkdir -p $fs/usr
pascal@13796 41 cp -a $install/usr/bin $fs/usr
mallory@2114 42 }