supertuxkart: new package
PATCH v2 1/1 supertuxkart: new package
--
Changes from v1 -- thanks, Arnout!
* 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
No changes regarding Freetype, because latest v0.9.1 release does not use it.
--- package/Config.in | 1 + package/supertuxkart/Config.in | 31 ++++++++++++++++++++ .../supertuxkart-rm-x11r6-include.patch | 14 +++++++++ package/supertuxkart/supertuxkart.hash | 2 ++ package/supertuxkart/supertuxkart.mk | 34 ++++++++++++++++++++++ 5 files changed, 82 insertions(+) create mode 100644 package/supertuxkart/Config.in create mode 100644 package/supertuxkart/supertuxkart-rm-x11r6-include.patch 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/Config.in new file +31 -0
@@ -0,0 +1,31 @@ +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 + 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 a toolchain w/ NPTL, C++" + depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL \ + || !BR2_INSTALL_LIBSTDCPP + +comment "supertuxkart needs an OpenGL backend" + depends on !BR2_PACKAGE_HAS_LIBGL
package/supertuxkart/supertuxkart-rm-x11r6-include.patch new file +14 -0
@@ -0,0 +1,14 @@ +diff -Naur supertuxkart-0.9.1-old/lib/irrlicht/CMakeLists.txt supertuxkart-0.9.1/lib/irrlicht/CMakeLists.txt +--- supertuxkart-0.9.1-old/lib/irrlicht/CMakeLists.txt 2016-05-13 12:21:04.857373661 -0300 ++++ supertuxkart-0.9.1/lib/irrlicht/CMakeLists.txt 2016-05-13 12:21:25.277821763 -0300 +@@ -25,8 +25,8 @@ + add_definitions(-D_IRR_STATIC_LIB_) + add_definitions(-D_CRT_SECURE_NO_WARNINGS) # Shut up about unsafe stuff + else() +- set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing -fexpensive-optimizations -I/usr/X11R6/include") +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing -fexpensive-optimizations -I/usr/X11R6/include") ++ set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing -fexpensive-optimizations") ++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing -fexpensive-optimizations") + endif() + + # Xrandr
package/supertuxkart/supertuxkart.hash new file +2 -0
@@ -0,0 +1,2 @@ +# Locally computed +sha256 c50f00a71df165fb613d20e86bea2d9d5e51ed3e27e1d436fbac3b07cf2ea149 supertuxkart-0.9.1-src.tar.xz
package/supertuxkart/supertuxkart.mk new file +34 -0
@@ -0,0 +1,34 @@ +################################################################################ +# +# supertuxkart +# +################################################################################ + +SUPERTUXKART_VERSION = 0.9.1 +SUPERTUXKART_SOURCE = supertuxkart-$(SUPERTUXKART_VERSION)-src.tar.xz +SUPERTUXKART_SITE = http://downloads.sourceforge.net/project/supertuxkart/SuperTuxKart/$(SUPERTUXKART_VERSION) +SUPERTUXKART_LICENSE = GPLv3 +SUPERTUXKART_LICENSE_FILES = COPYING + +SUPERTUXKART_DEPENDENCIES += jpeg libcurl libgl libglu libpng libogg libvorbis openal zlib xlib_libXrandr + +# Since supertuxkart is not installing libstkirrlicht.so, +# and given we don't really need that library to be shared +# we turn off shared libs here. +SUPERTUXKART_CONF_OPTS = -DBUILD_SHARED_LIBS=OFF + +ifeq ($(BR2_PACKAGE_LIBFRIBIDI),y) +SUPERTUXKART_DEPENDENCIES += libfribidi +SUPERTUXKART_CONF_OPTS += -DUSE_FRIBIDI=ON +else +SUPERTUXKART_CONF_OPTS += -DUSE_FRIBIDI=OFF +endif + +ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS),y) +SUPERTUXKART_DEPENDENCIES += bluez5_utils +else +# Disable Wiimote support +SUPERTUXKART_CONF_OPTS += -DUSE_WIIUSE=OFF +endif + +$(eval $(cmake-package))
Signature · 1 line
2.7.0
PATCH v2 1/1 supertuxkart: new package
Quoted 11 lines · Ezequiel Garcia
Signed-off-by Ezequiel Garcia <[email protected]>--
Changes from v1 -- thanks, Arnout!
* Made fribidi optional
* Made thebluez5_utilsoptional, which simplifies dependencies
* Disable Wii only ifbluez5_utilsis disabled
* Fixed dependencies inherited from OpenAL
* Added a patch to remove -I/usr/X11R6/include from bundled irrlicht-based engineNo changes regarding Freetype, because latest v0.9.1 release does not use it.
Ah yes I only looked at git master.
Quoted 48 lines
--- package/Config.in | 1 + package/supertuxkart/Config.in | 31 ++++++++++++++++++++ .../supertuxkart-rm-x11r6-include.patch | 14 +++++++++ package/supertuxkart/supertuxkart.hash | 2 ++ package/supertuxkart/supertuxkart.mk | 34 ++++++++++++++++++++++ 5 files changed, 82 insertions(+) create mode 100644 package/supertuxkart/Config.in create mode 100644 package/supertuxkart/supertuxkart-rm-x11r6-include.patch create mode 100644 package/supertuxkart/supertuxkart.hash create mode 100644 package/supertuxkart/supertuxkart.mkpackage/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/Config.in new file +18
-0@@ -0,0 +1,31 @@ +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 + 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
package/supertuxkart/Config.in line 28
Quoted 10 lines
package/supertuxkart/Config.in new file +10
-0+ 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 a toolchain w/ NPTL, C++" + depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL \ + || !BR2_INSTALL_LIBSTDCPP
You need to add the architecture dependencies here:
depends on BR2_USE_MMU # fork()
depends on BR2_PACKAGE_OPENAL_ARCH_SUPPORTS # openal
package/supertuxkart/Config.in line 31
Quoted 3 lines
package/supertuxkart/Config.in new file +3
-0+ +comment "supertuxkart needs an OpenGL backend" + depends on !BR2_PACKAGE_HAS_LIBGL
Missing comment for XORG7.
We also try to put everything in a single comment:
comment "supertuxkart needs X, an OpenGL backend, a toolchain w/ NPTL, C++"
It's a few characters too long but acceptable IMHO.
package/supertuxkart/supertuxkart-rm-x11r6-include.patch
Quoted 6 lines
package/supertuxkart/supertuxkart-rm-x11r6-include.patch new file +0
-0@@ -0,0 +1,14 @@
Missing description + SoB.
Since upstream uses git, we prefer git formatted patches.
Quoted 20 lines
package/supertuxkart/supertuxkart-rm-x11r6-include.patch new file +14
-0+diff -Naur supertuxkart-0.9.1-old/lib/irrlicht/CMakeLists.txt supertuxkart-0.9.1/lib/irrlicht/CMakeLists.txt +--- supertuxkart-0.9.1-old/lib/irrlicht/CMakeLists.txt 2016-05-13 12:21:04.857373661 -0300 ++++ supertuxkart-0.9.1/lib/irrlicht/CMakeLists.txt 2016-05-13 12:21:25.277821763 -0300 +@@ -25,8 +25,8 @@ + add_definitions(-D_IRR_STATIC_LIB_) + add_definitions(-D_CRT_SECURE_NO_WARNINGS) # Shut up about unsafe stuff + else() +- set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing -fexpensive-optimizations -I/usr/X11R6/include") +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing -fexpensive-optimizations -I/usr/X11R6/include") ++ set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing -fexpensive-optimizations") ++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing -fexpensive-optimizations") + endif() + + # Xrandrpackage/supertuxkart/supertuxkart.hash new file +0
-0
package/supertuxkart/supertuxkart.hash line 2
Quoted 2 lines
package/supertuxkart/supertuxkart.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally computed +sha256 c50f00a71df165fb613d20e86bea2d9d5e51ed3e27e1d436fbac3b07cf2ea149 supertuxkart-0.9.1-src.tar.xz
There's a sha1 and md5 on sourceforge. We prefer to include those as well.
# From https://sourceforge.net/projects/supertuxkart/files/SuperTuxKart/0.9.1/
sha1 2208405a3a0f2117caf6ae00c24debb611ad7d2e supertuxkart-0.9.1-src.tar.xz md5 5d87d943f2e746043aed87dc80004701 supertuxkart-0.9.1-src.tar.xz
Also, preferably use two spaces to separate fields, like the output of sha256sum.
Quoted 7 lines
package/supertuxkart/supertuxkart.mk new file +1
-0@@ -0,0 +1,34 @@ +################################################################################
package/supertuxkart/supertuxkart.mk line 11
Quoted 10 lines
package/supertuxkart/supertuxkart.mk new file +10
-0+# +# supertuxkart +# +################################################################################ + +SUPERTUXKART_VERSION = 0.9.1 +SUPERTUXKART_SOURCE = supertuxkart-$(SUPERTUXKART_VERSION)-src.tar.xz +SUPERTUXKART_SITE = http://downloads.sourceforge.net/project/supertuxkart/SuperTuxKart/$(SUPERTUXKART_VERSION) +SUPERTUXKART_LICENSE = GPLv3 +SUPERTUXKART_LICENSE_FILES = COPYING
I didn't bother checking the licenses before, and of course it's complicated.
So I uploaded to fossology and it gets even worse :-)
First of all, it's GPLv3+.
But then there are the bundled libraries. irrlicht, bullet and angelscript
have zlib license; glew is BSD-3c. Now, they all end up in a statically linked binary, so I guess it's OK to keep it as GPLv3+ after all.
package/supertuxkart/supertuxkart.mk line 13
Quoted 2 lines
package/supertuxkart/supertuxkart.mk new file +2
-0+ +SUPERTUXKART_DEPENDENCIES += jpeg libcurl libgl libglu libpng libogg libvorbis openal zlib xlib_libXrandr
This is not entirely alphabetical. Also, it's too long. You can either split
the line, or (my personal preference):
SUPERTUXKART_DEPENDENCIES = \ jpeg \ libcurl \ libgl \ libglu \ libogg \ libpng \ libvorbis \ openal \ xlib_libXrandr \ zlib
package/supertuxkart/supertuxkart.mk line 18
Quoted 5 lines
package/supertuxkart/supertuxkart.mk new file +5
-0+ +# Since supertuxkart is not installing libstkirrlicht.so, +# and given we don't really need that library to be shared +# we turn off shared libs here. +SUPERTUXKART_CONF_OPTS = -DBUILD_SHARED_LIBS=OFF
What about angelscript and wiiuse?
That said, I agree with the principle, but maybe reword the comment as follows:
# Since supertuxkart is not installing libstkirrlicht.so, and since it is the
# only user of the bundled libraries, turn off shared libraries entirely.
Note BTW that wrapping in *.mk is at 80 columns.
package/supertuxkart/supertuxkart.mk line 28
Quoted 10 lines
package/supertuxkart/supertuxkart.mk new file +10
-0+ +ifeq ($(BR2_PACKAGE_LIBFRIBIDI),y) +SUPERTUXKART_DEPENDENCIES += libfribidi +SUPERTUXKART_CONF_OPTS += -DUSE_FRIBIDI=ON +else +SUPERTUXKART_CONF_OPTS += -DUSE_FRIBIDI=OFF +endif + +ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS),y) +SUPERTUXKART_DEPENDENCIES += bluez5_utils
Add an explicit -DUSE_WIIUSE=ON
package/supertuxkart/supertuxkart.mk line 30
Quoted 2 lines
package/supertuxkart/supertuxkart.mk new file +2
-0+else +# Disable Wiimote support
This comment is redundant. You could add a comment before the condition like this:
# Wiimote support relies on bluez5.
Finally, there's the issue of the bundled angelscript. AFAICS supertuxkart
supports an installed angelscript as well. But we don't have that package yet, so ideally it should be added as a first patch in the series.
But I'm OK with using the bundled one for now.
Regards,
Arnout
Quoted 5 lines
package/supertuxkart/supertuxkart.mk new file +4
-0+SUPERTUXKART_CONF_OPTS += -DUSE_WIIUSE=OFF +endif + +$(eval $(cmake-package))
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
PATCH v2 1/1 supertuxkart: new package
Quoted 11 lines · Arnout Vandecappelle
Quoted 10 lines · Ezequiel Garcia
Signed-off-by Ezequiel Garcia <[email protected]>--
Changes from v1 -- thanks, Arnout!
* Made fribidi optional
* Made thebluez5_utilsoptional, which simplifies dependencies
* Disable Wii only ifbluez5_utilsis disabled
* Fixed dependencies inherited from OpenAL
* Added a patch to remove -I/usr/X11R6/include from bundled irrlicht-based
engine
Quoted 2 lines
Quoted 2 lines
No changes regarding Freetype, because latest v0.9.1 release does not use it.
One more thing: it fails to build on musl. I tried a quick patch to fix the
musl build but that wasn't sufficient, so I propose to exclude it on musl. Mention that explicitly in the commit log. It's a good idea to build-test it with a static toolchain as well (e.g.
http://autobuild.buildroot.net/toolchains/configs/br-arm-full-static.config ).
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
PATCH v2 1/1 supertuxkart: new package
In reply to Arnout VandecappelleHi Arnout,
Sorry for the delay.
Quoted 76 lines · Arnout Vandecappelle
Quoted 11 lines · Ezequiel Garcia
Signed-off-by Ezequiel Garcia <[email protected]>--
Changes from v1 -- thanks, Arnout!
* Made fribidi optional
* Made thebluez5_utilsoptional, which simplifies dependencies
* Disable Wii only ifbluez5_utilsis disabled
* Fixed dependencies inherited from OpenAL
* Added a patch to remove -I/usr/X11R6/include from bundled
irrlicht-based engineQuoted 2 lines
No changes regarding Freetype, because latest v0.9.1 release does not use it.
Ah yes I only looked at git master.
Quoted 57 lines
--- package/Config.in | 1 + package/supertuxkart/Config.in | 31 ++++++++++++++++++++ .../supertuxkart-rm-x11r6-include.patch | 14 +++++++++ package/supertuxkart/supertuxkart.hash | 2 ++ package/supertuxkart/supertuxkart.mk | 34 ++++++++++++++++++++++ 5 files changed, 82 insertions(+) create mode 100644 package/supertuxkart/Config.in create mode 100644 package/supertuxkart/supertuxkart-rm-x11r6-include.patch create mode 100644 package/supertuxkart/supertuxkart.hash create mode 100644 package/supertuxkart/supertuxkart.mkpackage/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/Config.in new file +23
-0@@ -0,0 +1,31 @@ +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 + 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! +
Quoted 8 lines
package/supertuxkart/Config.in line 28
Quoted 5 lines
package/supertuxkart/Config.in new file +5
-0+ http://supertuxkart.sourceforge.net/Main_Page + +comment "supertux needs a toolchain w/ NPTL, C++" + depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL \ + || !BR2_INSTALL_LIBSTDCPPYou need to add the architecture dependencies here:
Sorry, not following you. You mean you want to restrict it to x86?
Quoted 10 lines
depends on
BR2_USE_MMU#fork()
depends onBR2_PACKAGE_OPENAL_ARCH_SUPPORTS# openalpackage/supertuxkart/Config.in line 31
Quoted 3 lines
package/supertuxkart/Config.in new file +3
-0+ +comment "supertuxkart needs an OpenGL backend" + depends on !BR2_PACKAGE_HAS_LIBGLMissing comment for XORG7.
OK.
Quoted 6 lines
We also try to put everything in a single comment:
comment "supertuxkart needs X, an OpenGL backend, a toolchain w/ NPTL, C++"
It's a few characters too long but acceptable IMHO.
OK.
Quoted 11 lines
package/supertuxkart/supertuxkart-rm-x11r6-include.patch
Quoted 7 lines
package/supertuxkart/supertuxkart-rm-x11r6-include.patch new file +0
-0@@ -0,0 +1,14 @@Missing description + SoB.
Quoted 2 lines
Since upstream uses git, we prefer git formatted patches.
OK.
Quoted 36 lines
Quoted 31 lines
package/supertuxkart/supertuxkart-rm-x11r6-include.patch new file +1
-0+diff -Naur supertuxkart-0.9.1-old/lib/irrlicht/CMakeLists.txt
supertuxkart-0.9.1/lib/irrlicht/CMakeLists.txt
+---supertuxkart-0.9.1-old/lib/irrlicht/CMakeLists.txt2016-05-13 12:21:04.857373661 -0300
++++supertuxkart-0.9.1/lib/irrlicht/CMakeLists.txt2016-05-13
12:21:25.277821763 -0300
+@@ -25,8 +25,8 @@package/supertuxkart/supertuxkart-rm-x11r6-include.patch new file +2
-0+ add_definitions(-D_IRR_STATIC_LIB_) + add_definitions(-D_CRT_SECURE_NO_WARNINGS) # Shut up about unsafestuff
+else()
+- set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fno-exceptionspackage/supertuxkart/supertuxkart-rm-x11r6-include.patch new file +6
-4-fstrict-aliasing -fexpensive-optimizations -I/usr/X11R6/include") +- set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing -fexpensive-optimizations -I/usr/X11R6/include") ++ set(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing -fexpensive-optimizations") ++ set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -Wall -pipe -O3 -fno-exceptions -fstrict-aliasing -fexpensive-optimizations") + endif() + + # Xrandrpackage/supertuxkart/supertuxkart.hash new file +2
-0@@ -0,0 +1,2 @@ +# Locally computed +sha256 c50f00a71df165fb613d20e86bea2d9d5e51ed3e27e1d436fbac3b07cf2ea149Quoted 1 line
supertuxkart-0.9.1-src.tar.xz
There's a sha1 and md5 on sourceforge. We prefer to include those as well.
Quoted 9 lines
# From
https://sourceforge.net/projects/supertuxkart/files/SuperTuxKart/0.9.1/
sha12208405a3a0f2117caf6ae00c24debb611ad7d2esupertuxkart-0.9.1-src.tar.xz
md55d87d943f2e746043aed87dc80004701supertuxkart-0.9.1-src.tar.xzAlso, preferably use two spaces to separate fields, like the output of
sha256sum.
If we have sourgeforce hashes, is there any reason to keep the locally computed one?
Quoted 13 lines
Quoted 13 lines
package/supertuxkart/supertuxkart.mk new file +4
-0@@ -0,0 +1,34 @@ +################################################################################ +# +# supertuxkart +#
Quoted 13 lines
package/supertuxkart/supertuxkart.mk line 11
Quoted 8 lines
package/supertuxkart/supertuxkart.mk new file +5
-0+################################################################################ + +SUPERTUXKART_VERSION = 0.9.1 +SUPERTUXKART_SOURCE = supertuxkart-$(SUPERTUXKART_VERSION)-src.tar.xz +SUPERTUXKART_SITE =http://downloads.sourceforge.net/project/supertuxkart/SuperTuxKart/$(SUPERTUXKART_VERSION)
package/supertuxkart/supertuxkart.mk new file +2
-0+SUPERTUXKART_LICENSE = GPLv3 +SUPERTUXKART_LICENSE_FILES = COPYINGI didn't bother checking the licenses before, and of course it's
complicated. So I uploaded to fossology and it gets even worse :-)
Nice!
Quoted 2 lines
First of all, it's GPLv3+.
OK.
Quoted 4 lines
But then there are the bundled libraries. irrlicht, bullet and angelscript
have zlib license; glew is BSD-3c. Now, they all end up in a statically linked binary, so I guess it's OK to keep it as GPLv3+ after all.
OK, let's stick to GPLv3+.
Quoted 9 lines
Quoted 4 lines
package/supertuxkart/supertuxkart.mk new file +2
-0+ +SUPERTUXKART_DEPENDENCIES += jpeg libcurl libgl libglu libpng libogglibvorbis openal zlib
xlib_libXrandrThis is not entirely alphabetical. Also, it's too long. You can either
split the line, or (my personal preference):
Quoted 12 lines
SUPERTUXKART_DEPENDENCIES = \
jpeg \
libcurl \
libgl \
libglu \
libogg \
libpng \
libvorbis \
openal \
xlib_libXrandr \
zlibOK.
Quoted 9 lines
package/supertuxkart/supertuxkart.mk line 18
Quoted 5 lines
package/supertuxkart/supertuxkart.mk new file +5
-0+ +# Since supertuxkart is not installing libstkirrlicht.so, +# and given we don't really need that library to be shared +# we turn off shared libs here. +SUPERTUXKART_CONF_OPTS = -DBUILD_SHARED_LIBS=OFFWhat about angelscript and wiiuse?
Quoted 9 lines
That said, I agree with the principle, but maybe reword the comment as
follows:# Since supertuxkart is not installing libstkirrlicht.so, and since it is the
# only user of the bundled libraries, turn off shared libraries entirely.Note BTW that wrapping in *.mk is at 80 columns.
OK.
Quoted 15 lines
package/supertuxkart/supertuxkart.mk line 28
Quoted 11 lines
package/supertuxkart/supertuxkart.mk new file +10
-0+ +ifeq ($(BR2_PACKAGE_LIBFRIBIDI),y) +SUPERTUXKART_DEPENDENCIES += libfribidi +SUPERTUXKART_CONF_OPTS += -DUSE_FRIBIDI=ON +else +SUPERTUXKART_CONF_OPTS += -DUSE_FRIBIDI=OFF +endif + +ifeq ($(BR2_PACKAGE_BLUEZ5_UTILS),y) +SUPERTUXKART_DEPENDENCIES += bluez5_utilsAdd an explicit -DUSE_WIIUSE=ON
OK.
Quoted 9 lines
package/supertuxkart/supertuxkart.mk
Quoted 2 lines
package/supertuxkart/supertuxkart.mk new file +2
-0+else +# Disable Wiimote supportThis comment is redundant. You could add a comment before the condition
like this:# Wiimote support relies on bluez5.
OK.
Quoted 8 lines
Finally, there's the issue of the bundled angelscript. AFAICS supertuxkart
supports an installed angelscript as well. But we don't have that package yet, so ideally it should be added as a first patch in the series.But I'm OK with using the bundled one for now.
Cool, let's bundle it for now then.
Thanks for the comments,
Signature · 2 lines
Ezequiel Garc?a, VanguardiaSur www.vanguardiasur.com.ar
PATCH v2 1/1 supertuxkart: new package
Quoted 8 lines · Ezequiel Garcia
Hi Arnout,
Sorry for the delay.
Quoted 3 lines · Arnout Vandecappelle
Quoted 2 lines · Ezequiel Garcia
Signed-off-by Ezequiel Garcia <[email protected]>
[snip]
Quoted 8 lines
Quoted 6 lines
package/supertuxkart/Config.in line 28
Quoted 3 lines
package/supertuxkart/Config.in new file +3
-0+comment "supertux needs a toolchain w/ NPTL, C++" + depends on !BR2_TOOLCHAIN_HAS_THREADS_NPTL \ + || !BR2_INSTALL_LIBSTDCPPYou need to add the architecture dependencies here:
Sorry, not following you. You mean you want to restrict it to x86?
We don't want the comment to appear on architectures for which the package
can't be built anyway. Otherwise, the user sees the comment, goes and selects C++, and the comment disappears but the package still doesn't appear. So you have to add:
Quoted 4 lines
Quoted 4 lines
depends on
BR2_USE_MMU#fork()
depends onBR2_PACKAGE_OPENAL_ARCH_SUPPORTS# openal
[snip]
Quoted 13 lines
Quoted 13 lines
Quoted 3 lines
(quoted diff) +2
-0+# Locally computed +sha256 c50f00a71df165fb613d20e86bea2d9d5e51ed3e27e1d436fbac3b07cf2ea149supertuxkart-0.9.1-src.tar.xz
There's a sha1 and md5 on sourceforge. We prefer to include those as well.
# From
https://sourceforge.net/projects/supertuxkart/files/SuperTuxKart/0.9.1/
sha12208405a3a0f2117caf6ae00c24debb611ad7d2esupertuxkart-0.9.1-src.tar.xz
md55d87d943f2e746043aed87dc80004701supertuxkart-0.9.1-src.tar.xz
Quoted 6 lines
Quoted 3 lines
Also, preferably use two spaces to separate fields, like the output of
sha256sum.If we have sourgeforce hashes, is there any reason to keep the locally computed one?
sourgeforce, hehe.
Yes, we keep the locally computed one as well because md5 and sha1 are not
considered strong enough to be cryptographically secure. Although admittedly the combination of the two is possibly as strong as sha256. But just to be safe, we add a sha256.
[snip]
Quoted 13 lines
Quoted 7 lines
package/supertuxkart/supertuxkart.mk line 11
Quoted 2 lines
package/supertuxkart/supertuxkart.mk new file +2
-0+SUPERTUXKART_LICENSE = GPLv3 +SUPERTUXKART_LICENSE_FILES = COPYINGI didn't bother checking the licenses before, and of course it's
complicated. So I uploaded to fossology and it gets even worse :-)Nice!
Quoted 2 lines
First of all, it's GPLv3+.
Quoted 8 lines
OK.
Quoted 4 lines
But then there are the bundled libraries. irrlicht, bullet and angelscript
have zlib license; glew is BSD-3c. Now, they all end up in a statically linked binary, so I guess it's OK to keep it as GPLv3+ after all.OK, let's stick to GPLv3+.
Forgot to mention it before: I do think it is best to still include the license
files for the bundled libraries, if available. But I'm not sure if the others agree with that, because it also looks a little strange to say that the license is GPLv3+ and then include a BSD-3c license file.
For sure, add a comment explaining this, that the bundled libraries are BSD-3c
but since they are statically linked, the whole is anyway GPLv3+.
[snip]
Quoted 8 lines
Quoted 6 lines
Finally, there's the issue of the bundled angelscript. AFAICS supertuxkart
supports an installed angelscript as well. But we don't have that package yet, so ideally it should be added as a first patch in the series.But I'm OK with using the bundled one for now.
Cool, let's bundle it for now then.
Mention this explicitly in the commit log, for future reference.
Regards,
Arnout
Quoted 3 lines
Thanks for the comments,
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
PATCH v2 1/1 supertuxkart: new package
In reply to Ezequiel GarciaEzequiel,
Quoted 1 line · Ezequiel Garcia
Signed-off-by Ezequiel Garcia <[email protected]>
You've received plenty of comments from Arnout on this patch, so I've marked it as "Changes Requested" in patchwork. Please resubmit an updated version when you have time, otherwise we will forget about this patch.
Thanks!
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com
PATCH v2 1/1 supertuxkart: new package
Quoted 10 lines · Thomas Petazzoni
Ezequiel,
Quoted 1 line · Ezequiel Garcia
Signed-off-by Ezequiel Garcia <[email protected]>You've received plenty of comments from Arnout on this patch, so I've marked it as "Changes Requested" in patchwork. Please resubmit an updated version when you have time, otherwise we will forget about this patch.
Hi Thomas,
In fact, this one is near the top of my queue. I will get to it shortly.
Signature · 2 lines
Ezequiel Garc?a, VanguardiaSur www.vanguardiasur.com.ar