supertuxkart: new package
PATCH v4 1/1 supertuxkart: new package
Note that this package builds and bundles a number of libraries, such as GLEW and Irrlicht. We are not interested in doing non-upstreamable changes, so it is not desirable to modify this choice in any way.
In addition, Supertuxkart builds a version of the angelscript interpreter. If a compatible version of angelscript is installed on the system, it's possible to use it.
--
Changes from v3:
* Bumped to v0.9.2
* Added a patch to fix bad return jpeglib 'boolean' type
Changes from v2:
* Reformat patch to git format
* Add sourceforge md5 and sha1 hashes
* Prevent building with musl toolchains
* Fix license to GPLv3+ and document about other licenses
* Add missing Config.in comments
* Re-wrap and order alphabetically package dependencies in .mk
* Explicitly enable USE_WIIUSE
Changes from v1:
* Made fribidi optional
* Made the bluez5_utils optional, which simplifies dependencies
* Disable Wii only if bluez5_utils is disabled
* Fixed dependencies inherited from OpenAL
* Added a patch to remove -I/usr/X11R6/include from bundled irrlicht-based engine
--- package/Config.in | 1 + ...001-irrlicht-Get-rid-of-unprefixed-cflags.patch | 34 +++++++++++++++ ...x-boolean-return-type-for-jpeglib-s-callb.patch | 39 ++++++++++++++++++ package/supertuxkart/Config.in | 34 +++++++++++++++ package/supertuxkart/supertuxkart.hash | 5 +++ package/supertuxkart/supertuxkart.mk | 48 ++++++++++++++++++++++ 6 files changed, 161 insertions(+) create mode 100644 package/supertuxkart/0001-irrlicht-Get-rid-of-unprefixed-cflags.patch create mode 100644 package/supertuxkart/0002-irrlicht-Fix-boolean-return-type-for-jpeglib-s-callb.patch create mode 100644 package/supertuxkart/Config.in create mode 100644 package/supertuxkart/supertuxkart.hash create mode 100644 package/supertuxkart/supertuxkart.mk
package/Config.in +1 -0
@@ -233,6 +233,7 @@ menu "Games" source "package/prboom/Config.in" source "package/rubix/Config.in" source "package/sl/Config.in" + source "package/supertuxkart/Config.in" endmenu menu "Graphic libraries and applications (graphic/text)"
package/supertuxkart/0001-irrlicht-Get-rid-of-unprefixed-cflags.patch new file +34 -0
@@ -0,0 +1,34 @@ +From 73bed675202cf1f1c748540a4363d7d99e161dca Mon Sep 17 00:00:00 2001 +From: Ezequiel Garcia <[email protected]> +Date: Thu, 9 Jun 2016 18:58:51 -0300 +Subject: [PATCH 1/2] irrlicht: Get rid of unprefixed cflags + +Cross-building requires proper include paths. This commit +removes the unprefixed -I/usr/X11R6/include in irrlicht cflags. + +Signed-off-by: Ezequiel Garcia <[email protected]> +--- +Fix sent upstream as part of pull: +https://github.com/supertuxkart/stk-code/pull/2554 + + lib/irrlicht/CMakeLists.txt | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/lib/irrlicht/CMakeLists.txt b/lib/irrlicht/CMakeLists.txt +index 46d54008c291..5f4975e3a6f9 100644 +--- a/lib/irrlicht/CMakeLists.txt ++++ b/lib/irrlicht/CMakeLists.txt +@@ -25,8 +25,8 @@ elseif(MINGW) + add_definitions(-D_IRR_STATIC_LIB_) + add_definitions(-D_CRT_SECURE_NO_WARNINGS) # Shut up about unsafe stuff + else() +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing -I/usr/X11R6/include") +- set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing -I/usr/X11R6/include") ++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing") ++ set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing") + if(CMAKE_COMPILER_IS_GNUCC) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fexpensive-optimizations") + endif() +-- +2.9.0 +
package/supertuxkart/0002-irrlicht-Fix-boolean-return-type-for-jpeglib-s-callb.patch new file +39 -0
@@ -0,0 +1,39 @@ +From fe71624eb39e0bc302a7603c79503fb12667dc2b Mon Sep 17 00:00:00 2001 +From: Ezequiel Garcia <[email protected]> +Date: Sun, 3 Jul 2016 15:16:59 -0300 +Subject: [PATCH 2/2] irrlicht: Fix boolean return type for jpeglib's callback + +Building on certain toolchains can fail due to returning an integer +instead of TRUE. In any case, only {TRUE,FALSE} should be used +as 'boolean' jpeglib type. Fix this by returning TRUE. + + CImageLoaderJPG.cpp: In static member function 'static boolean + irr::video::CImageLoaderJPG::fill_input_buffer(j_decompress_ptr)': + CImageLoaderJPG.cpp:69:9: error: invalid conversion from 'int' to 'boolean' + [-fpermissive] + +Signed-off-by: Romain Naour <[email protected]> +Signed-off-by: Ezequiel Garcia <[email protected]> +--- +Fix sent upstream as part of pull: +https://github.com/supertuxkart/stk-code/pull/2554 + + lib/irrlicht/source/Irrlicht/CImageLoaderJPG.cpp | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/lib/irrlicht/source/Irrlicht/CImageLoaderJPG.cpp b/lib/irrlicht/source/Irrlicht/CImageLoaderJPG.cpp +index 8fc5222a1e9b..1811f31dd28f 100644 +--- a/lib/irrlicht/source/Irrlicht/CImageLoaderJPG.cpp ++++ b/lib/irrlicht/source/Irrlicht/CImageLoaderJPG.cpp +@@ -66,7 +66,7 @@ void CImageLoaderJPG::init_source (j_decompress_ptr cinfo) + boolean CImageLoaderJPG::fill_input_buffer (j_decompress_ptr cinfo) + { + // DO NOTHING +- return 1; ++ return TRUE; + } + + +-- +2.9.0 +
package/supertuxkart/Config.in new file +34 -0
@@ -0,0 +1,34 @@ +config BR2_PACKAGE_SUPERTUXKART + bool "supertuxkart" + depends on BR2_USE_MMU # fork() + depends on BR2_INSTALL_LIBSTDCPP # openal + depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # openal + depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS # openal + depends on BR2_PACKAGE_HAS_LIBGL + depends on BR2_PACKAGE_XORG7 + depends on !BR2_TOOLCHAIN_USES_MUSL + select BR2_PACKAGE_JPEG + select BR2_PACKAGE_LIBCURL + select BR2_PACKAGE_LIBGLU + select BR2_PACKAGE_LIBOGG + select BR2_PACKAGE_LIBPNG + select BR2_PACKAGE_LIBVORBIS + select BR2_PACKAGE_OPENAL + select BR2_PACKAGE_XLIB_LIBXRANDR + select BR2_PACKAGE_ZLIB + help + Karts. Nitro. Action! SuperTuxKart is a free 3D arcade kart + racer with multiple karts, tracks and modes you can play. + Beat the evil Nolok by any means necessary, and make the + mascot kingdom safe once again! + + http://supertuxkart.sourceforge.net/Main_Page + +comment "supertux needs X, an OpenGL backend, a uClibc or glibc toolchain w/ NPTL, C++" + depends on BR2_USE_MMU + depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS + depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL \ + || !BR2_INSTALL_LIBSTDCPP \ + || !BR2_PACKAGE_HAS_LIBGL \ + || BR2_TOOLCHAIN_USES_MUSL \ + || !BR2_PACKAGE_XORG7
package/supertuxkart/supertuxkart.hash new file +5 -0
@@ -0,0 +1,5 @@ +# Locally computed +sha256 0b080bb098a26adb552d6fd48905bcb6b1e873ef1567457d7268d7d3aaa48282 supertuxkart-0.9.2-src.tar.xz +# From https://sourceforge.net/projects/supertuxkart/files/SuperTuxKart/0.9.2/ +sha1 df3805a8f9dc556a0fc5af44442dae8126db5d5a supertuxkart-0.9.2-src.tar.xz +md5 f1f5081fd41b8eeb310b4edc07b9ee12 supertuxkart-0.9.2-src.tar.xz
package/supertuxkart/supertuxkart.mk new file +48 -0
48 lines not on this page · raw message
Signature · 1 line
2.9.0
PATCH v4 1/1 supertuxkart: new package
Review
Quoted 19 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Ezequiel" == Ezequiel Garcia <[email protected]> writes:
Note that this package builds and bundles a number of libraries, such as GLEW and Irrlicht. We are not interested in doing non-upstreamable changes, so it is not desirable to modify this choice in any way.
In addition, Supertuxkart builds a version of the angelscript interpreter. If a compatible version of angelscript is installed on the system, it's possible to use it.
Signed-off-by Ezequiel Garcia <[email protected]>--
Changes from v3:
* Bumped to v0.9.2
* Added a patch to fix bad return jpeglib 'boolean' type+++
b/package/supertuxkart/0002-irrlicht-Fix-boolean-return-type-for-jpeglib-s-callb.patch(quoted diff) +0
-0@@ -0,0 +1,39 @@
Something went wrong with this patch / your mailer. The file you are patching has DOS style line endings, but the patch didn't, so it couldn't be applied on my side and I had to fix it.
Quoted 30 lines
package/supertuxkart/Config.in new file +24
-0@@ -0,0 +1,34 @@ +config BR2_PACKAGE_SUPERTUXKART + bool "supertuxkart" + depends on BR2_USE_MMU # fork() + depends on BR2_INSTALL_LIBSTDCPP # openal + depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # openal + depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS # openal + depends on BR2_PACKAGE_HAS_LIBGL + depends on BR2_PACKAGE_XORG7 + depends on !BR2_TOOLCHAIN_USES_MUSL + select BR2_PACKAGE_JPEG + select BR2_PACKAGE_LIBCURL + select BR2_PACKAGE_LIBGLU + select BR2_PACKAGE_LIBOGG + select BR2_PACKAGE_LIBPNG + select BR2_PACKAGE_LIBVORBIS + select BR2_PACKAGE_OPENAL + select BR2_PACKAGE_XLIB_LIBXRANDR + select BR2_PACKAGE_ZLIB + help + Karts. Nitro. Action! SuperTuxKart is a free 3D arcade kart + racer with multiple karts, tracks and modes you can play. + Beat the evil Nolok by any means necessary, and make the + mascot kingdom safe once again! +
package/supertuxkart/Config.in line 34
Quoted 10 lines
package/supertuxkart/Config.in new file +10
-0+ http://supertuxkart.sourceforge.net/Main_Page + +comment "supertux needs X, an OpenGL backend, a uClibc or glibc toolchain w/ NPTL, C++" + depends on BR2_USE_MMU + depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS + depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL \ + || !BR2_INSTALL_LIBSTDCPP \ + || !BR2_PACKAGE_HAS_LIBGL \ + || BR2_TOOLCHAIN_USES_MUSL \ + || !BR2_PACKAGE_XORG7
We normally don't list the xorg dependency in the comment, so I've dropped that (and made the comment depend on BR2_PACKAGE_XORG7).
Quoted 9 lines
+++
b/package/supertuxkart/supertuxkart.mkpackage/supertuxkart/Config.in new file +7
-0@@ -0,0 +1,48 @@ +################################################################################ +# +# supertuxkart +# +################################################################################ + +SUPERTUXKART_VERSION = 0.9.2
package/supertuxkart/Config.in line 17
Quoted 10 lines
package/supertuxkart/Config.in new file +10
-0+SUPERTUXKART_SOURCE = supertuxkart-$(SUPERTUXKART_VERSION)-src.tar.xz +SUPERTUXKART_SITE = http://downloads.sourceforge.net/project/supertuxkart/SuperTuxKart/$(SUPERTUXKART_VERSION) + +# Supertuxkart itself is GPLv3+, but it bundles a few libraries with different +# licenses. Irrlicht, bullet and angelscript have zlib license, while glew is +# BSD-3c. Since they are linked statically, the result is GPLv3+. +SUPERTUXKART_LICENSE = GPLv3+ +SUPERTUXKART_LICENSE_FILES = COPYING + +SUPERTUXKART_DEPENDENCIES += \
No need for +=, so I've changed this to use '='.
Committed with these fixes, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH v4 1/1 supertuxkart: new package
Quoted 17 lines · Peter Korsgaard
Quoted 16 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Ezequiel" == Ezequiel Garcia <[email protected]> writes:
Note that this package builds and bundles a number of libraries, such as GLEW and Irrlicht. We are not interested in doing non-upstreamable changes, so it is not desirable to modify this choice in any way.
In addition, Supertuxkart builds a version of the angelscript interpreter. If a compatible version of angelscript is installed on the system, it's possible to use it.
Signed-off-by Ezequiel Garcia <[email protected]>--
Changes from v3:
* Bumped to v0.9.2
* Added a patch to fix bad return jpeglib 'boolean' type
Quoted 7 lines
Review
Quoted 2 lines
+++
b/package/supertuxkart/0002-irrlicht-Fix-boolean-return-type-for-jpeglib-s-callb.patch(quoted diff) +0
-0@@ -0,0 +1,39 @@Something went wrong with this patch / your mailer. The file you are patching has DOS style line endings, but the patch didn't, so it couldn't be applied on my side and I had to fix it.
Hm, that must have been the git-send-email, because the patch has DOS style endings here. Sorry about that!
Quoted 66 lines
Quoted 30 lines
package/supertuxkart/Config.in new file +24
-0@@ -0,0 +1,34 @@ +config BR2_PACKAGE_SUPERTUXKART + bool "supertuxkart" + depends on BR2_USE_MMU # fork() + depends on BR2_INSTALL_LIBSTDCPP # openal + depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL # openal + depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS # openal + depends on BR2_PACKAGE_HAS_LIBGL + depends on BR2_PACKAGE_XORG7 + depends on !BR2_TOOLCHAIN_USES_MUSL + select BR2_PACKAGE_JPEG + select BR2_PACKAGE_LIBCURL + select BR2_PACKAGE_LIBGLU + select BR2_PACKAGE_LIBOGG + select BR2_PACKAGE_LIBPNG + select BR2_PACKAGE_LIBVORBIS + select BR2_PACKAGE_OPENAL + select BR2_PACKAGE_XLIB_LIBXRANDR + select BR2_PACKAGE_ZLIB + help + Karts. Nitro. Action! SuperTuxKart is a free 3D arcade kart + racer with multiple karts, tracks and modes you can play. + Beat the evil Nolok by any means necessary, and make the + mascot kingdom safe once again! +package/supertuxkart/Config.in line 34
Quoted 10 lines
package/supertuxkart/Config.in new file +10
-0+ http://supertuxkart.sourceforge.net/Main_Page + +comment "supertux needs X, an OpenGL backend, a uClibc or glibc toolchain w/ NPTL, C++" + depends on BR2_USE_MMU + depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS + depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL \ + || !BR2_INSTALL_LIBSTDCPP \ + || !BR2_PACKAGE_HAS_LIBGL \ + || BR2_TOOLCHAIN_USES_MUSL \ + || !BR2_PACKAGE_XORG7We normally don't list the xorg dependency in the comment, so I've dropped that (and made the comment depend on
BR2_PACKAGE_XORG7).Quoted 9 lines
+++
b/package/supertuxkart/supertuxkart.mkpackage/supertuxkart/Config.in new file +7
-0@@ -0,0 +1,48 @@ +################################################################################ +# +# supertuxkart +# +################################################################################ + +SUPERTUXKART_VERSION = 0.9.2package/supertuxkart/Config.in line 17
Quoted 10 lines
package/supertuxkart/Config.in new file +10
-0+SUPERTUXKART_SOURCE = supertuxkart-$(SUPERTUXKART_VERSION)-src.tar.xz +SUPERTUXKART_SITE = http://downloads.sourceforge.net/project/supertuxkart/SuperTuxKart/$(SUPERTUXKART_VERSION) + +# Supertuxkart itself is GPLv3+, but it bundles a few libraries with different +# licenses. Irrlicht, bullet and angelscript have zlib license, while glew is +# BSD-3c. Since they are linked statically, the result is GPLv3+. +SUPERTUXKART_LICENSE = GPLv3+ +SUPERTUXKART_LICENSE_FILES = COPYING + +SUPERTUXKART_DEPENDENCIES += \No need for +=, so I've changed this to use '='.
Quoted 2 lines
Committed with these fixes, thanks.
Cool, thanks!
Signature · 2 lines
Ezequiel Garc?a, VanguardiaSur www.vanguardiasur.com.ar
PATCH v4 1/1 supertuxkart: new package
Quoted 7 lines · Ezequiel Garcia
Quoted 4 lines
Something went wrong with this patch / your mailer. The file you are
Quoted 3 lines
patching has DOS style line endings, but the patch didn't, so it couldn't be applied on my side and I had to fix it.
Hm, that must have been the git-send-email, because the patch has DOS style endings here. Sorry about that!
Actually, the entire mail (in fact all mail I think) has DOS line endings. See
RFC 822 IIRC.
If a patch has DOS line endings, it should be sent with
*|--transfer-encoding=base64 - at least I think so, I never tried.
This may make review difficult for some people however.
Regards,
Arnout
|*
Signature · 6 lines
Arnout Vandecappelle arnout at mind be Senior Embedded Software Architect +32-16-286500 Essensium/Mind http://www.mind.be G.Geenslaan 9, 3001 Leuven, Belgium BE 872 984 063 RPR Leuven LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle GPG fingerprint: 7493 020B C7E3 8618 8DEC 222C 82EB F404 F9AC 0DDF