2014-03-05 08:56:35 +01:00
|
|
|
################################################################################
|
2014-01-08 14:07:36 +01:00
|
|
|
#
|
|
|
|
# ltris
|
|
|
|
#
|
2014-03-05 08:56:35 +01:00
|
|
|
################################################################################
|
2014-01-08 14:07:36 +01:00
|
|
|
|
2014-07-31 10:46:58 +02:00
|
|
|
LTRIS_SITE = http://downloads.sourceforge.net/lgames/ltris
|
2014-01-08 14:07:36 +01:00
|
|
|
LTRIS_VERSION = 1.0.19
|
|
|
|
LTRIS_LICENSE = GPLv2+
|
|
|
|
LTRIS_LICENSE_FILES = COPYING
|
|
|
|
|
|
|
|
LTRIS_DEPENDENCIES = sdl
|
|
|
|
|
|
|
|
LTRIS_CONF_ENV = \
|
2016-05-19 07:52:13 +02:00
|
|
|
SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config" \
|
|
|
|
LIBS="$(LTRIS_LIBS)"
|
2014-01-08 14:07:36 +01:00
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_LTRIS_AUDIO),y)
|
2016-05-19 07:52:13 +02:00
|
|
|
LTRIS_DEPENDENCIES += sdl_mixer host-pkgconf
|
2016-05-31 09:45:52 +02:00
|
|
|
LTRIS_CONF_OPTS += --enable-sound
|
2016-05-19 07:52:13 +02:00
|
|
|
# configure script does NOT use pkg-config to figure out how to link
|
|
|
|
# with sdl_mixer, breaking static linking as sdl_mixer can use libmad
|
|
|
|
LTRIS_LIBS += `$(PKG_CONFIG_HOST_BINARY) --libs SDL_mixer`
|
2014-01-08 14:07:36 +01:00
|
|
|
else
|
2016-05-31 09:45:52 +02:00
|
|
|
LTRIS_CONF_OPTS += --disable-sound
|
2014-01-08 14:07:36 +01:00
|
|
|
endif
|
|
|
|
|
2014-08-19 19:43:56 +02:00
|
|
|
ifeq ($(BR2_NEEDS_GETTEXT_IF_LOCALE),y)
|
2014-01-12 10:06:39 +01:00
|
|
|
LTRIS_DEPENDENCIES += gettext
|
2016-05-19 07:52:13 +02:00
|
|
|
LTRIS_LIBS += -lintl
|
2014-01-12 10:06:39 +01:00
|
|
|
endif
|
|
|
|
|
2014-01-08 14:07:36 +01:00
|
|
|
$(eval $(autotools-package))
|