xref: /OK3568_Linux_fs/buildroot/package/ltris/ltris.mk (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1################################################################################
2#
3# ltris
4#
5################################################################################
6
7LTRIS_SITE = http://downloads.sourceforge.net/lgames/ltris
8LTRIS_VERSION = 1.2
9LTRIS_LICENSE = GPL-2.0+
10LTRIS_LICENSE_FILES = COPYING
11
12LTRIS_DEPENDENCIES = sdl $(TARGET_NLS_DEPENDENCIES)
13LTRIS_LIBS = $(TARGET_NLS_LIBS)
14
15LTRIS_CONF_ENV = \
16	SDL_CONFIG="$(STAGING_DIR)/usr/bin/sdl-config" \
17	LIBS="$(LTRIS_LIBS)"
18
19ifeq ($(BR2_PACKAGE_LTRIS_AUDIO),y)
20LTRIS_DEPENDENCIES += sdl_mixer host-pkgconf
21LTRIS_CONF_OPTS += --enable-sound
22# configure script does NOT use pkg-config to figure out how to link
23# with sdl_mixer, breaking static linking as sdl_mixer can use libmad
24LTRIS_LIBS += `$(PKG_CONFIG_HOST_BINARY) --libs SDL_mixer`
25else
26LTRIS_CONF_OPTS += --disable-sound
27endif
28
29$(eval $(autotools-package))
30