wok-next annotate supertux/receipt @ rev 21020

Cleaning is almost finished... I should proceed to upgrades.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri Nov 02 14:15:08 2018 +0200 (2018-11-02)
parents a244e109372e
children 0f2575775b2d
rev   line source
pascal@20324 1 # SliTaz package receipt v2.
mallory@2114 2
mallory@2114 3 PACKAGE="supertux"
slaxemulator@7842 4 VERSION="0.3.3"
mallory@2114 5 CATEGORY="games"
al@21020 6 SHORT_DESC="Classic 2D jump'n run sidescroller game similar to SuperMario games"
al@21020 7 MAINTAINER="devel@slitaz.org"
pascal@14999 8 LICENSE="GPL3"
al@21020 9 WEB_SITE="http://supertux.lethargik.org/"
al@21020 10
mallory@2114 11 TARBALL="$PACKAGE-$VERSION.tar.bz2"
slaxemulator@11405 12 WGET_URL="http://supertux.googlecode.com/files/$TARBALL"
mallory@2114 13
pascal@13796 14 BUILD_DEPENDS="libsdl-dev libsdl-image-dev libsdl-mixer-dev curl-dev \
al@20915 15 physfs-dev openal-dev mesa-dev glew-dev cmake boost-dev libvorbis-dev"
al@21020 16 SPLIT="$PACKAGE-data"
pascal@13796 17
al@21020 18 compile_rules() {
pascal@8974 19 cp $stuff/menu.h src
slaxemulator@11405 20 sed -i 's|# include <curl/types.h>||g' src/addon/addon_manager.cpp
slaxemulator@11405 21 sed -i '1i#include <cstddef>' src/supertux/screen_manager.hpp
al@21020 22
al@21020 23 cmake \
al@21020 24 -DCMAKE_INSTALL_PREFIX=/usr \
al@21020 25 -DINSTALL_SUBDIR_BIN=bin \
al@21020 26 . &&
al@21020 27 make &&
al@21020 28 make DESTDIR=$install install
mallory@2114 29 }
mallory@2114 30
al@21020 31 genpkg_rules() {
pascal@20324 32 case $PACKAGE in
al@21020 33 supertux)
al@21020 34 copy bin/
al@21020 35 DEPENDS="libsdl libsdl-image libsdl-mixer curl physfs openal \
pascal@20324 36 mesa glew supertux-data"
al@21020 37 SUGGESTED="nvidia"
al@21020 38 ;;
al@21020 39 *-data)
al@21020 40 copy games/
al@21020 41 CAT="games|data files"
al@21020 42 ;;
pascal@20324 43 esac
mallory@2114 44 }