8a6f23a424
Ensure alsa-lib gets built before SDL if enabled, so the SDL configure script correctly detects alsa support. Noticed by Ayla on IRC. Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
71 lines
1.7 KiB
Makefile
71 lines
1.7 KiB
Makefile
#############################################################
|
|
#
|
|
# SDL
|
|
#
|
|
#############################################################
|
|
SDL_VERSION:=1.2.14
|
|
SDL_SOURCE:=SDL-$(SDL_VERSION).tar.gz
|
|
SDL_SITE:=http://www.libsdl.org/release
|
|
SDL_INSTALL_STAGING = YES
|
|
SDL_CONF_ENV = ac_cv_path_DIRECTFBCONFIG=$(STAGING_DIR)/usr/bin/directfb-config
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL_FBCON),y)
|
|
SDL_CONF_OPT+=--enable-video-fbcon=yes
|
|
else
|
|
SDL_CONF_OPT+=--enable-video-fbcon=no
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL_DIRECTFB),y)
|
|
SDL_DEPENDENCIES += directfb
|
|
SDL_CONF_OPT+=--enable-video-directfb=yes
|
|
else
|
|
SDL_CONF_OPT=--enable-video-directfb=no
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL_QTOPIA),y)
|
|
SDL_CONF_OPT+=--enable-video-qtopia=yes
|
|
SDL_DEPENDENCIES += qt
|
|
else
|
|
SDL_CONF_OPT+=--enable-video-qtopia=no
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL_X11),y)
|
|
SDL_CONF_OPT+=--enable-video-x11=yes
|
|
SDL_DEPENDENCIES += xserver_xorg-server
|
|
else
|
|
SDL_CONF_OPT+=--enable-video-x11=no
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_TSLIB),y)
|
|
SDL_DEPENDENCIES += tslib
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
|
|
SDL_DEPENDENCIES += alsa-lib
|
|
endif
|
|
|
|
SDL_CONF_OPT += --enable-pulseaudio=no \
|
|
--disable-arts \
|
|
--disable-esd \
|
|
--disable-nasm \
|
|
--disable-video-ps3
|
|
|
|
# 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
|
|
endef
|
|
|
|
SDL_POST_INSTALL_STAGING_HOOKS+=SDL_FIXUP_SDL_CONFIG
|
|
|
|
define SDL_INSTALL_TARGET_CMDS
|
|
cp -dpf $(STAGING_DIR)/usr/lib/libSDL*.so* $(TARGET_DIR)/usr/lib/
|
|
endef
|
|
|
|
$(eval $(call AUTOTARGETS,package,sdl))
|