Merge pull request #2253 from pullmoll/supertuxkart

supertuxkart: unbreak musl
This commit is contained in:
Jürgen Buchmüller 2015-08-16 03:05:40 +02:00
commit d477b46900
4 changed files with 40 additions and 2 deletions

1
srcpkgs/supertuxkart-data Symbolic link
View file

@ -0,0 +1 @@
supertuxkart

View file

@ -0,0 +1,14 @@
--- lib/irrlicht/source/Irrlicht/COSOperator.cpp 2015-04-21 13:32:20.604208642 +0200
+++ lib/irrlicht/source/Irrlicht/COSOperator.cpp 2015-08-15 23:29:13.828953039 +0200
@@ -13,9 +13,11 @@
#include <unistd.h>
#if !defined(_IRR_SOLARIS_PLATFORM_) && !defined(__CYGWIN__)
#include <sys/types.h>
+#if defined(__GLIBC__)
#include <sys/sysctl.h>
#endif
#endif
+#endif
#if defined(_IRR_COMPILE_WITH_X11_DEVICE_)
#include "CIrrDeviceLinux.h"

View file

@ -0,0 +1,15 @@
--- src/utils/log.hpp 2015-04-21 13:32:22.936220206 +0200
+++ src/utils/log.hpp 2015-08-15 23:43:09.392887849 +0200
@@ -26,10 +26,10 @@
#include <stdlib.h>
#include <string>
-#ifdef __GNUC__
+#if defined(__GLIBC__)
# define VALIST __gnuc_va_list
#else
-# define VALIST char*
+# define VALIST va_list
#endif
#if defined(_WIN32) && defined(_MSC_VER) && _MSC_VER < 1800

View file

@ -1,17 +1,25 @@
# Template file for 'supertuxkart'
pkgname=supertuxkart
version=0.9
revision=1
revision=2
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
build_style=cmake
hostmakedepends="cmake pkg-config"
makedepends="libgomp-devel libjpeg-turbo-devel libpng-devel
libbluetooth-devel glu-devel libvorbis-devel libXrandr-devel
libopenal-devel fribidi-devel libcurl-devel"
depends="desktop-file-utils hicolor-icon-theme"
depends="desktop-file-utils hicolor-icon-theme supertuxkart-data"
short_desc="Kart racing game featuring Tux and his friends"
maintainer="Juan RP <xtraeme@voidlinux.eu>"
license="GPL-2"
homepage="http://supertuxkart.sourceforge.net/"
distfiles="${SOURCEFORGE_SITE}/${pkgname}/${pkgname}-${version}-src.tar.xz"
checksum=c0eb24eb49e23ed6d03f4864feb43573e14971c8420bf60c3c654d4e05ff9aa6
supertuxkart-data_package() {
short_desc+=" - data files"
noarch=yes
pkg_install() {
vmove usr/share/supertuxkart
}
}