* [Buildroot] [PATCH] Add LTris package (SDL game)
@ 2014-01-08 13:07 julien.boibessot at free.fr
2014-01-10 23:21 ` Peter Korsgaard
2014-01-28 21:19 ` Thomas Petazzoni
0 siblings, 2 replies; 3+ messages in thread
From: julien.boibessot at free.fr @ 2014-01-08 13:07 UTC (permalink / raw)
To: buildroot
From: Julien Boibessot <julien.boibessot@armadeus.com>
Signed-off-by: Julien Boibessot <julien.boibessot@armadeus.com>
---
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
diff --git a/package/Config.in b/package/Config.in
index e502cde..35a7eea 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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
diff --git a/package/ltris/Config.in b/package/ltris/Config.in
new file mode 100644
index 0000000..ef0623c
--- /dev/null
+++ b/package/ltris/Config.in
@@ -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
diff --git a/package/ltris/ltris.mk b/package/ltris/ltris.mk
new file mode 100644
index 0000000..e26bf45
--- /dev/null
+++ b/package/ltris/ltris.mk
@@ -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))
--
1.7.5.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] Add LTris package (SDL game)
2014-01-08 13:07 [Buildroot] [PATCH] Add LTris package (SDL game) julien.boibessot at free.fr
@ 2014-01-10 23:21 ` Peter Korsgaard
2014-01-28 21:19 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2014-01-10 23:21 UTC (permalink / raw)
To: buildroot
>>>>> "julien" == julien boibessot <julien.boibessot@free.fr> writes:
> From: Julien Boibessot <julien.boibessot@armadeus.com>
> Signed-off-by: Julien Boibessot <julien.boibessot@armadeus.com>
Committed with a minor tweak to the help text, thanks.
--
Bye, Peter Korsgaard
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] Add LTris package (SDL game)
2014-01-08 13:07 [Buildroot] [PATCH] Add LTris package (SDL game) julien.boibessot at free.fr
2014-01-10 23:21 ` Peter Korsgaard
@ 2014-01-28 21:19 ` Thomas Petazzoni
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2014-01-28 21:19 UTC (permalink / raw)
To: buildroot
Hello,
On Wed, 8 Jan 2014 14:07:36 +0100, julien.boibessot at free.fr wrote:
> +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
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2014-01-28 21:19 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-08 13:07 [Buildroot] [PATCH] Add LTris package (SDL game) julien.boibessot at free.fr
2014-01-10 23:21 ` Peter Korsgaard
2014-01-28 21:19 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox