Add LBreakout2 package (SDL game)
PATCH 1/1 Add LBreakout2 package (SDL game)
From: Julien Boibessot <[email protected]>
--- package/Config.in | 1 + package/lbreakout2/Config.in | 30 ++++++++++++++++++++++++++++++ package/lbreakout2/lbreakout2.mk | 30 ++++++++++++++++++++++++++++++ 3 files changed, 61 insertions(+), 0 deletions(-) create mode 100644 package/lbreakout2/Config.in create mode 100644 package/lbreakout2/lbreakout2.mk
package/Config.in +1 -0
@@ -157,6 +157,7 @@ endmenu menu "Games" source "package/doom-wad/Config.in" source "package/gnuchess/Config.in" +source "package/lbreakout2/Config.in" source "package/prboom/Config.in" source "package/rubix/Config.in" endmenu
package/lbreakout2/Config.in new file +30 -0
@@ -0,0 +1,30 @@ +config BR2_PACKAGE_LBREAKOUT2 + bool "LBreakout2" + select BR2_PACKAGE_SDL + select BR2_PACKAGE_LIBPNG + help + LBreakout2 is the successor to LBreakout, a breakout-style arcade + game in the manner of Arkanoid. Requires SDL, libpng, and + optionnally SDL_mixer/SDL_net. + A display with minimum 640x480 resolution, a keyboard and a mouse + are recommanded. + + http://lgames.sourceforge.net/index.php?project=LBreakout2 + +if BR2_PACKAGE_LBREAKOUT2 + +config BR2_PACKAGE_LBREAKOUT2_AUDIO + bool "audio support" + default y + select BR2_PACKAGE_SDL_MIXER + help + Activates audio support in LBreakout2. Will add SDL_mixer. + +config BR2_PACKAGE_LBREAKOUT2_NET + bool "network support" + default y + select BR2_PACKAGE_SDL_NET + help + Activates network support LBreakout2. Will add SDL_net. + +endif
package/lbreakout2/lbreakout2.mk new file +30 -0
@@ -0,0 +1,30 @@ +############################################################# +# +# LBreakout2 +# +############################################################# + +LBREAKOUT2_SITE = http://sourceforge.net/projects/lgames/files/lbreakout2/2.6/ +LBREAKOUT2_VERSION = 2.6.3 +LBREAKOUT2_LICENSE = GPLv2 +LBREAKOUT2_LICENSE_FILES = COPYING + +LBREAKOUT2_DEPENDENCIES = sdl libpng +LBREAKOUT2_CONF_OPT = --disable-nls + +ifeq ($(BR2_PACKAGE_LBREAKOUT2_AUDIO),y) +LBREAKOUT2_DEPENDENCIES += sdl_mixer +else +LBREAKOUT2_CONF_OPT += --disable-audio +endif + +ifeq ($(BR2_PACKAGE_LBREAKOUT2_NET),y) +LBREAKOUT2_DEPENDENCIES += sdl_net +else +LBREAKOUT2_CONF_OPT += --disable-network +endif + +LBREAKOUT2_CONF_ENV = \ + SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config" + +$(eval $(autotools-package))
Signature · 1 line
1.7.5.4
PATCH 1/1 Add LBreakout2 package (SDL game)
Julien,
Thanks for contributing this patch!
package/lbreakout2/lbreakout2.mk line 3
Quoted 6 lines · julien.boibessot at free.fr
package/lbreakout2/lbreakout2.mk new file +3
-0@@ -0,0 +1,30 @@ +############################################################# +# +# LBreakout2
This should be all lower case.
package/lbreakout2/lbreakout2.mk line 7
Quoted 4 lines
package/lbreakout2/lbreakout2.mk new file +4
-0+# +############################################################# + +LBREAKOUT2_SITE = http://sourceforge.net/projects/lgames/files/lbreakout2/2.6/
This should use a downloads.sourceforge.net URL, like all other sourceforge packages in BR.
package/lbreakout2/lbreakout2.mk line 8
Quoted 1 line
package/lbreakout2/lbreakout2.mk new file +1
-0+LBREAKOUT2_VERSION = 2.6.3
There is a newer 2.6.4 version.
package/lbreakout2/lbreakout2.mk line 9
Quoted 1 line
package/lbreakout2/lbreakout2.mk new file +1
-0+LBREAKOUT2_LICENSE = GPLv2
License is GPLv2+
package/lbreakout2/lbreakout2.mk line 13
Quoted 4 lines
package/lbreakout2/lbreakout2.mk new file +4
-0+LBREAKOUT2_LICENSE_FILES = COPYING + +LBREAKOUT2_DEPENDENCIES = sdl libpng +LBREAKOUT2_CONF_OPT = --disable-nls
Passing this option is not needed. It is automatically passed by the autotools infrastructure we needed.
package/lbreakout2/lbreakout2.mk line 16
Quoted 3 lines
package/lbreakout2/lbreakout2.mk new file +3
-0+ +ifeq ($(BR2_PACKAGE_LBREAKOUT2_AUDIO),y) +LBREAKOUT2_DEPENDENCIES += sdl_mixer
Maybe pass --enable-audio here.
package/lbreakout2/lbreakout2.mk line 22
Quoted 6 lines
package/lbreakout2/lbreakout2.mk new file +6
-0+else +LBREAKOUT2_CONF_OPT += --disable-audio +endif + +ifeq ($(BR2_PACKAGE_LBREAKOUT2_NET),y) +LBREAKOUT2_DEPENDENCIES += sdl_net
And --enable-network here.
package/lbreakout2/lbreakout2.mk line 30
Quoted 8 lines
package/lbreakout2/lbreakout2.mk new file +8
-0+else +LBREAKOUT2_CONF_OPT += --disable-network +endif + +LBREAKOUT2_CONF_ENV = \ + SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config" + +$(eval $(autotools-package))
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com