* [Buildroot] [PATCH] Add LBreakout2 package (SDL game)
@ 2014-01-06 9:12 julien.boibessot at free.fr
2014-01-06 9:26 ` Thomas Petazzoni
0 siblings, 1 reply; 2+ messages in thread
From: julien.boibessot at free.fr @ 2014-01-06 9:12 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/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
diff --git a/package/Config.in b/package/Config.in
index c4b6ec1..00ead97 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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
diff --git a/package/lbreakout2/Config.in b/package/lbreakout2/Config.in
new file mode 100644
index 0000000..6788aca
--- /dev/null
+++ b/package/lbreakout2/Config.in
@@ -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
diff --git a/package/lbreakout2/lbreakout2.mk b/package/lbreakout2/lbreakout2.mk
new file mode 100644
index 0000000..66ef013
--- /dev/null
+++ b/package/lbreakout2/lbreakout2.mk
@@ -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))
--
1.7.5.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [Buildroot] [PATCH] Add LBreakout2 package (SDL game)
2014-01-06 9:12 [Buildroot] [PATCH] Add LBreakout2 package (SDL game) julien.boibessot at free.fr
@ 2014-01-06 9:26 ` Thomas Petazzoni
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni @ 2014-01-06 9:26 UTC (permalink / raw)
To: buildroot
Julien,
Thanks for contributing this patch!
On Mon, 6 Jan 2014 10:12:57 +0100, julien.boibessot at free.fr wrote:
> --- /dev/null
> +++ b/package/lbreakout2/lbreakout2.mk
> @@ -0,0 +1,30 @@
> +#############################################################
> +#
> +# LBreakout2
This should be all lower case.
> +#
> +#############################################################
> +
> +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.
> +LBREAKOUT2_VERSION = 2.6.3
There is a newer 2.6.4 version.
> +LBREAKOUT2_LICENSE = GPLv2
License is GPLv2+
> +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.
> +
> +ifeq ($(BR2_PACKAGE_LBREAKOUT2_AUDIO),y)
> +LBREAKOUT2_DEPENDENCIES += sdl_mixer
Maybe pass --enable-audio here.
> +else
> +LBREAKOUT2_CONF_OPT += --disable-audio
> +endif
> +
> +ifeq ($(BR2_PACKAGE_LBREAKOUT2_NET),y)
> +LBREAKOUT2_DEPENDENCIES += sdl_net
And --enable-network here.
> +else
> +LBREAKOUT2_CONF_OPT += --disable-network
> +endif
> +
> +LBREAKOUT2_CONF_ENV = \
> + SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config"
> +
> +$(eval $(autotools-package))
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2014-01-06 9:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-06 9:12 [Buildroot] [PATCH] Add LBreakout2 package (SDL game) julien.boibessot at free.fr
2014-01-06 9:26 ` Thomas Petazzoni
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox