Add LTris package (SDL game)
PATCH 1/1 Add LTris package (SDL game)
From: Julien Boibessot <[email protected]>
Signed-off-by Julien Boibessot <[email protected]>
--- package/Config.in | 1 + package/ltris/Config.in | 21 +++++++++++++++++++++ package/ltris/ltris.mk | 24 ++++++++++++++++++++++++ 3 files changed, 46 insertions(+), 0 deletions(-) create mode 100644 package/ltris/Config.in create mode 100644 package/ltris/ltris.mk
package/Config.in +1 -0
@@ -158,6 +158,7 @@ menu "Games" source "package/doom-wad/Config.in" source "package/gnuchess/Config.in" source "package/lbreakout2/Config.in" +source "package/ltris/Config.in" source "package/prboom/Config.in" source "package/rubix/Config.in" endmenu
package/ltris/Config.in new file +21 -0
@@ -0,0 +1,21 @@ +config BR2_PACKAGE_LTRIS + bool "LTris" + select BR2_PACKAGE_SDL + help + LTris as a tetris clone, using SDL. It optionnally requires + SDL_mixer for audio support. + A display with minimum 640x480 resolution and a keyboard are + recommanded. + + http://lgames.sourceforge.net/index.php?project=LTris + +if BR2_PACKAGE_LTRIS + +config BR2_PACKAGE_LTRIS_AUDIO + bool "audio support" + default y + select BR2_PACKAGE_SDL_MIXER + help + Activates audio support in LTris. Will add SDL_mixer. + +endif
package/ltris/ltris.mk new file +24 -0
@@ -0,0 +1,24 @@ +############################################################# +# +# ltris +# +############################################################# + +LTRIS_SITE = http://downloads.sourceforge.net/lgames/ltris/ +LTRIS_VERSION = 1.0.19 +LTRIS_LICENSE = GPLv2+ +LTRIS_LICENSE_FILES = COPYING + +LTRIS_DEPENDENCIES = sdl + +LTRIS_CONF_ENV = \ + SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config" + +ifeq ($(BR2_PACKAGE_LTRIS_AUDIO),y) +LTRIS_DEPENDENCIES += sdl_mixer +LTRIS_CONF_OPT += --enable-audio=yes +else +LTRIS_CONF_OPT += --disable-audio +endif + +$(eval $(autotools-package))
Signature · 1 line
1.7.5.4
PATCH 1/1 Add LTris package (SDL game)
Quoted 4 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]>
Committed with a minor tweak to the help text, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 Add LTris package (SDL game)
In reply to julien.boibessot at free.frHello,
package/ltris/ltris.mk line 19
Quoted 3 lines · julien.boibessot at free.fr
package/ltris/ltris.mk new file +3
-0+ifeq ($(BR2_PACKAGE_LTRIS_AUDIO),y) +LTRIS_DEPENDENCIES += sdl_mixer +LTRIS_CONF_OPT += --enable-audio=yes
--enable-audio
would have been sufficient I believe.
Thomas
Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons Embedded Linux, Kernel and Android engineering http://free-electrons.com