diff mbox

Add LTris package (SDL game)

Message ID 1389186456-21848-1-git-send-email-julien.boibessot@free.fr
State Accepted
Headers show

Commit Message

Julien Boibessot Jan. 8, 2014, 1:07 p.m. UTC
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

Comments

Peter Korsgaard Jan. 10, 2014, 11:21 p.m. UTC | #1
>>>>> "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.
Thomas Petazzoni Jan. 28, 2014, 9:19 p.m. UTC | #2
Hello,

On Wed,  8 Jan 2014 14:07:36 +0100, julien.boibessot@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
diff mbox

Patch

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))