Merge pull request #2253 from pullmoll/supertuxkart
supertuxkart: unbreak musl
This commit is contained in:
commit
d477b46900
4 changed files with 40 additions and 2 deletions
1
srcpkgs/supertuxkart-data
Symbolic link
1
srcpkgs/supertuxkart-data
Symbolic link
|
@ -0,0 +1 @@
|
|||
supertuxkart
|
14
srcpkgs/supertuxkart/patches/musl_no_sys_sysctl_h.patch
Normal file
14
srcpkgs/supertuxkart/patches/musl_no_sys_sysctl_h.patch
Normal 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"
|
15
srcpkgs/supertuxkart/patches/musl_valist.patch
Normal file
15
srcpkgs/supertuxkart/patches/musl_valist.patch
Normal 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
|
|
@ -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
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue