2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2005-08-19 06:57:13 +02:00
|
|
|
#
|
2013-07-22 07:30:22 +02:00
|
|
|
# sdl
|
2005-08-19 06:57:13 +02:00
|
|
|
#
|
2013-06-06 01:53:30 +02:00
|
|
|
################################################################################
|
2012-02-07 23:27:58 +01:00
|
|
|
|
|
|
|
SDL_VERSION = 1.2.15
|
|
|
|
SDL_SOURCE = SDL-$(SDL_VERSION).tar.gz
|
|
|
|
SDL_SITE = http://www.libsdl.org/release
|
2013-06-03 18:03:29 +02:00
|
|
|
SDL_LICENSE = LGPLv2.1+
|
|
|
|
SDL_LICENSE_FILES = COPYING
|
2010-06-16 13:47:17 +02:00
|
|
|
SDL_INSTALL_STAGING = YES
|
2009-01-11 21:24:24 +01:00
|
|
|
|
2007-11-16 13:37:23 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SDL_FBCON),y)
|
2013-07-20 08:52:43 +02:00
|
|
|
SDL_CONF_OPT += --enable-video-fbcon=yes
|
2007-11-16 13:37:23 +01:00
|
|
|
else
|
2013-07-20 08:52:43 +02:00
|
|
|
SDL_CONF_OPT += --enable-video-fbcon=no
|
2007-11-16 13:37:23 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL_DIRECTFB),y)
|
2009-11-22 21:03:42 +01:00
|
|
|
SDL_DEPENDENCIES += directfb
|
2013-07-20 08:52:43 +02:00
|
|
|
SDL_CONF_OPT += --enable-video-directfb=yes
|
2013-04-28 22:32:39 +02:00
|
|
|
SDL_CONF_ENV = ac_cv_path_DIRECTFBCONFIG=$(STAGING_DIR)/usr/bin/directfb-config
|
2007-11-16 13:37:23 +01:00
|
|
|
else
|
2013-07-20 08:52:43 +02:00
|
|
|
SDL_CONF_OPT = --enable-video-directfb=no
|
2007-11-16 13:37:23 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL_QTOPIA),y)
|
2013-07-20 08:52:43 +02:00
|
|
|
SDL_CONF_OPT += --enable-video-qtopia=yes
|
2009-11-22 21:03:42 +01:00
|
|
|
SDL_DEPENDENCIES += qt
|
2007-11-16 13:37:23 +01:00
|
|
|
else
|
2013-07-20 08:52:43 +02:00
|
|
|
SDL_CONF_OPT += --enable-video-qtopia=no
|
2007-11-16 13:37:23 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL_X11),y)
|
2013-07-20 08:52:43 +02:00
|
|
|
SDL_CONF_OPT += --enable-video-x11=yes
|
2012-02-08 11:42:23 +01:00
|
|
|
SDL_DEPENDENCIES += xlib_libX11 xlib_libXext \
|
|
|
|
$(if $(BR2_PACKAGE_XLIB_LIBXRENDER), xlib_libXrender) \
|
|
|
|
$(if $(BR2_PACKAGE_XLIB_LIBXRANDR), xlib_libXrandr)
|
2007-11-16 13:37:23 +01:00
|
|
|
else
|
2013-07-20 08:52:43 +02:00
|
|
|
SDL_CONF_OPT += --enable-video-x11=no
|
2007-11-16 13:37:23 +01:00
|
|
|
endif
|
|
|
|
|
2010-01-26 13:04:43 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_TSLIB),y)
|
|
|
|
SDL_DEPENDENCIES += tslib
|
|
|
|
endif
|
|
|
|
|
2011-07-19 23:11:57 +02:00
|
|
|
ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
|
|
|
|
SDL_DEPENDENCIES += alsa-lib
|
|
|
|
endif
|
|
|
|
|
2012-02-07 23:21:53 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_MESA3D),y)
|
|
|
|
SDL_DEPENDENCIES += mesa3d
|
|
|
|
endif
|
|
|
|
|
2010-06-16 13:47:17 +02:00
|
|
|
SDL_CONF_OPT += --enable-pulseaudio=no \
|
2007-01-14 04:52:21 +01:00
|
|
|
--disable-arts \
|
|
|
|
--disable-esd \
|
2010-07-17 10:45:31 +02:00
|
|
|
--disable-nasm \
|
|
|
|
--disable-video-ps3
|
2007-08-13 01:31:36 +02:00
|
|
|
|
2013-03-17 23:36:19 +01:00
|
|
|
SDL_CONFIG_SCRIPTS = sdl-config
|
|
|
|
|
|
|
|
# Remove the -Wl,-rpath option.
|
2010-07-16 11:18:11 +02:00
|
|
|
define SDL_FIXUP_SDL_CONFIG
|
|
|
|
$(SED) 's%-Wl,-rpath,\$${libdir}%%' \
|
|
|
|
$(STAGING_DIR)/usr/bin/sdl-config
|
2010-06-16 13:47:17 +02:00
|
|
|
endef
|
2005-08-19 06:57:13 +02:00
|
|
|
|
2013-07-20 08:52:43 +02:00
|
|
|
SDL_POST_INSTALL_STAGING_HOOKS += SDL_FIXUP_SDL_CONFIG
|
2010-07-16 11:18:11 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|