2005-08-19 06:57:13 +02:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# SDL
|
|
|
|
#
|
|
|
|
#############################################################
|
2010-06-16 13:47:17 +02:00
|
|
|
SDL_VERSION:=1.2.14
|
2005-08-19 06:57:13 +02:00
|
|
|
SDL_SOURCE:=SDL-$(SDL_VERSION).tar.gz
|
|
|
|
SDL_SITE:=http://www.libsdl.org/release
|
|
|
|
|
2010-06-16 13:47:17 +02:00
|
|
|
SDL_LIBTOOL_PATCH = NO
|
|
|
|
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)
|
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
|
2009-11-22 21:03:42 +01:00
|
|
|
SDL_DEPENDENCIES += xserver_xorg-server
|
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
|
|
|
|
|
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
|
|
|
|
2010-06-16 13:47:17 +02:00
|
|
|
$(eval $(call AUTOTARGETS,package,sdl))
|