diff --git a/FunKey/board/funkey/patches/sdl/0001-pixel-alpha-multiply.patch b/FunKey/board/funkey/patches/BAKsdl/0001-pixel-alpha-multiply.patch similarity index 100% rename from FunKey/board/funkey/patches/sdl/0001-pixel-alpha-multiply.patch rename to FunKey/board/funkey/patches/BAKsdl/0001-pixel-alpha-multiply.patch diff --git a/FunKey/board/funkey/patches/sdl/003-alsa-fix-excessiveio.patch b/FunKey/board/funkey/patches/BAKsdl/003-alsa-fix-excessiveio.patch similarity index 100% rename from FunKey/board/funkey/patches/sdl/003-alsa-fix-excessiveio.patch rename to FunKey/board/funkey/patches/BAKsdl/003-alsa-fix-excessiveio.patch diff --git a/FunKey/board/funkey/patches/sdl/sdl-fix-kb-input.patch b/FunKey/board/funkey/patches/BAKsdl/sdl-fix-kb-input.patch similarity index 100% rename from FunKey/board/funkey/patches/sdl/sdl-fix-kb-input.patch rename to FunKey/board/funkey/patches/BAKsdl/sdl-fix-kb-input.patch diff --git a/FunKey/package/sdl/Config.in b/FunKey/package/sdl/Config.in new file mode 100644 index 0000000..9f1e34d --- /dev/null +++ b/FunKey/package/sdl/Config.in @@ -0,0 +1,26 @@ +config BR2_PACKAGE_SDL + bool "SDL" + help + Simple DirectMedia Layer - SDL is a library that allows + programs portable low level access to a video framebuffer, + audio output, mouse, and keyboard. + + http://www.libsdl.org/ + +if BR2_PACKAGE_SDL + +config BR2_PACKAGE_SDL_FBCON + bool "SDL framebuffer console video driver" + default y + +config BR2_PACKAGE_SDL_DIRECTFB + bool "SDL DirectFB video driver" + depends on BR2_PACKAGE_DIRECTFB + +config BR2_PACKAGE_SDL_X11 + bool "SDL X11 video driver" + depends on BR2_PACKAGE_XORG7 + select BR2_PACKAGE_XLIB_LIBX11 + select BR2_PACKAGE_XLIB_LIBXEXT + +endif diff --git a/FunKey/package/sdl/sdl.mk b/FunKey/package/sdl/sdl.mk new file mode 100644 index 0000000..d5a0c6f --- /dev/null +++ b/FunKey/package/sdl/sdl.mk @@ -0,0 +1,96 @@ +################################################################################ +# +# sdl +# +################################################################################ + +SDL_VERSION = 4ae80e83c7c52f60282a4703588b7d52015dd1ea +SDL_SITE_METHOD = git +SDL_SITE = https://github.com/FunKey-Project/SDL-1.2.git +SDL_LICENSE = LGPL-2.1+ +SDL_LICENSE_FILES = COPYING +SDL_INSTALL_STAGING = YES + +# we're patching configure.in, but package cannot autoreconf with our version of +# autotools, so we have to do it manually instead of setting SDL_AUTORECONF = YES +define SDL_RUN_AUTOGEN + cd $(@D) && PATH=$(BR_PATH) ./autogen.sh +endef + +SDL_PRE_CONFIGURE_HOOKS += SDL_RUN_AUTOGEN +HOST_SDL_PRE_CONFIGURE_HOOKS += SDL_RUN_AUTOGEN + +SDL_DEPENDENCIES += host-automake host-autoconf host-libtool +HOST_SDL_DEPENDENCIES += host-automake host-autoconf host-libtool + +SDL_CONF_OPTS += --enable-video-qtopia=no + +ifeq ($(BR2_PACKAGE_SDL_FBCON),y) +SDL_CONF_OPTS += --enable-video-fbcon=yes +else +SDL_CONF_OPTS += --enable-video-fbcon=no +endif + +ifeq ($(BR2_PACKAGE_SDL_DIRECTFB),y) +SDL_DEPENDENCIES += directfb +SDL_CONF_OPTS += --enable-video-directfb=yes +SDL_CONF_ENV = ac_cv_path_DIRECTFBCONFIG=$(STAGING_DIR)/usr/bin/directfb-config +else +SDL_CONF_OPTS += --enable-video-directfb=no +endif + +ifeq ($(BR2_PACKAGE_SDL_X11),y) +SDL_CONF_OPTS += --enable-video-x11=yes +SDL_DEPENDENCIES += \ + xlib_libX11 xlib_libXext \ + $(if $(BR2_PACKAGE_XLIB_LIBXRENDER), xlib_libXrender) \ + $(if $(BR2_PACKAGE_XLIB_LIBXRANDR), xlib_libXrandr) +else +SDL_CONF_OPTS += --enable-video-x11=no +endif + +ifneq ($(BR2_USE_MMU),y) +SDL_CONF_OPTS += --enable-dga=no +endif + +# 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 + +ifeq ($(BR2_PACKAGE_TSLIB),y) +SDL_DEPENDENCIES += tslib +endif + +ifeq ($(BR2_PACKAGE_ALSA_LIB),y) +SDL_DEPENDENCIES += alsa-lib +endif + +ifeq ($(BR2_PACKAGE_MESA3D),y) +SDL_DEPENDENCIES += mesa3d +endif + +SDL_CONF_OPTS += \ + --disable-rpath \ + --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 + +SDL_CONFIG_SCRIPTS = sdl-config + +$(eval $(autotools-package)) +$(eval $(host-autotools-package))