2005-08-19 12:57:13 +08:00
|
|
|
#############################################################
|
|
|
|
#
|
|
|
|
# SDL
|
|
|
|
#
|
|
|
|
#############################################################
|
2012-02-08 06:27:58 +08:00
|
|
|
|
|
|
|
SDL_VERSION = 1.2.15
|
|
|
|
SDL_SOURCE = SDL-$(SDL_VERSION).tar.gz
|
|
|
|
SDL_SITE = http://www.libsdl.org/release
|
2010-06-16 19:47:17 +08:00
|
|
|
SDL_INSTALL_STAGING = YES
|
2011-05-17 04:18:35 +08:00
|
|
|
SDL_CONF_ENV = ac_cv_path_DIRECTFBCONFIG=$(STAGING_DIR)/usr/bin/directfb-config
|
2009-01-12 04:24:24 +08:00
|
|
|
|
2007-11-16 20:37:23 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_SDL_FBCON),y)
|
2010-06-16 19:47:17 +08:00
|
|
|
SDL_CONF_OPT+=--enable-video-fbcon=yes
|
2007-11-16 20:37:23 +08:00
|
|
|
else
|
2010-06-16 19:47:17 +08:00
|
|
|
SDL_CONF_OPT+=--enable-video-fbcon=no
|
2007-11-16 20:37:23 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL_DIRECTFB),y)
|
2009-11-23 04:03:42 +08:00
|
|
|
SDL_DEPENDENCIES += directfb
|
2010-06-16 19:47:17 +08:00
|
|
|
SDL_CONF_OPT+=--enable-video-directfb=yes
|
2007-11-16 20:37:23 +08:00
|
|
|
else
|
2010-06-25 18:25:57 +08:00
|
|
|
SDL_CONF_OPT=--enable-video-directfb=no
|
2007-11-16 20:37:23 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL_QTOPIA),y)
|
2010-06-16 19:47:17 +08:00
|
|
|
SDL_CONF_OPT+=--enable-video-qtopia=yes
|
2009-11-23 04:03:42 +08:00
|
|
|
SDL_DEPENDENCIES += qt
|
2007-11-16 20:37:23 +08:00
|
|
|
else
|
2010-06-16 19:47:17 +08:00
|
|
|
SDL_CONF_OPT+=--enable-video-qtopia=no
|
2007-11-16 20:37:23 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL_X11),y)
|
2010-06-16 19:47:17 +08:00
|
|
|
SDL_CONF_OPT+=--enable-video-x11=yes
|
2009-11-23 04:03:42 +08:00
|
|
|
SDL_DEPENDENCIES += xserver_xorg-server
|
2007-11-16 20:37:23 +08:00
|
|
|
else
|
2010-06-16 19:47:17 +08:00
|
|
|
SDL_CONF_OPT+=--enable-video-x11=no
|
2007-11-16 20:37:23 +08:00
|
|
|
endif
|
|
|
|
|
2010-01-26 20:04:43 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_TSLIB),y)
|
|
|
|
SDL_DEPENDENCIES += tslib
|
|
|
|
endif
|
|
|
|
|
2011-07-20 05:11:57 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
|
|
|
|
SDL_DEPENDENCIES += alsa-lib
|
|
|
|
endif
|
|
|
|
|
2012-02-08 06:21:53 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_MESA3D),y)
|
|
|
|
SDL_DEPENDENCIES += mesa3d
|
|
|
|
endif
|
|
|
|
|
2010-06-16 19:47:17 +08:00
|
|
|
SDL_CONF_OPT += --enable-pulseaudio=no \
|
2007-01-14 11:52:21 +08:00
|
|
|
--disable-arts \
|
|
|
|
--disable-esd \
|
2010-07-17 16:45:31 +08:00
|
|
|
--disable-nasm \
|
|
|
|
--disable-video-ps3
|
2007-08-13 07:31:36 +08:00
|
|
|
|
2010-07-16 17:18:11 +08: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 19:47:17 +08:00
|
|
|
endef
|
2005-08-19 12:57:13 +08:00
|
|
|
|
2010-07-16 17:18:11 +08:00
|
|
|
SDL_POST_INSTALL_STAGING_HOOKS+=SDL_FIXUP_SDL_CONFIG
|
|
|
|
|
2010-06-16 19:47:17 +08:00
|
|
|
define SDL_INSTALL_TARGET_CMDS
|
2005-08-19 12:57:13 +08:00
|
|
|
cp -dpf $(STAGING_DIR)/usr/lib/libSDL*.so* $(TARGET_DIR)/usr/lib/
|
2010-06-16 19:47:17 +08:00
|
|
|
endef
|
2005-08-19 12:57:13 +08:00
|
|
|
|
2011-09-30 03:57:43 +08:00
|
|
|
$(eval $(call AUTOTARGETS))
|