summaryrefslogtreecommitdiffstats
path: root/package/ltris/ltris.mk
blob: fb0d4c34d2f4f5278a470cf7e31a3c034650b22f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
################################################################################
#
# ltris
#
################################################################################

LTRIS_SITE = http://downloads.sourceforge.net/lgames/ltris
LTRIS_VERSION = 1.0.19
LTRIS_LICENSE = GPL-2.0+
LTRIS_LICENSE_FILES = COPYING

LTRIS_DEPENDENCIES = sdl $(TARGET_NLS_DEPENDENCIES)
LTRIS_LIBS = $(TARGET_NLS_LIBS)

LTRIS_CONF_ENV = \
	SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config" \
	LIBS="$(LTRIS_LIBS)"

ifeq ($(BR2_PACKAGE_LTRIS_AUDIO),y)
LTRIS_DEPENDENCIES += sdl_mixer host-pkgconf
LTRIS_CONF_OPTS += --enable-sound
# 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`
else
LTRIS_CONF_OPTS += --disable-sound
endif

$(eval $(autotools-package))
OpenPOWER on IntegriCloud