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