2005-08-19 06:57:13 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# SDL
|
|
|
|
#
|
|
|
|
#############################################################
|
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
|
2010-06-16 13:47:17 +02:00
|
|
|
SDL_INSTALL_STAGING = YES
|
2011-05-16 22:18:35 +02:00
|
|
|
SDL_CONF_ENV = ac_cv_path_DIRECTFBCONFIG=$(STAGING_DIR)/usr/bin/directfb-config
|
2009-01-11 21:24:24 +01:00
|
|
|
|
2007-11-16 13:37:23 +01:00
|
|
|
ifeq ($(BR2_PACKAGE_SDL_FBCON),y)
|
2010-06-16 13:47:17 +02:00
|
|
|
SDL_CONF_OPT+=--enable-video-fbcon=yes
|
2007-11-16 13:37:23 +01:00
|
|
|
else
|
2010-06-16 13:47:17 +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
|
2010-06-16 13:47:17 +02:00
|
|
|
SDL_CONF_OPT+=--enable-video-directfb=yes
|
2007-11-16 13:37:23 +01:00
|
|
|
else
|
2010-06-25 12:25:57 +02:00
|
|
|
SDL_CONF_OPT=--enable-video-directfb=no
|
2007-11-16 13:37:23 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL_QTOPIA),y)
|
2010-06-16 13:47:17 +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
|
2010-06-16 13:47:17 +02:00
|
|
|
SDL_CONF_OPT+=--enable-video-qtopia=no
|
2007-11-16 13:37:23 +01:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL_X11),y)
|
2010-06-16 13:47:17 +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
|
2010-06-16 13:47:17 +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
|
|
|
|
2010-07-16 11:18:11 +02:00
|
|
|
# Fixup prefix= and exec_prefix= in sdl-config, and remove the
|
|
|
|
# -Wl,-rpath option.
|
|
|
|
define SDL_FIXUP_SDL_CONFIG
|
|
|
|
$(SED) 's%prefix=/usr%prefix=$(STAGING_DIR)/usr%' \
|
|
|
|
$(STAGING_DIR)/usr/bin/sdl-config
|
|
|
|
$(SED) 's%exec_prefix=/usr%exec_prefix=$(STAGING_DIR)/usr%' \
|
|
|
|
$(STAGING_DIR)/usr/bin/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
|
|
|
|
2010-07-16 11:18:11 +02:00
|
|
|
SDL_POST_INSTALL_STAGING_HOOKS+=SDL_FIXUP_SDL_CONFIG
|
|
|
|
|
2010-06-16 13:47:17 +02:00
|
|
|
define SDL_INSTALL_TARGET_CMDS
|
2005-08-19 06:57:13 +02:00
|
|
|
cp -dpf $(STAGING_DIR)/usr/lib/libSDL*.so* $(TARGET_DIR)/usr/lib/
|
2010-06-16 13:47:17 +02:00
|
|
|
endef
|
2005-08-19 06:57:13 +02:00
|
|
|
|
2012-07-03 00:07:32 +02:00
|
|
|
$(eval $(autotools-package))
|