[Buildroot] [PATCH] Add LBreakout2 package (SDL game)

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Jan 6 09:26:37 UTC 2014


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



More information about the buildroot mailing list