2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
2005-08-19 12:57:13 +08:00
|
|
|
#
|
2013-07-22 13:30:22 +08:00
|
|
|
# sdl
|
2005-08-19 12:57:13 +08:00
|
|
|
#
|
2013-06-06 07:53:30 +08:00
|
|
|
################################################################################
|
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
|
2017-03-30 21:43:34 +08:00
|
|
|
SDL_LICENSE = LGPL-2.1+
|
2013-06-04 00:03:29 +08:00
|
|
|
SDL_LICENSE_FILES = COPYING
|
2010-06-16 19:47:17 +08:00
|
|
|
SDL_INSTALL_STAGING = YES
|
2009-01-12 04:24:24 +08:00
|
|
|
|
2014-01-09 19:57:33 +08:00
|
|
|
# we're patching configure.in, but package cannot autoreconf with our version of
|
2014-02-24 03:58:47 +08:00
|
|
|
# autotools, so we have to do it manually instead of setting SDL_AUTORECONF = YES
|
2014-01-09 19:57:33 +08:00
|
|
|
define SDL_RUN_AUTOGEN
|
2014-04-15 06:31:06 +08:00
|
|
|
cd $(@D) && PATH=$(BR_PATH) ./autogen.sh
|
2014-01-09 19:57:33 +08:00
|
|
|
endef
|
|
|
|
|
2014-02-14 17:55:09 +08:00
|
|
|
SDL_PRE_CONFIGURE_HOOKS += SDL_RUN_AUTOGEN
|
2014-02-18 07:37:10 +08:00
|
|
|
HOST_SDL_PRE_CONFIGURE_HOOKS += SDL_RUN_AUTOGEN
|
2014-01-09 19:57:33 +08:00
|
|
|
|
2014-02-18 07:37:10 +08:00
|
|
|
SDL_DEPENDENCIES += host-automake host-autoconf host-libtool
|
2014-03-28 06:27:42 +08:00
|
|
|
HOST_SDL_DEPENDENCIES += host-automake host-autoconf host-libtool
|
2014-01-09 19:57:33 +08:00
|
|
|
|
2019-02-06 22:10:46 +08:00
|
|
|
SDL_CONF_OPTS += --enable-video-qtopia=no
|
|
|
|
|
2007-11-16 20:37:23 +08:00
|
|
|
ifeq ($(BR2_PACKAGE_SDL_FBCON),y)
|
2014-09-28 03:32:44 +08:00
|
|
|
SDL_CONF_OPTS += --enable-video-fbcon=yes
|
2007-11-16 20:37:23 +08:00
|
|
|
else
|
2014-09-28 03:32:44 +08:00
|
|
|
SDL_CONF_OPTS += --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
|
2014-09-28 03:32:44 +08:00
|
|
|
SDL_CONF_OPTS += --enable-video-directfb=yes
|
2013-04-29 04:32:39 +08:00
|
|
|
SDL_CONF_ENV = ac_cv_path_DIRECTFBCONFIG=$(STAGING_DIR)/usr/bin/directfb-config
|
2007-11-16 20:37:23 +08:00
|
|
|
else
|
2015-10-21 11:10:25 +08:00
|
|
|
SDL_CONF_OPTS += --enable-video-directfb=no
|
2007-11-16 20:37:23 +08:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BR2_PACKAGE_SDL_X11),y)
|
2014-09-28 03:32:44 +08:00
|
|
|
SDL_CONF_OPTS += --enable-video-x11=yes
|
2014-12-30 15:36:23 +08:00
|
|
|
SDL_DEPENDENCIES += \
|
|
|
|
xlib_libX11 xlib_libXext \
|
2012-02-08 18:42:23 +08:00
|
|
|
$(if $(BR2_PACKAGE_XLIB_LIBXRENDER), xlib_libXrender) \
|
|
|
|
$(if $(BR2_PACKAGE_XLIB_LIBXRANDR), xlib_libXrandr)
|
2007-11-16 20:37:23 +08:00
|
|
|
else
|
2014-09-28 03:32:44 +08:00
|
|
|
SDL_CONF_OPTS += --enable-video-x11=no
|
2007-11-16 20:37:23 +08:00
|
|
|
endif
|
|
|
|
|
2014-09-12 23:50:09 +08:00
|
|
|
ifneq ($(BR2_USE_MMU),y)
|
2014-09-28 03:32:44 +08:00
|
|
|
SDL_CONF_OPTS += --enable-dga=no
|
2014-09-12 23:50:09 +08:00
|
|
|
endif
|
|
|
|
|
2015-11-20 05:42:47 +08:00
|
|
|
# overwrite autodection (prevents confusion with host libpth version)
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBPTHSEM_COMPAT),y)
|
|
|
|
SDL_CONF_OPTS += --enable-pth
|
|
|
|
SDL_CONF_ENV += ac_cv_path_PTH_CONFIG=$(STAGING_DIR)/usr/bin/pth-config
|
|
|
|
SDL_DEPENDENCIES += libpthsem
|
|
|
|
else
|
|
|
|
SDL_CONF_OPTS += --disable-pth
|
|
|
|
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
|
|
|
|
|
2014-12-30 15:36:23 +08:00
|
|
|
SDL_CONF_OPTS += \
|
2016-03-17 14:02:22 +08:00
|
|
|
--disable-rpath \
|
2014-12-30 15:36:23 +08:00
|
|
|
--enable-pulseaudio=no \
|
|
|
|
--disable-arts \
|
|
|
|
--disable-esd \
|
|
|
|
--disable-nasm \
|
|
|
|
--disable-video-ps3
|
|
|
|
|
|
|
|
HOST_SDL_CONF_OPTS += \
|
|
|
|
--enable-pulseaudio=no \
|
|
|
|
--enable-video-x11=no \
|
|
|
|
--disable-arts \
|
|
|
|
--disable-esd \
|
|
|
|
--disable-nasm \
|
|
|
|
--disable-video-ps3
|
2014-03-28 06:27:42 +08:00
|
|
|
|
2013-03-18 06:36:19 +08:00
|
|
|
SDL_CONFIG_SCRIPTS = sdl-config
|
|
|
|
|
2012-07-03 06:07:32 +08:00
|
|
|
$(eval $(autotools-package))
|
2014-02-18 07:37:10 +08:00
|
|
|
$(eval $(host-autotools-package))
|