Add LBreakout2 package (SDL game)
PATCH v2 1/1 Add LBreakout2 package (SDL game)
From: Julien Boibessot <[email protected]>
---
Changes since v1:
- took Thomas remarks into account: SF dl, version, license and confiure options
package/Config.in | 1 + package/lbreakout2/Config.in | 30 ++++++++++++++++++++++++++++++ package/lbreakout2/lbreakout2.mk | 31 +++++++++++++++++++++++++++++++ 3 files changed, 62 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 +31 -0
@@ -0,0 +1,31 @@ +############################################################# +# +# lbreakout2 +# +############################################################# + +LBREAKOUT2_SITE = http://downloads.sourceforge.net/lgames/lbreakout2/2.6/ +LBREAKOUT2_VERSION = 2.6.4 +LBREAKOUT2_LICENSE = GPLv2+ +LBREAKOUT2_LICENSE_FILES = COPYING + +LBREAKOUT2_DEPENDENCIES = sdl libpng + +ifeq ($(BR2_PACKAGE_LBREAKOUT2_AUDIO),y) +LBREAKOUT2_DEPENDENCIES += sdl_mixer +LBREAKOUT2_CONF_OPT += --enable-audio=yes +else +LBREAKOUT2_CONF_OPT += --disable-audio +endif + +ifeq ($(BR2_PACKAGE_LBREAKOUT2_NET),y) +LBREAKOUT2_DEPENDENCIES += sdl_net +LBREAKOUT2_CONF_OPT += --enable-network=yes +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 v2 1/1 Add LBreakout2 package (SDL game)
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"julien" == julien boibessot <[email protected]> writes:
From: Julien Boibessot <[email protected]>
Signed-off-by Julien Boibessot <[email protected]>---
Changes since v1:
- took Thomas remarks into account: SF dl, version, license and confiure options
It needs gettext when built with uclibc+locale. Committed with that fixed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH v2 1/1 Add LBreakout2 package (SDL game)
Quoted 11 lines · Peter Korsgaard
Quoted 7 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"julien" == julien boibessot <[email protected]> writes:
From: Julien Boibessot <[email protected]>
Signed-off-by Julien Boibessot <[email protected]>---
Changes since v1:
- took Thomas remarks into account: SF dl, version, license and confiure optionsIt needs gettext when built with uclibc+locale. Committed with that fixed, thanks.
That's why I had a "LBREAKOUT2_CONF_OPT = --disable-nls" in the first version on my patch.
But I think your solution is cleaner.
Thanks.
Regards,
Julien