Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2
@ 2014-05-20 20:40 Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 01/29] xproto_dri3proto: New package Bernd Kuhls
                   ` (29 more replies)
  0 siblings, 30 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:40 UTC (permalink / raw)
  To: buildroot

the patch series combines my latest patches to bump xbmc.
It also adds uClibc support to xbmc, a mesa3d version bump
and several new packages to support the new xbmc release
along with libva to get the best out of Intel systems.

Regards, Bernd

v9: - reworked patch series based on comments by Yann & Arnout:
      - moved some patches before xbmc version bump for bisectability
      - removed iconv patch to SDL, to be checked later
      - removed rtmpdump/KSV patch from series, to be checked later
      - added description to mesa3d/xorg meta package dependency
      - reworked OpenGL/egl+gles logic in package/xbmc/
    - bump xbmc to 13.1 Beta2
    - cec needs udev to be useful
v8: - squashed "[v7 29/31] ffmpeg cross-compile" into
      "[v8 16/28] Gotham bump" (Thomas)
    - squashed "[v7 21/31] uclibc at arm" & "[v7 31/31] ipv6"
      patches into "[v8 20/28] uclibc" patch (Thomas/Yann)
    - xbmc-pvr-addons: updated comment (Yann)
v7: - rebased
    - bump mesa3d version to 10.2-rc3
    - included v2 of "xproto_dri3proto: New package"
v6: - bump mesa3d version to 10.2-rc2
    - bump libva and libva-intel-driver to 1.3.1


Bernd Kuhls (29):
  xproto_dri3proto: New package
  mesa3d: Bump version to 10.2-rc3, fix xa build
  mesa3d: Depend on xorg meta package instead of xserver_xorg-server
  mesa3d: add dependency xproto_presentproto
  mesa3d: Remove dependency for the libxml2 module of host-python
  mesa3d: Add dri3 support
  mesa3d: dri2 does not need udev support
  libva: new package
  libva-intel-driver: new package
  ffmpeg: Add libva support
  libglu: new package
  libglew: new package
  sdl: Add new dependency libglu for opengl support
  xdriver_xf86-video-intel: Bump version to 2.99.911
  xbmc - prepare for 13.x-Gotham: Add host-gettext dependency
  xbmc - prepare for 13.x-Gotham: Add host-nasm dependency
  xbmc - prepare for 13.x-Gotham: Add host-yasm dependency for
    MMX/64bit archs
  xbmc - prepare for 13.x-Gotham: Add missing egl-related cflags
  xbmc: bump version to 13.1 Beta2
  xbmc-pvr-addons: Version bump to xbmc Gotham-compatible addon
  xbmc-addon-xvdr: Version bump to xbmc Gotham-compatible addon
  xbmc: hdmi cec supports needs udev for device scanning
  xbmc: Allow compilation with uClibc
  xbmc: Add alsa support
  xbmc: Add lame support
  xbmc: Fix TexturePacker compile
  xbmc: Add X.org/OpenGL support
  xbmc: Add option for Goom screensaver
  xbmc: Add VA-API support

 package/Config.in                            |    1 -
 package/libdrm/Config.in                     |    1 -
 package/libmms/Config.in                     |    8 +
 package/libmms/libmms.mk                     |    4 +-
 package/libudev/Config.in                    |    9 -
 package/libudev/libudev-0001-locale.patch    |   29 -
 package/libudev/libudev-0002-getenv.patch    |   23 -
 package/libudev/libudev-0003-clock.patch     |   42 -
 package/libudev/libudev.mk                   |   71 -
 package/rtmpdump/rtmpdump-0001-ksv.patch     | 3397 --------------------------
 package/x11r7/xlib_libXfont/xlib_libXfont.mk |    2 +-
 11 files changed, 11 insertions(+), 3576 deletions(-)
 delete mode 100644 package/libudev/Config.in
 delete mode 100644 package/libudev/libudev-0001-locale.patch
 delete mode 100644 package/libudev/libudev-0002-getenv.patch
 delete mode 100644 package/libudev/libudev-0003-clock.patch
 delete mode 100644 package/libudev/libudev.mk
 delete mode 100644 package/rtmpdump/rtmpdump-0001-ksv.patch

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 01/29] xproto_dri3proto: New package
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-24 18:23   ` Yann E. MORIN
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 02/29] mesa3d: Bump version to 10.2-rc3, fix xa build Bernd Kuhls
                   ` (28 subsequent siblings)
  29 siblings, 1 reply; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/x11r7/Config.in                            |    1 +
 package/x11r7/xproto_dri3proto/Config.in           |    4 ++++
 package/x11r7/xproto_dri3proto/xproto_dri3proto.mk |   15 +++++++++++++++
 3 files changed, 20 insertions(+)
 create mode 100644 package/x11r7/xproto_dri3proto/Config.in
 create mode 100644 package/x11r7/xproto_dri3proto/xproto_dri3proto.mk

diff --git a/package/x11r7/Config.in b/package/x11r7/Config.in
index 8685ca1..087b816 100644
--- a/package/x11r7/Config.in
+++ b/package/x11r7/Config.in
@@ -227,6 +227,7 @@ if BR2_PACKAGE_XORG7
 		source package/x11r7/xproto_damageproto/Config.in
 		source package/x11r7/xproto_dmxproto/Config.in
 		source package/x11r7/xproto_dri2proto/Config.in
+		source package/x11r7/xproto_dri3proto/Config.in
 		source package/x11r7/xproto_fixesproto/Config.in
 		source package/x11r7/xproto_fontcacheproto/Config.in
 		source package/x11r7/xproto_fontsproto/Config.in
diff --git a/package/x11r7/xproto_dri3proto/Config.in b/package/x11r7/xproto_dri3proto/Config.in
new file mode 100644
index 0000000..eead7d4
--- /dev/null
+++ b/package/x11r7/xproto_dri3proto/Config.in
@@ -0,0 +1,4 @@
+config BR2_PACKAGE_XPROTO_DRI3PROTO
+	bool "dri3proto"
+	help
+	  X.Org DRI3 protocol headers
diff --git a/package/x11r7/xproto_dri3proto/xproto_dri3proto.mk b/package/x11r7/xproto_dri3proto/xproto_dri3proto.mk
new file mode 100644
index 0000000..00f5b57
--- /dev/null
+++ b/package/x11r7/xproto_dri3proto/xproto_dri3proto.mk
@@ -0,0 +1,15 @@
+################################################################################
+#
+# xproto_dri3proto
+#
+################################################################################
+
+XPROTO_DRI3PROTO_VERSION = 1.0
+XPROTO_DRI3PROTO_SOURCE = dri3proto-$(XPROTO_DRI3PROTO_VERSION).tar.bz2
+XPROTO_DRI3PROTO_SITE = http://xorg.freedesktop.org/releases/individual/proto
+XPROTO_DRI3PROTO_LICENSE = MIT
+XPROTO_DRI3PROTO_LICENSE_FILES = COPYING
+XPROTO_DRI3PROTO_INSTALL_STAGING = YES
+XPROTO_DRI3PROTO_INSTALL_TARGET = NO
+
+$(eval $(autotools-package))
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 02/29] mesa3d: Bump version to 10.2-rc3, fix xa build
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 01/29] xproto_dri3proto: New package Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 03/29] mesa3d: Depend on xorg meta package instead of xserver_xorg-server Bernd Kuhls
                   ` (27 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

Building xa requires at least one non swrast gallium driver, needed since:
http://cgit.freedesktop.org/mesa/mesa/commit/configure.ac?h=10.2&id=e283e966660fdf037be6353dc96b7f63b8aa315a

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mesa3d/mesa3d.mk |   14 +++++++++-----
 1 file changed, 9 insertions(+), 5 deletions(-)

diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
index 63ba574..8caa5c6 100644
--- a/package/mesa3d/mesa3d.mk
+++ b/package/mesa3d/mesa3d.mk
@@ -4,8 +4,8 @@
 #
 ################################################################################
 
-MESA3D_VERSION = 10.0.4
-MESA3D_SOURCE = MesaLib-$(MESA3D_VERSION).tar.bz2
+MESA3D_VERSION = 10.2
+MESA3D_SOURCE = MesaLib-$(MESA3D_VERSION).0-rc3.tar.bz2
 MESA3D_SITE = ftp://ftp.freedesktop.org/pub/mesa/$(MESA3D_VERSION)
 MESA3D_LICENSE = MIT, SGI, Khronos
 MESA3D_LICENSE_FILES = docs/license.html
@@ -33,9 +33,13 @@ MESA3D_DEPENDENCIES += \
 	xlib_libXdamage \
 	xlib_libXfixes \
 	libxcb
-MESA3D_CONF_OPT += \
-	--enable-glx \
-	--enable-xa
+MESA3D_CONF_OPT += --enable-glx
+# quote from mesa3d configure "Building xa requires at least one non swrast gallium driver."
+ifneq ($(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_NOUVEAU)$(BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SVGA),)
+MESA3D_CONF_OPT += --enable-xa
+else
+MESA3D_CONF_OPT += --disable-xa
+endif
 else
 MESA3D_CONF_OPT += \
 	--disable-glx \
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 03/29] mesa3d: Depend on xorg meta package instead of xserver_xorg-server
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 01/29] xproto_dri3proto: New package Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 02/29] mesa3d: Bump version to 10.2-rc3, fix xa build Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 04/29] mesa3d: add dependency xproto_presentproto Bernd Kuhls
                   ` (26 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

mesa3d does not depend on the xorg server as such, only on X libraries.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mesa3d/Config.in |   22 +++++++++++-----------
 package/mesa3d/mesa3d.mk |    4 ++--
 2 files changed, 13 insertions(+), 13 deletions(-)

diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
index 06f2bc3..b645712 100644
--- a/package/mesa3d/Config.in
+++ b/package/mesa3d/Config.in
@@ -3,13 +3,13 @@ menuconfig BR2_PACKAGE_MESA3D
 	select BR2_PACKAGE_LIBDRM
 	select BR2_PACKAGE_EXPAT
 	select BR2_PACKAGE_HOST_LIBXML2_PYTHON
-	select BR2_PACKAGE_XPROTO_DRI2PROTO if BR2_PACKAGE_XSERVER_XORG_SERVER
-	select BR2_PACKAGE_XPROTO_XF86DRIPROTO if BR2_PACKAGE_XSERVER_XORG_SERVER
-	select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XSERVER_XORG_SERVER
-	select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XSERVER_XORG_SERVER
-	select BR2_PACKAGE_XLIB_LIBXDAMAGE if BR2_PACKAGE_XSERVER_XORG_SERVER
-	select BR2_PACKAGE_XLIB_LIBXFIXES if BR2_PACKAGE_XSERVER_XORG_SERVER
-	select BR2_PACKAGE_LIBXCB if BR2_PACKAGE_XSERVER_XORG_SERVER
+	select BR2_PACKAGE_XPROTO_DRI2PROTO if BR2_PACKAGE_XORG7
+	select BR2_PACKAGE_XPROTO_XF86DRIPROTO if BR2_PACKAGE_XORG7
+	select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7
+	select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7
+	select BR2_PACKAGE_XLIB_LIBXDAMAGE if BR2_PACKAGE_XORG7
+	select BR2_PACKAGE_XLIB_LIBXFIXES if BR2_PACKAGE_XORG7
+	select BR2_PACKAGE_LIBXCB if BR2_PACKAGE_XORG7
 	depends on BR2_INSTALL_LIBSTDCPP
 	depends on BR2_LARGEFILE
 	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
@@ -61,10 +61,10 @@ config BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST
 	  This is a software opengl implementation using the Gallium3D
 	  infrastructure.
 
-comment "DRI drivers needs an X.Org server and a toolchain w/ dynamic library"
-	depends on BR2_PREFER_STATIC_LIB || !BR2_PACKAGE_XSERVER_XORG_SERVER
+comment "DRI drivers needs X.Org and a toolchain w/ dynamic library"
+	depends on BR2_PREFER_STATIC_LIB || !BR2_PACKAGE_XORG7
 
-if !BR2_PREFER_STATIC_LIB && BR2_PACKAGE_XSERVER_XORG_SERVER
+if !BR2_PREFER_STATIC_LIB && BR2_PACKAGE_XORG7
 
 comment "DRI drivers"
 
@@ -91,7 +91,7 @@ config BR2_PACKAGE_MESA3D_DRI_DRIVER_RADEON
 	help
 	  Legacy Radeon driver for R100 series GPUs.
 
-endif # !BR2_PREFER_STATIC_LIB && BR2_PACKAGE_XSERVER_XORG_SERVER
+endif # !BR2_PREFER_STATIC_LIB && BR2_PACKAGE_XORG7
 
 if BR2_PACKAGE_MESA3D_DRIVER
 
diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
index 8caa5c6..6d396b8 100644
--- a/package/mesa3d/mesa3d.mk
+++ b/package/mesa3d/mesa3d.mk
@@ -23,7 +23,7 @@ MESA3D_DEPENDENCIES = \
 	host-xutil_makedepend \
 	libdrm
 
-ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER),y)
+ifeq ($(BR2_PACKAGE_XORG7),y)
 MESA3D_DEPENDENCIES += \
 	xproto_xf86driproto \
 	xproto_dri2proto \
@@ -96,7 +96,7 @@ ifeq ($(BR2_PACKAGE_WAYLAND),y)
 MESA3D_DEPENDENCIES += wayland
 MESA3D_EGL_PLATFORMS += wayland
 endif
-ifeq ($(BR2_PACKAGE_XSERVER_XORG_SERVER),y)
+ifeq ($(BR2_PACKAGE_XORG7),y)
 MESA3D_EGL_PLATFORMS += x11
 endif
 MESA3D_CONF_OPT += \
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 04/29] mesa3d: add dependency xproto_presentproto
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (2 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 03/29] mesa3d: Depend on xorg meta package instead of xserver_xorg-server Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 05/29] mesa3d: Remove dependency for the libxml2 module of host-python Bernd Kuhls
                   ` (25 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mesa3d/Config.in |    1 +
 package/mesa3d/mesa3d.mk |    1 +
 2 files changed, 2 insertions(+)

diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
index b645712..0bea798 100644
--- a/package/mesa3d/Config.in
+++ b/package/mesa3d/Config.in
@@ -4,6 +4,7 @@ menuconfig BR2_PACKAGE_MESA3D
 	select BR2_PACKAGE_EXPAT
 	select BR2_PACKAGE_HOST_LIBXML2_PYTHON
 	select BR2_PACKAGE_XPROTO_DRI2PROTO if BR2_PACKAGE_XORG7
+	select BR2_PACKAGE_XPROTO_PRESENTPROTO if BR2_PACKAGE_XORG7
 	select BR2_PACKAGE_XPROTO_XF86DRIPROTO if BR2_PACKAGE_XORG7
 	select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7
 	select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7
diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
index 6d396b8..6423d69 100644
--- a/package/mesa3d/mesa3d.mk
+++ b/package/mesa3d/mesa3d.mk
@@ -28,6 +28,7 @@ MESA3D_DEPENDENCIES += \
 	xproto_xf86driproto \
 	xproto_dri2proto \
 	xproto_glproto \
+	xproto_presentproto \
 	xlib_libX11 \
 	xlib_libXext \
 	xlib_libXdamage \
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 05/29] mesa3d: Remove dependency for the libxml2 module of host-python
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (3 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 04/29] mesa3d: add dependency xproto_presentproto Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 06/29] mesa3d: Add dri3 support Bernd Kuhls
                   ` (24 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

Remove the ugly BR2_PACKAGE_HOST_LIBXML2_PYTHON hack as well as
mesa3d was the only package needing it, this is not the case
anymore since:

http://cgit.freedesktop.org/mesa/mesa/commit/configure.ac?id=2de70fe23f320ce4f559e37057fe07b7af99cf5a

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/libxml2/Config.in             |    3 ---
 package/libxml2/libxml2-python2.patch |   27 ---------------------------
 package/libxml2/libxml2.mk            |   16 +---------------
 package/mesa3d/Config.in              |    1 -
 package/mesa3d/mesa3d.mk              |    1 -
 5 files changed, 1 insertion(+), 47 deletions(-)
 delete mode 100644 package/libxml2/libxml2-python2.patch

diff --git a/package/libxml2/Config.in b/package/libxml2/Config.in
index 85694f9..ebd63fe 100644
--- a/package/libxml2/Config.in
+++ b/package/libxml2/Config.in
@@ -4,6 +4,3 @@ config BR2_PACKAGE_LIBXML2
 	  XML C Parser
 
 	  http://xmlsoft.org/
-
-config BR2_PACKAGE_HOST_LIBXML2_PYTHON
-	bool
diff --git a/package/libxml2/libxml2-python2.patch b/package/libxml2/libxml2-python2.patch
deleted file mode 100644
index 19195a6..0000000
--- a/package/libxml2/libxml2-python2.patch
+++ /dev/null
@@ -1,27 +0,0 @@
-Prefer python2 binary in case python points to python3
-
-Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
-
-diff -uNr libxml2-2.9.1.org/configure.in libxml2-2.9.1/configure.in
---- libxml2-2.9.1.org/configure.in	2013-04-19 09:25:20.000000000 +0200
-+++ libxml2-2.9.1/configure.in	2014-04-12 14:16:26.579361068 +0200
-@@ -748,6 +748,11 @@
- PYTHON_TESTS=
- pythondir=
- if test "$with_python" != "no" ; then
-+    if test -x "$with_python/bin/python2"
-+    then
-+        echo Found python2 in $with_python/bin/python2
-+        PYTHON="$with_python/bin/python2"
-+    else
-     if test -x "$with_python/bin/python"
-     then
-         echo Found python in $with_python/bin/python
-@@ -773,6 +778,7 @@
- 	    fi
- 	fi
-     fi
-+    fi
-     if test "$PYTHON" != ""
-     then
-         PYTHON_VERSION=`$PYTHON -c "from distutils import sysconfig; print(sysconfig.get_python_version())"`
diff --git a/package/libxml2/libxml2.mk b/package/libxml2/libxml2.mk
index 62f3e27..9bf4c28 100644
--- a/package/libxml2/libxml2.mk
+++ b/package/libxml2/libxml2.mk
@@ -20,21 +20,7 @@ LIBXML2_CONF_OPT = --with-gnu-ld --without-python --without-debug --without-lzma
 
 HOST_LIBXML2_DEPENDENCIES = host-pkgconf
 
-HOST_LIBXML2_CONF_OPT = --without-zlib --without-lzma
-
-# mesa3d uses functions that are only available with debug
-ifeq ($(BR2_PACKAGE_MESA3D),y)
-HOST_LIBXML2_CONF_OPT += --with-debug
-else
-HOST_LIBXML2_CONF_OPT += --without-debug
-endif
-
-ifeq ($(BR2_PACKAGE_HOST_LIBXML2_PYTHON),y)
-HOST_LIBXML2_DEPENDENCIES += host-python
-HOST_LIBXML2_CONF_OPT += --with-python=$(HOST_DIR)/usr
-else
-HOST_LIBXML2_CONF_OPT += --without-python
-endif
+HOST_LIBXML2_CONF_OPT = --without-zlib --without-lzma --without-python
 
 ifeq ($(BR2_PACKAGE_ZLIB),y)
 LIBXML2_DEPENDENCIES += zlib
diff --git a/package/mesa3d/Config.in b/package/mesa3d/Config.in
index 0bea798..10a5f96 100644
--- a/package/mesa3d/Config.in
+++ b/package/mesa3d/Config.in
@@ -2,7 +2,6 @@ menuconfig BR2_PACKAGE_MESA3D
 	bool "Mesa 3D Graphics Library"
 	select BR2_PACKAGE_LIBDRM
 	select BR2_PACKAGE_EXPAT
-	select BR2_PACKAGE_HOST_LIBXML2_PYTHON
 	select BR2_PACKAGE_XPROTO_DRI2PROTO if BR2_PACKAGE_XORG7
 	select BR2_PACKAGE_XPROTO_PRESENTPROTO if BR2_PACKAGE_XORG7
 	select BR2_PACKAGE_XPROTO_XF86DRIPROTO if BR2_PACKAGE_XORG7
diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
index 6423d69..0b5584f 100644
--- a/package/mesa3d/mesa3d.mk
+++ b/package/mesa3d/mesa3d.mk
@@ -18,7 +18,6 @@ MESA3D_DEPENDENCIES = \
 	host-bison \
 	host-flex \
 	host-gettext \
-	host-libxml2 \
 	host-python \
 	host-xutil_makedepend \
 	libdrm
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 06/29] mesa3d: Add dri3 support
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (4 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 05/29] mesa3d: Remove dependency for the libxml2 module of host-python Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 07/29] mesa3d: dri2 does not need udev support Bernd Kuhls
                   ` (23 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/mesa3d/mesa3d.mk |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
index 0b5584f..095ce08 100644
--- a/package/mesa3d/mesa3d.mk
+++ b/package/mesa3d/mesa3d.mk
@@ -22,6 +22,13 @@ MESA3D_DEPENDENCIES = \
 	host-xutil_makedepend \
 	libdrm
 
+ifeq ($(BR2_PACKAGE_XPROTO_DRI3PROTO),y)
+MESA3D_DEPENDENCIES += xproto_dri3proto
+MESA3D_CONF_OPT += --enable-dri3
+else
+MESA3D_CONF_OPT += --disable-dri3
+endif
+
 ifeq ($(BR2_PACKAGE_XORG7),y)
 MESA3D_DEPENDENCIES += \
 	xproto_xf86driproto \
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 07/29] mesa3d: dri2 does not need udev support
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (5 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 06/29] mesa3d: Add dri3 support Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 08/29] libva: new package Bernd Kuhls
                   ` (22 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

http://cgit.freedesktop.org/mesa/mesa/commit/configure.ac?id=b959fd9674938e127a34d42d34b903e3a9ae7ad9
"The loader infrastructure for everything but DRI2 requires that udev be present"

Check for udev only for dri3.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 .../mesa3d-0002-dri2-does-not-need-udev.patch      |   25 ++++++++++++++++++++
 1 file changed, 25 insertions(+)
 create mode 100644 package/mesa3d/mesa3d-0002-dri2-does-not-need-udev.patch

diff --git a/package/mesa3d/mesa3d-0002-dri2-does-not-need-udev.patch b/package/mesa3d/mesa3d-0002-dri2-does-not-need-udev.patch
new file mode 100644
index 0000000..88c6861
--- /dev/null
+++ b/package/mesa3d/mesa3d-0002-dri2-does-not-need-udev.patch
@@ -0,0 +1,25 @@
+http://cgit.freedesktop.org/mesa/mesa/commit/configure.ac?id=b959fd9674938e127a34d42d34b903e3a9ae7ad9
+"The loader infrastructure for everything but DRI2 requires that udev be present"
+
+Check for udev only for dri3.
+
+Patch sent upstream: https://bugs.freedesktop.org/show_bug.cgi?id=75212#c5
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+
+diff -uNr Mesa-10.2.0-rc1.org/configure.ac Mesa-10.2.0-rc1/configure.ac
+--- Mesa-10.2.0-rc1.org/configure.ac	2014-05-03 02:17:23.000000000 +0200
++++ Mesa-10.2.0-rc1/configure.ac	2014-05-07 19:51:54.187921825 +0200
+@@ -998,11 +998,11 @@
+         DEFINES="$DEFINES -DHAVE_ALIAS"
+         if test "x$enable_dri3" = xyes; then
+             DEFINES="$DEFINES -DHAVE_DRI3"
+-        fi
+ 
+         if test "x$have_libudev" != xyes; then
+             AC_MSG_ERROR([libudev-dev required for building DRI])
+         fi
++        fi
+ 
+         case "$host_cpu" in
+         powerpc* | sparc*)
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 08/29] libva: new package
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (6 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 07/29] mesa3d: dri2 does not need udev support Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-24 18:28   ` Yann E. MORIN
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 09/29] libva-intel-driver: " Bernd Kuhls
                   ` (21 subsequent siblings)
  29 siblings, 1 reply; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/Config.in                             |    1 +
 package/libva/Config.in                       |   18 ++++++++
 package/libva/libva-0001-no_test_decode.patch |   17 ++++++++
 package/libva/libva.mk                        |   57 +++++++++++++++++++++++++
 4 files changed, 93 insertions(+)
 create mode 100644 package/libva/Config.in
 create mode 100644 package/libva/libva-0001-no_test_decode.patch
 create mode 100644 package/libva/libva.mk

diff --git a/package/Config.in b/package/Config.in
index 14d632e..63acbeb 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -599,6 +599,7 @@ source "package/libsvg/Config.in"
 source "package/libsvg-cairo/Config.in"
 source "package/libsvgtiny/Config.in"
 source "package/libungif/Config.in"
+source "package/libva/Config.in"
 source "package/opencv/Config.in"
 source "package/opengl/Config.in"
 source "package/pango/Config.in"
diff --git a/package/libva/Config.in b/package/libva/Config.in
new file mode 100644
index 0000000..9d63b52
--- /dev/null
+++ b/package/libva/Config.in
@@ -0,0 +1,18 @@
+config BR2_PACKAGE_LIBVA
+	bool "libva"
+	select BR2_PACKAGE_LIBDRM
+	select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7
+	select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7
+	select BR2_PACKAGE_XLIB_LIBXFIXES if BR2_PACKAGE_XORG7
+	depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm/libpthread-stubs
+	depends on BR2_LARGEFILE # libdrm
+	help
+	  The main motivation for VA-API (Video Acceleration API) is to enable
+	  hardware accelerated video decode/encode at various entry-points (VLD,
+	  IDCT, Motion Compensation etc.) for the prevailing coding standards
+	  today (MPEG-2, MPEG-4 ASP/H.263, MPEG-4 AVC/H.264, and VC-1/VMW3).
+
+	  http://www.freedesktop.org/wiki/Software/vaapi/
+
+comment "libva needs a toolchain w/ largefile, threads"
+	depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
diff --git a/package/libva/libva-0001-no_test_decode.patch b/package/libva/libva-0001-no_test_decode.patch
new file mode 100644
index 0000000..0f0d786
--- /dev/null
+++ b/package/libva/libva-0001-no_test_decode.patch
@@ -0,0 +1,17 @@
+mpeg2vldemo is the only file requiring cxx support. It is not needed for
+buildroot, so disable its compilation to avoid depending on cxx.
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+
+diff -uNr libva-1.3.0.org/test/Makefile.am libva-1.3.0/test/Makefile.am
+--- libva-1.3.0.org/test/Makefile.am	2014-03-24 05:49:46.000000000 +0100
++++ libva-1.3.0/test/Makefile.am	2014-04-26 18:12:25.644390292 +0200
+@@ -20,7 +20,7 @@
+ # TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+ # SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+ 
+-SUBDIRS = common decode encode vainfo
++SUBDIRS = common encode vainfo
+ 
+ if USE_X11
+ SUBDIRS += basic putsurface
diff --git a/package/libva/libva.mk b/package/libva/libva.mk
new file mode 100644
index 0000000..550fa3f
--- /dev/null
+++ b/package/libva/libva.mk
@@ -0,0 +1,57 @@
+################################################################################
+#
+# libva
+#
+################################################################################
+
+LIBVA_VERSION = 1.3.1
+LIBVA_SOURCE = libva-$(LIBVA_VERSION).tar.bz2
+LIBVA_SITE = http://www.freedesktop.org/software/vaapi/releases/libva
+LIBVA_LICENSE = MIT
+LIBVA_LICENSE_FILES = COPYING
+LIBVA_AUTORECONF = YES
+LIBVA_INSTALL_STAGING = YES
+LIBVA_DEPENDENCIES = host-pkgconf libdrm
+
+# libdrm is a hard-dependency
+LIBVA_CONF_OPT = \
+	--enable-drm \
+	--disable-dummy-driver \
+	--with-drivers-path="/usr/lib/va"
+
+ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),y)
+LIBVA_DEPENDENCIES += mesa3d
+LIBVA_CONF_OPT += --enable-glx
+else
+LIBVA_CONF_OPT += --disable-glx
+endif
+
+ifeq ($(BR2_PACKAGE_XORG7),y)
+LIBVA_DEPENDENCIES += xlib_libX11 xlib_libXext xlib_libXfixes
+LIBVA_CONF_OPT += --enable-x11
+else
+LIBVA_CONF_OPT += --disable-x11
+endif
+
+ifeq ($(BR2_PACKAGE_WAYLAND),y)
+LIBVA_DEPENDENCIES += wayland
+LIBVA_CONF_OPT += --enable-wayland
+else
+LIBVA_CONF_OPT += --disable-wayland
+endif
+
+ifeq ($(BR2_PACKAGE_HAS_LIBEGL),y)
+LIBVA_DEPENDENCIES += libegl
+LIBVA_CONF_OPT += --enable-egl
+else
+LIBVA_CONF_OPT += --disable-egl
+endif
+
+# Autoreconf requires an m4 directory to exist
+define LIBVA_PATCH_M4
+	mkdir -p $(@D)/m4
+endef
+
+LIBVA_POST_PATCH_HOOKS += LIBVA_PATCH_M4
+
+$(eval $(autotools-package))
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 09/29] libva-intel-driver: new package
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (7 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 08/29] libva: new package Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 10/29] ffmpeg: Add libva support Bernd Kuhls
                   ` (20 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/Config.in                                |    1 +
 package/libva-intel-driver/Config.in             |   19 ++++++++++++++
 package/libva-intel-driver/libva-intel-driver.mk |   29 ++++++++++++++++++++++
 3 files changed, 49 insertions(+)
 create mode 100644 package/libva-intel-driver/Config.in
 create mode 100644 package/libva-intel-driver/libva-intel-driver.mk

diff --git a/package/Config.in b/package/Config.in
index 63acbeb..b5afcca 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -600,6 +600,7 @@ source "package/libsvg-cairo/Config.in"
 source "package/libsvgtiny/Config.in"
 source "package/libungif/Config.in"
 source "package/libva/Config.in"
+source "package/libva-intel-driver/Config.in"
 source "package/opencv/Config.in"
 source "package/opengl/Config.in"
 source "package/pango/Config.in"
diff --git a/package/libva-intel-driver/Config.in b/package/libva-intel-driver/Config.in
new file mode 100644
index 0000000..89a3264
--- /dev/null
+++ b/package/libva-intel-driver/Config.in
@@ -0,0 +1,19 @@
+config BR2_PACKAGE_LIBVA_INTEL_DRIVER
+	bool "libva-intel-driver"
+	select BR2_PACKAGE_LIBVA
+	select BR2_PACKAGE_LIBDRM
+	select BR2_PACKAGE_LIBDRM_INTEL
+	select BR2_PACKAGE_XLIB_LIBX11 if BR2_PACKAGE_XORG7
+	select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7
+	select BR2_PACKAGE_XLIB_LIBXFIXES if BR2_PACKAGE_XORG7
+	depends on BR2_i386 || BR2_x86_64
+	depends on BR2_TOOLCHAIN_HAS_THREADS # libdrm/libpthread-stubs
+	depends on BR2_LARGEFILE # libdrm
+	help
+	  VA-API back-end driver for Intel graphics chips
+
+	  https://01.org/linuxgraphics/community/vaapi
+
+comment "libva intel driver needs a toolchain w/ largefile, threads"
+	depends on !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS
+	depends on BR2_i386 || BR2_x86_64
diff --git a/package/libva-intel-driver/libva-intel-driver.mk b/package/libva-intel-driver/libva-intel-driver.mk
new file mode 100644
index 0000000..5ada9f1
--- /dev/null
+++ b/package/libva-intel-driver/libva-intel-driver.mk
@@ -0,0 +1,29 @@
+################################################################################
+#
+# libva-intel-driver
+#
+################################################################################
+
+LIBVA_INTEL_DRIVER_VERSION = 1.3.1
+LIBVA_INTEL_DRIVER_SOURCE = libva-intel-driver-$(LIBVA_INTEL_DRIVER_VERSION).tar.bz2
+LIBVA_INTEL_DRIVER_SITE = http://www.freedesktop.org/software/vaapi/releases/libva-intel-driver
+LIBVA_INTEL_DRIVER_LICENSE = MIT
+LIBVA_INTEL_DRIVER_LICENSE_FILES = COPYING
+LIBVA_INTEL_DRIVER_AUTORECONF = YES
+LIBVA_INTEL_DRIVER_DEPENDENCIES = host-pkgconf libdrm libva
+
+ifeq ($(BR2_PACKAGE_XORG7),y)
+LIBVA_INTEL_DRIVER_DEPENDENCIES += xlib_libX11 xlib_libXext xlib_libXfixes
+LIBVA_INTEL_DRIVER_CONF_OPT += --enable-x11
+else
+LIBVA_INTEL_DRIVER_CONF_OPT += --disable-x11
+endif
+
+ifeq ($(BR2_PACKAGE_WAYLAND),y)
+LIBVA_DEPENDENCIES += wayland
+LIBVA_INTEL_DRIVER_CONF_OPT += --enable-wayland
+else
+LIBVA_INTEL_DRIVER_CONF_OPT += --disable-wayland
+endif
+
+$(eval $(autotools-package))
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 10/29] ffmpeg: Add libva support
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (8 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 09/29] libva-intel-driver: " Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 11/29] libglu: new package Bernd Kuhls
                   ` (19 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/ffmpeg/ffmpeg.mk |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/ffmpeg/ffmpeg.mk b/package/ffmpeg/ffmpeg.mk
index f8c1526..1be3575 100644
--- a/package/ffmpeg/ffmpeg.mk
+++ b/package/ffmpeg/ffmpeg.mk
@@ -41,7 +41,6 @@ FFMPEG_CONF_OPT = \
 	--enable-mdct \
 	--enable-rdft \
 	--disable-crystalhd \
-	--disable-vaapi \
 	--disable-vdpau \
 	--disable-dxva2 \
 	--enable-runtime-cpudetect \
@@ -209,6 +208,13 @@ FFMPEG_CONF_OPT += \
 	--enable-encoder=libvorbis
 endif
 
+ifeq ($(BR2_PACKAGE_LIBVA),y)
+FFMPEG_CONF_OPT += --enable-vaapi
+FFMPEG_DEPENDENCIES += libva
+else
+FFMPEG_CONF_OPT += --disable-vaapi
+endif
+
 ifeq ($(BR2_X86_CPU_HAS_MMX),y)
 FFMPEG_CONF_OPT += --enable-yasm
 FFMPEG_DEPENDENCIES += host-yasm
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 11/29] libglu: new package
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (9 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 10/29] ffmpeg: Add libva support Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-24 18:31   ` Yann E. MORIN
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 12/29] libglew: " Bernd Kuhls
                   ` (18 subsequent siblings)
  29 siblings, 1 reply; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/Config.in        |    1 +
 package/libglu/Config.in |   10 ++++++++++
 package/libglu/libglu.mk |   16 ++++++++++++++++
 3 files changed, 27 insertions(+)
 create mode 100644 package/libglu/Config.in
 create mode 100644 package/libglu/libglu.mk

diff --git a/package/Config.in b/package/Config.in
index b5afcca..49738b0 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -590,6 +590,7 @@ source "package/libexif/Config.in"
 source "package/libgail/Config.in"
 source "package/libgeotiff/Config.in"
 source "package/libglade/Config.in"
+source "package/libglu/Config.in"
 source "package/libgtk2/Config.in"
 source "package/libpng/Config.in"
 source "package/libqrencode/Config.in"
diff --git a/package/libglu/Config.in b/package/libglu/Config.in
new file mode 100644
index 0000000..de8e1ef
--- /dev/null
+++ b/package/libglu/Config.in
@@ -0,0 +1,10 @@
+config BR2_PACKAGE_LIBGLU
+	bool "libglu"
+	depends on BR2_PACKAGE_HAS_LIBGL
+	help
+	  Mesa OpenGL Utility library
+
+	  http://cgit.freedesktop.org/mesa/glu/
+
+comment "libglu needs an OpenGL backend"
+	depends on !BR2_PACKAGE_HAS_LIBGL
diff --git a/package/libglu/libglu.mk b/package/libglu/libglu.mk
new file mode 100644
index 0000000..f4c47a0
--- /dev/null
+++ b/package/libglu/libglu.mk
@@ -0,0 +1,16 @@
+################################################################################
+#
+# libglu
+#
+################################################################################
+
+LIBGLU_VERSION = 9.0.0
+LIBGLU_SITE = http://cgit.freedesktop.org/mesa/glu/snapshot
+LIBGLU_SOURCE = glu-$(LIBGLU_VERSION).tar.gz
+LIBGLU_LICENSE = SGI-B-2.0
+LIBGLU_LICENSE_FILES = include/GL/glu.h
+LIBGLU_INSTALL_STAGING = YES
+LIBGLU_AUTORECONF = YES
+LIBGLU_DEPENDENCIES = libgl
+
+$(eval $(autotools-package))
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 12/29] libglew: new package
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (10 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 11/29] libglu: new package Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 13/29] sdl: Add new dependency libglu for opengl support Bernd Kuhls
                   ` (17 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/Config.in          |    1 +
 package/libglew/Config.in  |   19 +++++++++++++++++++
 package/libglew/libglew.mk |   36 ++++++++++++++++++++++++++++++++++++
 3 files changed, 56 insertions(+)
 create mode 100644 package/libglew/Config.in
 create mode 100644 package/libglew/libglew.mk

diff --git a/package/Config.in b/package/Config.in
index 49738b0..7f0edbb 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -590,6 +590,7 @@ source "package/libexif/Config.in"
 source "package/libgail/Config.in"
 source "package/libgeotiff/Config.in"
 source "package/libglade/Config.in"
+source "package/libglew/Config.in"
 source "package/libglu/Config.in"
 source "package/libgtk2/Config.in"
 source "package/libpng/Config.in"
diff --git a/package/libglew/Config.in b/package/libglew/Config.in
new file mode 100644
index 0000000..67c49d4
--- /dev/null
+++ b/package/libglew/Config.in
@@ -0,0 +1,19 @@
+config BR2_PACKAGE_LIBGLEW
+	bool "libglew"
+	depends on BR2_PACKAGE_XORG7
+	depends on BR2_PACKAGE_HAS_LIBGL
+	select BR2_PACKAGE_XLIB_LIBX11
+	select BR2_PACKAGE_XLIB_LIBXEXT
+	select BR2_PACKAGE_XLIB_LIBXI
+	select BR2_PACKAGE_XLIB_LIBXMU
+	help
+	  The OpenGL Extension Wrangler Library (GLEW) is a cross-platform C/C++
+	  extension loading library. GLEW provides efficient run-time mechanisms
+	  for determining which OpenGL extensions are supported on the target
+	  platform. OpenGL core and extension functionality is exposed in a
+	  single header file.
+
+	  http://glew.sourceforge.net
+
+comment "libglew depends on X.org and needs an OpenGL backend"
+	depends on !BR2_PACKAGE_XORG7 || !BR2_PACKAGE_HAS_LIBGL
diff --git a/package/libglew/libglew.mk b/package/libglew/libglew.mk
new file mode 100644
index 0000000..48ecf97
--- /dev/null
+++ b/package/libglew/libglew.mk
@@ -0,0 +1,36 @@
+################################################################################
+#
+# libglew
+#
+################################################################################
+
+LIBGLEW_VERSION = 1.10.0
+LIBGLEW_SOURCE = glew-$(LIBGLEW_VERSION).tgz
+LIBGLEW_SITE = http://sourceforge.net/projects/glew/files/glew/$(LIBGLEW_VERSION)
+LIBGLEW_LICENSE = MIT
+LIBGLEW_LICENSE_FILES = LICENSE.txt
+LIBGLEW_INSTALL_STAGING = YES
+LIBGLEW_DEPENDENCIES = libgl xlib_libX11 xlib_libXext xlib_libXi xlib_libXmu
+
+# using $TARGET_CONFIGURE_OPTS breaks compilation
+define LIBGLEW_BUILD_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
+		GLEW_DEST="/usr" LIBDIR="/usr/lib" \
+		AR="$(TARGET_AR)" CC="$(TARGET_CC)" \
+		LD="$(TARGET_CC)" STRIP="$(TARGET_STRIP)" \
+		POPT="$(TARGET_CFLAGS)" LDFLAGS.EXTRA="$(TARGET_LDFLAGS)"
+endef
+
+define LIBGLEW_INSTALL_STAGING_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
+		GLEW_DEST="$(STAGING_DIR)/usr" LIBDIR="$(STAGING_DIR)/usr/lib" \
+		$(TARGET_CONFIGURE_OPTS) install
+endef
+
+define LIBGLEW_INSTALL_TARGET_CMDS
+	$(TARGET_MAKE_ENV) $(MAKE) -C $(@D) \
+		GLEW_DEST="$(TARGET_DIR)/usr" LIBDIR="$(TARGET_DIR)/usr/lib" \
+		$(TARGET_CONFIGURE_OPTS) install
+endef
+
+$(eval $(generic-package))
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 13/29] sdl: Add new dependency libglu for opengl support
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (11 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 12/29] libglew: " Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 14/29] xdriver_xf86-video-intel: Bump version to 2.99.911 Bernd Kuhls
                   ` (16 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/sdl/sdl.mk |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/package/sdl/sdl.mk b/package/sdl/sdl.mk
index 8d0e5bd..8adc66b 100644
--- a/package/sdl/sdl.mk
+++ b/package/sdl/sdl.mk
@@ -62,7 +62,8 @@ SDL_DEPENDENCIES += alsa-lib
 endif
 
 ifeq ($(BR2_PACKAGE_MESA3D),y)
-SDL_DEPENDENCIES += mesa3d
+SDL_DEPENDENCIES += libglu mesa3d
+SDL_CONF_OPT += --enable-video-opengl
 endif
 
 SDL_CONF_OPT += --enable-pulseaudio=no \
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 14/29] xdriver_xf86-video-intel: Bump version to 2.99.911
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (12 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 13/29] sdl: Add new dependency libglu for opengl support Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 15/29] xbmc - prepare for 13.x-Gotham: Add host-gettext dependency Bernd Kuhls
                   ` (15 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

- add necessary dependencies
- add -D_GNU_SOURCE to avoid getline compilation error

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/x11r7/xdriver_xf86-video-intel/Config.in   |    5 ++--
 .../xdriver_xf86-video-intel.mk                    |   27 +++++++++++++++-----
 2 files changed, 24 insertions(+), 8 deletions(-)

diff --git a/package/x11r7/xdriver_xf86-video-intel/Config.in b/package/x11r7/xdriver_xf86-video-intel/Config.in
index 69a9e78..bba7cd1 100644
--- a/package/x11r7/xdriver_xf86-video-intel/Config.in
+++ b/package/x11r7/xdriver_xf86-video-intel/Config.in
@@ -3,12 +3,13 @@ config BR2_PACKAGE_XDRIVER_XF86_VIDEO_INTEL
 	depends on (BR2_i386 || BR2_x86_64)
 	depends on BR2_PACKAGE_MESA3D
 	select BR2_PACKAGE_XPROTO_FONTSPROTO
-	select BR2_PACKAGE_XPROTO_RANDRPROTO
-	select BR2_PACKAGE_XPROTO_RENDERPROTO
 	select BR2_PACKAGE_XPROTO_XPROTO
 	select BR2_PACKAGE_XLIB_LIBPCIACCESS
 	select BR2_PACKAGE_LIBDRM
 	select BR2_PACKAGE_LIBDRM_INTEL
+	select BR2_PACKAGE_XLIB_LIBXCOMPOSITE
+	select BR2_PACKAGE_XLIB_LIBXRANDR
+	select BR2_PACKAGE_XLIB_LIBXTST
 	help
 	  Intel video driver
 
diff --git a/package/x11r7/xdriver_xf86-video-intel/xdriver_xf86-video-intel.mk b/package/x11r7/xdriver_xf86-video-intel/xdriver_xf86-video-intel.mk
index 332de54..52b493f 100644
--- a/package/x11r7/xdriver_xf86-video-intel/xdriver_xf86-video-intel.mk
+++ b/package/x11r7/xdriver_xf86-video-intel/xdriver_xf86-video-intel.mk
@@ -4,18 +4,18 @@
 #
 ################################################################################
 
-XDRIVER_XF86_VIDEO_INTEL_VERSION = 2.99.907
+XDRIVER_XF86_VIDEO_INTEL_VERSION = 2.99.911
 XDRIVER_XF86_VIDEO_INTEL_SOURCE = xf86-video-intel-$(XDRIVER_XF86_VIDEO_INTEL_VERSION).tar.bz2
 XDRIVER_XF86_VIDEO_INTEL_SITE = http://xorg.freedesktop.org/releases/individual/driver
 XDRIVER_XF86_VIDEO_INTEL_LICENSE = MIT
 XDRIVER_XF86_VIDEO_INTEL_LICENSE_FILES = COPYING
-XDRIVER_XF86_VIDEO_INTEL_AUTORECONF = YES
+
+# this fixes a getline-related compilation in src/sna/kgem.c
+XDRIVER_XF86_VIDEO_INTEL_CONF_ENV = \
+	CFLAGS="$(TARGET_CFLAGS) -D_GNU_SOURCE"
 
 XDRIVER_XF86_VIDEO_INTEL_CONF_OPT = \
-	--enable-dri \
-	--enable-kms-only \
 	--disable-xvmc \
-	--disable-ums-only \
 	--enable-sna \
 	--disable-uxa \
 	--disable-glamor \
@@ -23,6 +23,21 @@ XDRIVER_XF86_VIDEO_INTEL_CONF_OPT = \
 	--disable-dga \
 	--disable-async-swap
 
-XDRIVER_XF86_VIDEO_INTEL_DEPENDENCIES = xserver_xorg-server xproto_fontsproto xproto_randrproto xproto_renderproto xproto_xproto libdrm xlib_libpciaccess
+XDRIVER_XF86_VIDEO_INTEL_DEPENDENCIES = \
+	libdrm \
+	xlib_libXcomposite \
+	xlib_libXrandr \
+	xlib_libXtst \
+	xlib_libpciaccess \
+	xproto_fontsproto \
+	xproto_xproto \
+	xserver_xorg-server
+
+ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER_I965),y)
+XDRIVER_XF86_VIDEO_INTEL_CONF_OPT += --enable-dri
+XDRIVER_XF86_VIDEO_INTEL_DEPENDENCIES += mesa3d xproto_xf86driproto
+else
+XDRIVER_XF86_VIDEO_INTEL_CONF_OPT += --disable-dri
+endif
 
 $(eval $(autotools-package))
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 15/29] xbmc - prepare for 13.x-Gotham: Add host-gettext dependency
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (13 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 14/29] xdriver_xf86-video-intel: Bump version to 2.99.911 Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 16/29] xbmc - prepare for 13.x-Gotham: Add host-nasm dependency Bernd Kuhls
                   ` (14 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

AUTOPOINT=/bin/true does not work anymore since
https://github.com/xbmc/xbmc/commit/42017cba7a62a0cf16896b061a25a25d392e1e46

config.status: error: cannot find input file: `Makefile.in'
configure: error: Submodule lib/cpluff failed to configure

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/xbmc/xbmc.mk |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/package/xbmc/xbmc.mk b/package/xbmc/xbmc.mk
index c7a4607..d8b9508 100644
--- a/package/xbmc/xbmc.mk
+++ b/package/xbmc/xbmc.mk
@@ -12,7 +12,7 @@ XBMC_LICENSE_FILES = LICENSE.GPL
 # called TexturePacker. It is responsible to take all the images used in the
 # GUI and pack them in a blob.
 # http://wiki.xbmc.org/index.php?title=TexturePacker
-XBMC_DEPENDENCIES = host-gawk host-gperf host-infozip host-lzo host-sdl_image host-swig
+XBMC_DEPENDENCIES = host-gawk host-gettext host-gperf host-infozip host-lzo host-sdl_image host-swig
 XBMC_DEPENDENCIES += boost bzip2 expat flac fontconfig freetype jasper jpeg \
 	libass libcdio libcurl libegl libfribidi libgcrypt libgles libmad libmodplug libmpeg2 \
 	libogg libplist libpng libsamplerate libungif libvorbis libxml2 lzo ncurses \
@@ -133,7 +133,7 @@ endif
 
 # Add HOST_DIR to PATH for codegenerator.mk to find swig
 define XBMC_BOOTSTRAP
-	cd $(@D) && PATH=$(BR_PATH) AUTOPOINT=/bin/true ./bootstrap
+	cd $(@D) && PATH=$(BR_PATH) ./bootstrap
 endef
 XBMC_PRE_CONFIGURE_HOOKS += XBMC_BOOTSTRAP
 
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 16/29] xbmc - prepare for 13.x-Gotham: Add host-nasm dependency
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (14 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 15/29] xbmc - prepare for 13.x-Gotham: Add host-gettext dependency Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 17/29] xbmc - prepare for 13.x-Gotham: Add host-yasm dependency for MMX/64bit archs Bernd Kuhls
                   ` (13 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

Fixes:
checking for nasm... no
configure: error: Could not find a required program. Please see the README for your platform.

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/xbmc/xbmc.mk |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/package/xbmc/xbmc.mk b/package/xbmc/xbmc.mk
index d8b9508..3522802 100644
--- a/package/xbmc/xbmc.mk
+++ b/package/xbmc/xbmc.mk
@@ -18,6 +18,9 @@ XBMC_DEPENDENCIES += boost bzip2 expat flac fontconfig freetype jasper jpeg \
 	libogg libplist libpng libsamplerate libungif libvorbis libxml2 lzo ncurses \
 	openssl pcre python readline sqlite taglib tiff tinyxml yajl zlib
 
+# xbmc at i386 depends on nasm
+XBMC_DEPENDENCIES += $(if $(BR2_i386),host-nasm)
+
 XBMC_CONF_ENV = \
 	PYTHON_VERSION="$(PYTHON_VERSION_MAJOR)" \
 	PYTHON_LDFLAGS="-lpython$(PYTHON_VERSION_MAJOR) -lpthread -ldl -lutil -lm" \
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 17/29] xbmc - prepare for 13.x-Gotham: Add host-yasm dependency for MMX/64bit archs
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (15 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 16/29] xbmc - prepare for 13.x-Gotham: Add host-nasm dependency Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 18/29] xbmc - prepare for 13.x-Gotham: Add missing egl-related cflags Bernd Kuhls
                   ` (12 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

Fixes error during xbmc configure:

yasm not found, use --disable-yasm for a crippled build

If you think configure made a mistake, make sure you are using the latest
version from Git.  If the latest version fails, report the problem to the
ffmpeg-user at ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
Include the log file "config.log" produced by configure as this will help
solving the problem.
configure: error: Submodule lib/ffmpeg failed to configure

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/xbmc/xbmc.mk |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/xbmc/xbmc.mk b/package/xbmc/xbmc.mk
index 3522802..ffe573f 100644
--- a/package/xbmc/xbmc.mk
+++ b/package/xbmc/xbmc.mk
@@ -21,6 +21,13 @@ XBMC_DEPENDENCIES += boost bzip2 expat flac fontconfig freetype jasper jpeg \
 # xbmc at i386 depends on nasm
 XBMC_DEPENDENCIES += $(if $(BR2_i386),host-nasm)
 
+# ffmpeg depends on yasm on MMX archs
+# xbmc configure passes $(BR2_ARCH) to ffmpeg configure which adds
+# yasm as dependency for x86_64, even if BR2_x86_generic=y
+ifneq ($(BR2_X86_CPU_HAS_MMX)$(BR2_x86_64),)
+XBMC_DEPENDENCIES += host-yasm
+endif
+
 XBMC_CONF_ENV = \
 	PYTHON_VERSION="$(PYTHON_VERSION_MAJOR)" \
 	PYTHON_LDFLAGS="-lpython$(PYTHON_VERSION_MAJOR) -lpthread -ldl -lutil -lm" \
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 18/29] xbmc - prepare for 13.x-Gotham: Add missing egl-related cflags
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (16 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 17/29] xbmc - prepare for 13.x-Gotham: Add host-yasm dependency for MMX/64bit archs Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 19/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (11 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

A similar patch is used in package/qt/qt.mk.

Fixes compilation error:

In file included from /home/br/br/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/include/EGL/egl.h:36:0,
                 from /home/br/br/output/build/xbmc-13.0-Gotham/xbmc/windowing/egl/WinSystemEGL.h:28,
                 from /home/br/br/output/build/xbmc-13.0-Gotham/xbmc/windowing/WindowingFactory.h:39,
                 from DVDPlayerVideo.cpp:23:
/home/br/br/output/host/usr/x86_64-buildroot-linux-gnu/sysroot/usr/include/EGL/eglplatform.h:118:22: fatal error: X11/Xlib.h: No such file or directory

using this defconfig

BR2_x86_64=y
BR2_x86_corei7=y
BR2_TOOLCHAIN_EXTERNAL=y
BR2_ROOTFS_DEVICE_CREATION_DYNAMIC_EUDEV=y
BR2_PACKAGE_XBMC=y
BR2_PACKAGE_MESA3D=y
BR2_PACKAGE_MESA3D_GALLIUM_DRIVER_SWRAST=y
BR2_PACKAGE_MESA3D_OPENGL_EGL=y
BR2_PACKAGE_MESA3D_OPENGL_ES=y

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/xbmc/xbmc.mk |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/package/xbmc/xbmc.mk b/package/xbmc/xbmc.mk
index ffe573f..acbdb91 100644
--- a/package/xbmc/xbmc.mk
+++ b/package/xbmc/xbmc.mk
@@ -70,6 +70,10 @@ ifeq ($(BR2_PACKAGE_DBUS),y)
 XBMC_DEPENDENCIES += dbus
 endif
 
+XBMC_CONF_ENV += \
+	CFLAGS="$(TARGET_CFLAGS) $(shell $(PKG_CONFIG_HOST_BINARY) --cflags egl)" \
+	CXXFLAGS="$(TARGET_CXXFLAGS) $(shell $(PKG_CONFIG_HOST_BINARY) --cflags egl)"
+
 ifeq ($(BR2_PACKAGE_XBMC_LIBUSB),y)
 XBMC_DEPENDENCIES += libusb-compat
 XBMC_CONF_OPT += --enable-libusb
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 19/29] xbmc: bump version to 13.1 Beta2
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (17 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 18/29] xbmc - prepare for 13.x-Gotham: Add missing egl-related cflags Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 20/29] xbmc-pvr-addons: Version bump to xbmc Gotham-compatible addon Bernd Kuhls
                   ` (10 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/xbmc/Config.in |    1 +
 package/xbmc/xbmc.mk   |    7 +++++--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/package/xbmc/Config.in b/package/xbmc/Config.in
index 75666a4..0f45f5c 100644
--- a/package/xbmc/Config.in
+++ b/package/xbmc/Config.in
@@ -35,6 +35,7 @@ menuconfig BR2_PACKAGE_XBMC
 	select BR2_PACKAGE_LIBUNGIF
 	select BR2_PACKAGE_LIBVORBIS
 	select BR2_PACKAGE_LIBXML2
+	select BR2_PACKAGE_LIBXSLT
 	select BR2_PACKAGE_LZO
 	select BR2_PACKAGE_NCURSES
 	select BR2_PACKAGE_OPENSSL
diff --git a/package/xbmc/xbmc.mk b/package/xbmc/xbmc.mk
index acbdb91..35764a0 100644
--- a/package/xbmc/xbmc.mk
+++ b/package/xbmc/xbmc.mk
@@ -4,7 +4,9 @@
 #
 ################################################################################
 
-XBMC_VERSION = 12.3-Frodo
+# XBMC_VERSION = 13.1b2-Gotham
+# tarball for 13.1b2 is currently missing
+XBMC_VERSION = a6a271389ce4a67a323e547412567ace9d84c274
 XBMC_SITE = $(call github,xbmc,xbmc,$(XBMC_VERSION))
 XBMC_LICENSE = GPLv2
 XBMC_LICENSE_FILES = LICENSE.GPL
@@ -15,7 +17,7 @@ XBMC_LICENSE_FILES = LICENSE.GPL
 XBMC_DEPENDENCIES = host-gawk host-gettext host-gperf host-infozip host-lzo host-sdl_image host-swig
 XBMC_DEPENDENCIES += boost bzip2 expat flac fontconfig freetype jasper jpeg \
 	libass libcdio libcurl libegl libfribidi libgcrypt libgles libmad libmodplug libmpeg2 \
-	libogg libplist libpng libsamplerate libungif libvorbis libxml2 lzo ncurses \
+	libogg libplist libpng libsamplerate libungif libvorbis libxml2 libxslt lzo ncurses \
 	openssl pcre python readline sqlite taglib tiff tinyxml yajl zlib
 
 # xbmc at i386 depends on nasm
@@ -37,6 +39,7 @@ XBMC_CONF_ENV = \
 	TEXTUREPACKER_NATIVE_ROOT="$(HOST_DIR)/usr"
 
 XBMC_CONF_OPT +=  \
+	--with-arch=$(BR2_ARCH) \
 	--disable-alsa \
 	--disable-crystalhd \
 	--disable-debug \
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 20/29] xbmc-pvr-addons: Version bump to xbmc Gotham-compatible addon
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (18 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 19/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 21/29] xbmc-addon-xvdr: " Bernd Kuhls
                   ` (9 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/xbmc-pvr-addons/xbmc-pvr-addons.mk |    7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/package/xbmc-pvr-addons/xbmc-pvr-addons.mk b/package/xbmc-pvr-addons/xbmc-pvr-addons.mk
index b6d061b..97628e2 100644
--- a/package/xbmc-pvr-addons/xbmc-pvr-addons.mk
+++ b/package/xbmc-pvr-addons/xbmc-pvr-addons.mk
@@ -4,9 +4,10 @@
 #
 ################################################################################
 
-# This cset is on the branch 'frodo'
-# When XBMC is updated, then this should be updated to the corresponding branch
-XBMC_PVR_ADDONS_VERSION = 319351af7f3b546a5a56cdf6492f6ba1aec1cd2f
+# This cset in on master. When a Gotham branch is made, we should
+# follow it, as incompatible changes in the plugins API can happen
+# on the master branch.
+XBMC_PVR_ADDONS_VERSION = f38b2ebdc6f96244d5e4bc584315f4a2c24bc787
 XBMC_PVR_ADDONS_SITE = $(call github,opdenkamp,xbmc-pvr-addons,$(XBMC_PVR_ADDONS_VERSION))
 XBMC_PVR_ADDONS_LICENSE = GPLv3+
 XBMC_PVR_ADDONS_LICENSE_FILES = COPYING
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 21/29] xbmc-addon-xvdr: Version bump to xbmc Gotham-compatible addon
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (19 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 20/29] xbmc-pvr-addons: Version bump to xbmc Gotham-compatible addon Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 22/29] xbmc: hdmi cec supports needs udev for device scanning Bernd Kuhls
                   ` (8 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

- remove upstream applied patch xbmc-addon-xvdr-0001-foreign-automake.patch

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 .../xbmc-addon-xvdr-0001-foreign-automake.patch    |   28 --------------------
 package/xbmc-addon-xvdr/xbmc-addon-xvdr.mk         |    7 ++---
 2 files changed, 4 insertions(+), 31 deletions(-)
 delete mode 100644 package/xbmc-addon-xvdr/xbmc-addon-xvdr-0001-foreign-automake.patch

diff --git a/package/xbmc-addon-xvdr/xbmc-addon-xvdr-0001-foreign-automake.patch b/package/xbmc-addon-xvdr/xbmc-addon-xvdr-0001-foreign-automake.patch
deleted file mode 100644
index 0f49dcf..0000000
--- a/package/xbmc-addon-xvdr/xbmc-addon-xvdr-0001-foreign-automake.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-commit 846b0b5a8b559f94dffadf5b2f95ca845b6ba9f1
-Author: Yann E. MORIN <yann.morin.1998@free.fr>
-Date:   Wed Mar 26 07:45:58 2014 +0100
-
-    configure: set the foreign flag
-    
-    This is required since we do not bundle the necessary files (NEWS,
-    INSTALL et al.) Setting it in configure.in is needed to be able
-    to run autoreconf (in lieu of the weird autogen.sh)
-    
-    Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
-
-Patch accepted upstream in master:
-    https://github.com/pipelka/xbmc-addon-xvdr/commit/84e5860f488e67a3a3386c779f9a56adeb3dc220
-
-diff --git a/configure.in b/configure.in
-index 6e692e1..7be0d18 100755
---- a/configure.in
-+++ b/configure.in
-@@ -12,7 +12,7 @@ AC_CANONICAL_HOST
- AC_CANONICAL_TARGET
- 
- dnl Setup for automake
--AM_INIT_AUTOMAKE
-+AM_INIT_AUTOMAKE([foreign])
- 
- dnl Check for tools
- 
diff --git a/package/xbmc-addon-xvdr/xbmc-addon-xvdr.mk b/package/xbmc-addon-xvdr/xbmc-addon-xvdr.mk
index 28c90f7..1f452de 100644
--- a/package/xbmc-addon-xvdr/xbmc-addon-xvdr.mk
+++ b/package/xbmc-addon-xvdr/xbmc-addon-xvdr.mk
@@ -4,9 +4,10 @@
 #
 ################################################################################
 
-# This cset is on the branch 'xbmc-frodo'
-# When XBMC is updated, then this should be updated to the corresponding branch
-XBMC_ADDON_XVDR_VERSION = acd4e145fc3220cf708aaf40d895904732dce2c7
+# This cset in on master. When a Gotham branch is made, we should
+# follow it, as incompatible changes in the plugins API can happen
+# on the master branch.
+XBMC_ADDON_XVDR_VERSION = 82b5093ad33847f97a978cb620c9a87d2dbcf7eb
 XBMC_ADDON_XVDR_SITE = $(call github,pipelka,xbmc-addon-xvdr,$(XBMC_ADDON_XVDR_VERSION))
 XBMC_ADDON_XVDR_LICENSE = GPLv2+
 XBMC_ADDON_XVDR_LICENSE_FILES = COPYING
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 22/29] xbmc: hdmi cec supports needs udev for device scanning
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (20 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 21/29] xbmc-addon-xvdr: " Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 23/29] xbmc: Allow compilation with uClibc Bernd Kuhls
                   ` (7 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

libcec support in xbmc compiles without udev being linked to libcec,
but it is useless because xbmc uses libcec?s udev support for scanning
connected CEC devices since:
https://github.com/xbmc/xbmc/commit/59171c7a030f8a9c913abbce931967a6a8ff6897

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/xbmc/Config.in |    5 +++--
 package/xbmc/xbmc.mk   |    2 +-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/package/xbmc/Config.in b/package/xbmc/Config.in
index 0f45f5c..0c449b8 100644
--- a/package/xbmc/Config.in
+++ b/package/xbmc/Config.in
@@ -98,13 +98,14 @@ comment "libbluray support needs a toolchain w/ dynamic library"
 config BR2_PACKAGE_XBMC_LIBCEC
 	bool "hdmi cec"
 	depends on !BR2_PREFER_STATIC_LIB # libcec
+	depends on BR2_PACKAGE_HAS_UDEV
 	select BR2_PACKAGE_LIBCEC
 	help
 	  Enable CEC (Consumer Electronics Control) support.
 	  Select this if you want XBMC to support HDMI CEC.
 
-comment "hdmi cec support needs a toolchain w/ dynamic library"
-	depends on BR2_PREFER_STATIC_LIB
+comment "hdmi cec support needs udev /dev management and a toolchain w/ dynamic library"
+	depends on BR2_PREFER_STATIC_LIB || !BR2_PACKAGE_HAS_UDEV
 
 config BR2_PACKAGE_XBMC_LIBMICROHTTPD
 	bool "web server"
diff --git a/package/xbmc/xbmc.mk b/package/xbmc/xbmc.mk
index 35764a0..d73815f 100644
--- a/package/xbmc/xbmc.mk
+++ b/package/xbmc/xbmc.mk
@@ -134,7 +134,7 @@ XBMC_CONF_OPT += --disable-avahi
 endif
 
 ifeq ($(BR2_PACKAGE_XBMC_LIBCEC),y)
-XBMC_DEPENDENCIES += libcec
+XBMC_DEPENDENCIES += libcec udev
 XBMC_CONF_OPT += --enable-libcec
 else
 XBMC_CONF_OPT += --disable-libcec
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 23/29] xbmc: Allow compilation with uClibc
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (21 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 22/29] xbmc: hdmi cec supports needs udev for device scanning Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 24/29] xbmc: Add alsa support Bernd Kuhls
                   ` (6 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

- Add dependencies needed by xbmc on BR2_LARGEFILE, BR2_INET_IPV6 &
  BR2_USE_WCHAR after the removal of BR2_TOOLCHAIN_USES_GLIBC
- Add xbmc-0002-mathutil.patch to fix ARM compilation

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/xbmc/Config.in                |   15 ++-
 package/xbmc/xbmc-0002-mathutil.patch |  213 +++++++++++++++++++++++++++++++++
 2 files changed, 222 insertions(+), 6 deletions(-)
 create mode 100644 package/xbmc/xbmc-0002-mathutil.patch

diff --git a/package/xbmc/Config.in b/package/xbmc/Config.in
index 0c449b8..05ceea4 100644
--- a/package/xbmc/Config.in
+++ b/package/xbmc/Config.in
@@ -1,11 +1,10 @@
-comment "xbmc needs an (e)glibc toolchain w/ C++, threads"
-	depends on !BR2_TOOLCHAIN_USES_GLIBC || !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS
+comment "xbmc needs a toolchain w/ C++, IPv6, largefile, threads, wchar"
+	depends on BR2_arm || BR2_i386 || BR2_x86_64
+	depends on !BR2_INET_IPV6 || !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
 
 comment "xbmc requires an OpenGL ES and EGL backend"
+	depends on BR2_arm || BR2_i386 || BR2_x86_64
 	depends on !BR2_PACKAGE_HAS_LIBEGL || !BR2_PACKAGE_HAS_LIBGLES
-	depends on BR2_TOOLCHAIN_USES_GLIBC
-	depends on BR2_INSTALL_LIBSTDCPP
-	depends on BR2_TOOLCHAIN_HAS_THREADS
 
 menuconfig BR2_PACKAGE_XBMC
 	bool "xbmc"
@@ -57,10 +56,14 @@ menuconfig BR2_PACKAGE_XBMC
 	select BR2_PACKAGE_TINYXML
 	select BR2_PACKAGE_YAJL
 	select BR2_PACKAGE_ZLIB
-	depends on BR2_TOOLCHAIN_USES_GLIBC
+	depends on BR2_INET_IPV6
 	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_LARGEFILE
 	depends on BR2_TOOLCHAIN_HAS_THREADS
 	depends on BR2_PACKAGE_HAS_LIBEGL && BR2_PACKAGE_HAS_LIBGLES
+	depends on BR2_USE_MMU # python
+	depends on BR2_USE_WCHAR
+	depends on BR2_arm || BR2_i386 || BR2_x86_64
 	help
 	  XBMC is an award-winning free and open source (GPL) software
 	  media player and entertainment hub for digital media.
diff --git a/package/xbmc/xbmc-0002-mathutil.patch b/package/xbmc/xbmc-0002-mathutil.patch
new file mode 100644
index 0000000..33f91eb
--- /dev/null
+++ b/package/xbmc/xbmc-0002-mathutil.patch
@@ -0,0 +1,213 @@
+Taken from upstream PR: https://github.com/xbmc/xbmc/pull/3760
+
+Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
+
+
+From 7388e8be7cd5e78100532ebf0dba15dccb7b03f8 Mon Sep 17 00:00:00 2001
+From: Ben Avison <bavison@riscosopen.org>
+Date: Tue, 3 Dec 2013 15:51:39 +0000
+Subject: [PATCH] Faster and simpler portable implementation of
+ MathUtils::round_int().
+
+Much as I like a bit of inline assembler, I have also removed the ARM versions
+of MathUtils::truncate_int() and MathUtils::round_int(). The former was just
+how any sane compiler should have assembled a cast from double to signed int
+anyway. The latter was a much too complicated way to achieve the desired
+effect, and was switched out in most ARM builds anyway in favour of the old
+portable implementation that used floor().
+
+Verified that MathUtils::test() still passes, and that GCC is now able to
+inline MathUtils::round_int(), where it didn't previously.
+
+I tested on a Raspberry Pi with the default theme, displaying the front page
+with the RSS ticker enabled. This saturates the CPU, so I'm measuring the
+improvement using the debug window's FPS figure. This patch improves this from
+~50.8 FPS to ~52.6 FPS.
+---
+ xbmc/utils/MathUtils.h | 129 +++++++++++++++++++++++--------------------------
+ 1 file changed, 61 insertions(+), 68 deletions(-)
+
+diff --git a/xbmc/utils/MathUtils.h b/xbmc/utils/MathUtils.h
+index 96af9f4..0dae77d 100644
+--- a/xbmc/utils/MathUtils.h
++++ b/xbmc/utils/MathUtils.h
+@@ -34,17 +34,13 @@
+ 
+ #if defined(__ppc__) || \
+     defined(__powerpc__) || \
+-   (defined(TARGET_DARWIN_IOS) && defined(__llvm__)) || \
+-   (defined(TARGET_ANDROID) && defined(__arm__)) || \
+-    defined(TARGET_RASPBERRY_PI)
++    defined(__arm__)
+   #define DISABLE_MATHUTILS_ASM_ROUND_INT
+ #endif
+ 
+ #if defined(__ppc__) || \
+     defined(__powerpc__) || \
+-   (defined(TARGET_DARWIN) && defined(__llvm__)) || \
+-   (defined(TARGET_ANDROID) && defined(__arm__)) || \
+-    defined(TARGET_RASPBERRY_PI)
++    defined(__arm__)
+   #define DISABLE_MATHUTILS_ASM_TRUNCATE_INT
+ #endif
+ 
+@@ -73,60 +69,63 @@
+   {
+     assert(x > static_cast<double>(INT_MIN / 2) - 1.0);
+     assert(x < static_cast<double>(INT_MAX / 2) + 1.0);
+-    const float round_to_nearest = 0.5f;
+-    int i;
+ 
+ #if defined(DISABLE_MATHUTILS_ASM_ROUND_INT)
+-    i = floor(x + round_to_nearest);
+-
+-#elif defined(__arm__)
+-    // From 'ARM-v7-M Architecture Reference Manual' page A7-569:
+-    //  "The floating-point to integer operation (vcvt) [normally] uses the Round towards Zero rounding mode"
+-    // Because of this...we must use some less-than-straightforward logic to perform this operation without
+-    //  changing the rounding mode flags
+-
+-    /* The assembly below implements the following logic:
+-     if (x < 0)
+-       inc = -0.5f
+-     else
+-       inc = 0.5f
+-     int_val = trunc(x+inc);
+-     err = x - int_val;
+-     if (err == 0.5f)
+-       int_val++;
+-     return int_val;
+-    */
++    /* This implementation warrants some further explanation.
++     *
++     * First, a couple of notes on rounding:
++     * 1) C casts from float/double to integer round towards zero.
++     * 2) Float/double additions are rounded according to the normal rules,
++     *    in other words: on some architectures, it's fixed at compile-time,
++     *    and on others it can be set using fesetround()). The following
++     *    analysis assumes round-to-nearest with ties rounding to even. This
++     *    is a fairly sensible choice, and is the default with ARM VFP.
++     *
++     * What this function wants is round-to-nearest with ties rounding to
++     * +infinity. This isn't an IEEE rounding mode, even if we could guarantee
++     * that all architectures supported fesetround(), which they don't. Instead,
++     * this adds an offset of 2147483648.5 (= 0x80000000.8p0), then casts to
++     * an unsigned int (crucially, all possible inputs are now in a range where
++     * round to zero acts the same as round to -infinity) and then subtracts
++     * 0x80000000 in the integer domain. The 0.5 component of the offset
++     * converts what is effectively a round down into a round to nearest, with
++     * ties rounding up, as desired.
++     *
++     * There is a catch, that because there is a double rounding, there is a
++     * small region where the input falls just *below* a tie, where the addition
++     * of the offset causes a round *up* to an exact integer, due to the finite
++     * level of precision available in floating point. You need to be aware of
++     * this when calling this function, although@present it is not believed
++     * that XBMC ever attempts to round numbers in this window.
++     *
++     * It is worth proving the size of the affected window. Recall that double
++     * precision employs a mantissa of 52 bits.
++     * 1) For all inputs -0.5 <= x <= INT_MAX
++     *    Once the offset is applied, the most significant binary digit in the
++     *    floating-point representation is +2^31.
++     *    At this magnitude, the smallest step representable in double precision
++     *    is 2^31 / 2^52 = 0.000000476837158203125
++     *    So the size of the range which is rounded up due to the addition is
++     *    half the size of this step, or 0.0000002384185791015625
++     *
++     * 2) For all inputs INT_MIN/2 < x < -0.5
++     *    Once the offset is applied, the most significant binary digit in the
++     *    floating-point representation is +2^30.
++     *    At this magnitude, the smallest step representable in double precision
++     *    is 2^30 / 2^52 = 0.0000002384185791015625
++     *    So the size of the range which is rounded up due to the addition is
++     *    half the size of this step, or 0.00000011920928955078125
++     *
++     * 3) For all inputs INT_MIN <= x <= INT_MIN/2
++     *    The representation once the offset is applied has equal or greater
++     *    precision than the input, so the addition does not cause rounding.
++     */
++    return ((unsigned int) (x + 0x80000000.8p0)) - 0x80000000;
+ 
+-    __asm__ __volatile__ (
+-#if defined(__ARM_PCS_VFP)
+-      "fconstd d1,#%G[rnd_val]     \n\t" // Copy round_to_nearest into a working register (d1 = 0.5)
+ #else
+-      "vmov.F64 d1,%[rnd_val]      \n\t"
+-#endif
+-      "fcmpezd %P[value]           \n\t" // Check value against zero (value == 0?)
+-      "fmstat                      \n\t" // Copy the floating-point status flags into the general-purpose status flags
+-      "it mi                       \n\t"
+-      "vnegmi.F64 d1, d1           \n\t" // if N-flag is set, negate round_to_nearest (if (value < 0) d1 = -1 * d1)
+-      "vadd.F64 d1,%P[value],d1    \n\t" // Add round_to_nearest to value, store result in working register (d1 += value)
+-      "vcvt.S32.F64 s3,d1          \n\t" // Truncate(round towards zero) (s3 = (int)d1)
+-      "vmov %[result],s3           \n\t" // Store the integer result in a general-purpose register (result = s3)
+-      "vcvt.F64.S32 d1,s3          \n\t" // Convert back to floating-point (d1 = (double)s3)
+-      "vsub.F64 d1,%P[value],d1    \n\t" // Calculate the error (d1 = value - d1)
+-#if defined(__ARM_PCS_VFP)
+-      "fconstd d2,#%G[rnd_val]     \n\t" // d2 = 0.5;
+-#else
+-      "vmov.F64 d2,%[rnd_val]      \n\t"
+-#endif
+-      "fcmped d1, d2               \n\t" // (d1 == 0.5?)
+-      "fmstat                      \n\t" // Copy the floating-point status flags into the general-purpose status flags
+-      "it eq                       \n\t"
+-      "addeq %[result],#1          \n\t" // (if (d1 == d2) result++;)
+-      : [result] "=r"(i)                                  // Outputs
+-      : [rnd_val] "Dv" (round_to_nearest), [value] "w"(x) // Inputs
+-      : "d1", "d2", "s3"                                  // Clobbers
+-    );
+-
+-#elif defined(__SSE2__)
++    const float round_to_nearest = 0.5f;
++    int i;
++#if defined(__SSE2__)
+     const float round_dn_to_nearest = 0.4999999f;
+     i = (x > 0) ? _mm_cvttsd_si32(_mm_set_sd(x + round_to_nearest)) : _mm_cvttsd_si32(_mm_set_sd(x - round_dn_to_nearest));
+ 
+@@ -150,8 +149,8 @@
+     );
+ 
+ #endif
+-
+     return i;
++#endif
+   }
+ 
+   /*! \brief Truncate to nearest integer.
+@@ -165,20 +164,13 @@
+   {
+     assert(x > static_cast<double>(INT_MIN / 2) - 1.0);
+     assert(x < static_cast<double>(INT_MAX / 2) + 1.0);
+-    int i;
+ 
+ #if defined(DISABLE_MATHUTILS_ASM_TRUNCATE_INT)
+-    return i = (int)x;
+-
+-#elif defined(__arm__)
+-    __asm__ __volatile__ (
+-      "vcvt.S32.F64 %[result],%P[value]   \n\t" // Truncate(round towards zero) and store the result
+-      : [result] "=w"(i)                        // Outputs
+-      : [value] "w"(x)                          // Inputs
+-    );
+-    return i;
++    return x;
+ 
+-#elif defined(TARGET_WINDOWS)
++#else
++    int i;
++#if defined(TARGET_WINDOWS)
+     const float round_towards_m_i = -0.5f;
+     __asm
+     {
+@@ -204,6 +196,7 @@
+     if (x < 0)
+       i = -i;
+     return (i);
++#endif
+   }
+ 
+   inline int64_t abs(int64_t a)
+-- 
+1.9.1
+
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 24/29] xbmc: Add alsa support
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (22 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 23/29] xbmc: Allow compilation with uClibc Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 25/29] xbmc: Add lame support Bernd Kuhls
                   ` (5 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/xbmc/xbmc.mk |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/package/xbmc/xbmc.mk b/package/xbmc/xbmc.mk
index d73815f..5f23c13 100644
--- a/package/xbmc/xbmc.mk
+++ b/package/xbmc/xbmc.mk
@@ -40,7 +40,6 @@ XBMC_CONF_ENV = \
 
 XBMC_CONF_OPT +=  \
 	--with-arch=$(BR2_ARCH) \
-	--disable-alsa \
 	--disable-crystalhd \
 	--disable-debug \
 	--disable-dvdcss \
@@ -73,6 +72,13 @@ ifeq ($(BR2_PACKAGE_DBUS),y)
 XBMC_DEPENDENCIES += dbus
 endif
 
+ifeq ($(BR2_PACKAGE_ALSA_LIB),y)
+XBMC_DEPENDENCIES += alsa-lib
+XBMC_CONF_OPT += --enable-alsa
+else
+XBMC_CONF_OPT += --disable-alsa
+endif
+
 XBMC_CONF_ENV += \
 	CFLAGS="$(TARGET_CFLAGS) $(shell $(PKG_CONFIG_HOST_BINARY) --cflags egl)" \
 	CXXFLAGS="$(TARGET_CXXFLAGS) $(shell $(PKG_CONFIG_HOST_BINARY) --cflags egl)"
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 25/29] xbmc: Add lame support
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (23 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 24/29] xbmc: Add alsa support Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 26/29] xbmc: Fix TexturePacker compile Bernd Kuhls
                   ` (4 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/xbmc/xbmc.mk |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/package/xbmc/xbmc.mk b/package/xbmc/xbmc.mk
index 5f23c13..9035942 100644
--- a/package/xbmc/xbmc.mk
+++ b/package/xbmc/xbmc.mk
@@ -79,6 +79,13 @@ else
 XBMC_CONF_OPT += --disable-alsa
 endif
 
+ifeq ($(BR2_PACKAGE_LAME),y)
+XBMC_DEPENDENCIES += lame
+XBMC_CONF_OPT += --enable-libmp3lame
+else
+XBMC_CONF_OPT += --disable-libmp3lame
+endif
+
 XBMC_CONF_ENV += \
 	CFLAGS="$(TARGET_CFLAGS) $(shell $(PKG_CONFIG_HOST_BINARY) --cflags egl)" \
 	CXXFLAGS="$(TARGET_CXXFLAGS) $(shell $(PKG_CONFIG_HOST_BINARY) --cflags egl)"
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 26/29] xbmc: Fix TexturePacker compile
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (24 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 25/29] xbmc: Add lame support Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 27/29] xbmc: Add X.org/OpenGL support Bernd Kuhls
                   ` (3 subsequent siblings)
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

Patch description:

use_texturepacker_native=yes

is needed because we obviously need a native-compiled binary, but the xbmc
build system does enable this variable only for darwin, android and
raspberry-pi targets.

USE_TEXTUREPACKER_NATIVE_ROOT="$(HOST_DIR)/usr"

is also needed because
USE_TEXTUREPACKER_NATIVE_ROOT="$TEXTUREPACKER_NATIVE_ROOT"
is only executed for raspberry-pi by xbmc/configure and only
USE_TEXTUREPACKER_NATIVE_ROOT is used by tools/TexturePacker/Makefile.in.

To sum up, building for raspberry-pi and other archs works out-of-the-box,
compiling for an Intel target, for example, fails:

In file included from SDL_anigif.cpp:23:0:
SDL_anigif.h:24:21: fatal error: SDL/SDL.h: No such file or directory
compilation terminated.
XBMCTex.cpp:34:21: fatal error: SDL/SDL.h: No such file or directory

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/xbmc/xbmc.mk |    2 ++
 1 file changed, 2 insertions(+)

diff --git a/package/xbmc/xbmc.mk b/package/xbmc/xbmc.mk
index 9035942..cbc51f4 100644
--- a/package/xbmc/xbmc.mk
+++ b/package/xbmc/xbmc.mk
@@ -36,6 +36,8 @@ XBMC_CONF_ENV = \
 	PYTHON_CPPFLAGS="-I$(STAGING_DIR)/usr/include/python$(PYTHON_VERSION_MAJOR)" \
 	PYTHON_SITE_PKG="$(STAGING_DIR)/usr/lib/python$(PYTHON_VERSION_MAJOR)/site-packages" \
 	PYTHON_NOVERSIONCHECK="no-check" \
+	use_texturepacker_native=yes \
+	USE_TEXTUREPACKER_NATIVE_ROOT="$(HOST_DIR)/usr" \
 	TEXTUREPACKER_NATIVE_ROOT="$(HOST_DIR)/usr"
 
 XBMC_CONF_OPT +=  \
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 27/29] xbmc: Add X.org/OpenGL support
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (25 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 26/29] xbmc: Fix TexturePacker compile Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:50   ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 28/29] xbmc: Add option for Goom screensaver Bernd Kuhls
                   ` (2 subsequent siblings)
  29 siblings, 1 reply; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot

- on ARM xbmc only supports EGL/GLES
- rsxs gets enabled when OpenGL is available,
  therefore the compile fix, courtesy of
  https://github.com/OpenELEC/OpenELEC.tv/blob/master/packages/mediacenter/xbmc/package.mk#L109
  is part of this patch

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/xbmc/Config.in |   32 +++++++++++++++++++++++++++++---
 package/xbmc/xbmc.mk   |   25 +++++++++++++++++++------
 2 files changed, 48 insertions(+), 9 deletions(-)

diff --git a/package/xbmc/Config.in b/package/xbmc/Config.in
index 05ceea4..8119688 100644
--- a/package/xbmc/Config.in
+++ b/package/xbmc/Config.in
@@ -2,9 +2,27 @@ comment "xbmc needs a toolchain w/ C++, IPv6, largefile, threads, wchar"
 	depends on BR2_arm || BR2_i386 || BR2_x86_64
 	depends on !BR2_INET_IPV6 || !BR2_INSTALL_LIBSTDCPP || !BR2_LARGEFILE || !BR2_TOOLCHAIN_HAS_THREADS || !BR2_USE_WCHAR
 
+config BR2_PACKAGE_XBMC_EGL_GLES
+	bool
+	default y
+	depends on BR2_PACKAGE_HAS_LIBEGL
+	depends on BR2_PACKAGE_HAS_LIBGLES
+	depends on !BR2_PACKAGE_XBMC_GL # prefer GL if available
+
+config BR2_PACKAGE_XBMC_GL
+	bool
+	default y
+	depends on BR2_PACKAGE_XORG7
+	depends on BR2_PACKAGE_HAS_LIBGL
+	depends on !BR2_arm # xbmc needs egl/gles on arm
+
+comment "xbmc needs an OpenGL backend, or an openGL ES and EGL backend"
+	depends on BR2_i386 || BR2_x86_64
+	depends on !BR2_PACKAGE_XBMC_GL && !BR2_PACKAGE_XBMC_EGL_GLES
+
 comment "xbmc requires an OpenGL ES and EGL backend"
-	depends on BR2_arm || BR2_i386 || BR2_x86_64
-	depends on !BR2_PACKAGE_HAS_LIBEGL || !BR2_PACKAGE_HAS_LIBGLES
+	depends on BR2_arm
+	depends on !BR2_PACKAGE_XBMC_EGL_GLES
 
 menuconfig BR2_PACKAGE_XBMC
 	bool "xbmc"
@@ -22,6 +40,8 @@ menuconfig BR2_PACKAGE_XBMC
 	select BR2_PACKAGE_LIBCDIO
 	select BR2_PACKAGE_LIBCURL
 	select BR2_PACKAGE_LIBFRIBIDI
+	select BR2_PACKAGE_LIBGLEW if BR2_PACKAGE_XBMC_GL
+	select BR2_PACKAGE_LIBGLU if BR2_PACKAGE_XBMC_GL
 	select BR2_PACKAGE_LIBGCRYPT
 	select BR2_PACKAGE_LIBID3TAG
 	select BR2_PACKAGE_LIBMAD
@@ -50,17 +70,23 @@ menuconfig BR2_PACKAGE_XBMC
 	select BR2_PACKAGE_PYTHON_UNICODEDATA
 	select BR2_PACKAGE_PYTHON_ZLIB
 	select BR2_PACKAGE_READLINE
+	select BR2_PACKAGE_SDL if BR2_PACKAGE_XBMC_GL
+	select BR2_PACKAGE_SDL_X11 if BR2_PACKAGE_XBMC_GL
+	select BR2_PACKAGE_SDL_IMAGE if BR2_PACKAGE_XBMC_GL
 	select BR2_PACKAGE_SQLITE
 	select BR2_PACKAGE_TAGLIB
 	select BR2_PACKAGE_TIFF
 	select BR2_PACKAGE_TINYXML
+	select BR2_PACKAGE_XLIB_XMU if BR2_PACKAGE_XBMC_GL # needed by rsxs screensaver
+	select BR2_PACKAGE_XLIB_XRANDR if BR2_PACKAGE_XBMC_GL
+	select BR2_PACKAGE_XLIB_XT if BR2_PACKAGE_XBMC_GL # needed by rsxs screensaver
 	select BR2_PACKAGE_YAJL
 	select BR2_PACKAGE_ZLIB
 	depends on BR2_INET_IPV6
 	depends on BR2_INSTALL_LIBSTDCPP
 	depends on BR2_LARGEFILE
 	depends on BR2_TOOLCHAIN_HAS_THREADS
-	depends on BR2_PACKAGE_HAS_LIBEGL && BR2_PACKAGE_HAS_LIBGLES
+	depends on BR2_PACKAGE_XBMC_EGL_GLES || BR2_PACKAGE_XBMC_GL
 	depends on BR2_USE_MMU # python
 	depends on BR2_USE_WCHAR
 	depends on BR2_arm || BR2_i386 || BR2_x86_64
diff --git a/package/xbmc/xbmc.mk b/package/xbmc/xbmc.mk
index cbc51f4..b713b5c 100644
--- a/package/xbmc/xbmc.mk
+++ b/package/xbmc/xbmc.mk
@@ -16,7 +16,7 @@ XBMC_LICENSE_FILES = LICENSE.GPL
 # http://wiki.xbmc.org/index.php?title=TexturePacker
 XBMC_DEPENDENCIES = host-gawk host-gettext host-gperf host-infozip host-lzo host-sdl_image host-swig
 XBMC_DEPENDENCIES += boost bzip2 expat flac fontconfig freetype jasper jpeg \
-	libass libcdio libcurl libegl libfribidi libgcrypt libgles libmad libmodplug libmpeg2 \
+	libass libcdio libcurl libfribidi libgcrypt libmad libmodplug libmpeg2 \
 	libogg libplist libpng libsamplerate libungif libvorbis libxml2 libxslt lzo ncurses \
 	openssl pcre python readline sqlite taglib tiff tinyxml yajl zlib
 
@@ -45,7 +45,6 @@ XBMC_CONF_OPT +=  \
 	--disable-crystalhd \
 	--disable-debug \
 	--disable-dvdcss \
-	--disable-gl \
 	--disable-hal \
 	--disable-joystick \
 	--disable-mysql \
@@ -53,14 +52,10 @@ XBMC_CONF_OPT +=  \
 	--disable-optical-drive \
 	--disable-projectm \
 	--disable-pulse \
-	--disable-sdl \
 	--disable-ssh \
 	--disable-vaapi \
 	--disable-vdpau \
 	--disable-vtbdecoder \
-	--disable-x11 \
-	--disable-xrandr \
-	--enable-gles \
 	--enable-optimizations
 
 ifeq ($(BR2_PACKAGE_RPI_USERLAND),y)
@@ -88,9 +83,27 @@ else
 XBMC_CONF_OPT += --disable-libmp3lame
 endif
 
+# quote from xbmc/configure.in: "GLES overwrites GL if both set to yes."
+# we choose the opposite because opengl offers more features, like libva support
+ifeq ($(BR2_PACKAGE_XBMC_GL),y)
+XBMC_DEPENDENCIES += libglew libglu libgl sdl_image xlib_libX11 xlib_libXext \
+	xlib_libXmu xlib_libXrandr xlib_libXt
+XBMC_CONF_OPT += --enable-gl --enable-sdl --enable-x11 --enable-xrandr--disable-gles
+# fix rsxs compile
+XBMC_CONF_ENV += jm_cv_func_gettimeofday_clobber=no
+XBMC_CONF_OPT += --enable-rsxs
+else
+XBMC_CONF_OPT += --disable-gl --disable-rsxs --disable-sdl --disable-x11 --disable-xrandr
+ifeq ($(BR2_PACKAGE_XBMC_EGL_GLES),y)
+XBMC_DEPENDENCIES += libegl libgles
+XBMC_CONF_OPT += --enable-gles
 XBMC_CONF_ENV += \
 	CFLAGS="$(TARGET_CFLAGS) $(shell $(PKG_CONFIG_HOST_BINARY) --cflags egl)" \
 	CXXFLAGS="$(TARGET_CXXFLAGS) $(shell $(PKG_CONFIG_HOST_BINARY) --cflags egl)"
+else
+XBMC_CONF_OPT += --disable-gles
+endif
+endif
 
 ifeq ($(BR2_PACKAGE_XBMC_LIBUSB),y)
 XBMC_DEPENDENCIES += libusb-compat
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 28/29] xbmc: Add option for Goom screensaver
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (26 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 27/29] xbmc: Add X.org/OpenGL support Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 29/29] xbmc: Add VA-API support Bernd Kuhls
  2014-05-24 22:25 ` [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Yann E. MORIN
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/xbmc/Config.in |    9 +++++++++
 package/xbmc/xbmc.mk   |    6 ++++++
 2 files changed, 15 insertions(+)

diff --git a/package/xbmc/Config.in b/package/xbmc/Config.in
index 8119688..675f235 100644
--- a/package/xbmc/Config.in
+++ b/package/xbmc/Config.in
@@ -194,6 +194,15 @@ config BR2_PACKAGE_XBMC_WAVPACK
 	  Enable WAV input support.
 	  Select this if you want to play back WV files.
 
+config BR2_PACKAGE_XBMC_GOOM
+	bool "goom screensaver"
+	depends on BR2_PACKAGE_XBMC_GL
+	help
+	  Enable goom screensaver
+
+comment "goom needs an OpenGL backend"
+	depends on !BR2_PACKAGE_XBMC_GL
+
 comment "XBMC addons"
 
 source "package/xbmc-addon-xvdr/Config.in"
diff --git a/package/xbmc/xbmc.mk b/package/xbmc/xbmc.mk
index b713b5c..505c46f 100644
--- a/package/xbmc/xbmc.mk
+++ b/package/xbmc/xbmc.mk
@@ -176,6 +176,12 @@ ifeq ($(BR2_PACKAGE_XBMC_LIBTHEORA),y)
 XBMC_DEPENDENCIES += libtheora
 endif
 
+ifeq ($(BR2_PACKAGE_XBMC_GOOM),y)
+XBMC_CONF_OPT += --enable-goom
+else
+XBMC_CONF_OPT += --disable-goom
+endif
+
 # Add HOST_DIR to PATH for codegenerator.mk to find swig
 define XBMC_BOOTSTRAP
 	cd $(@D) && PATH=$(BR_PATH) ./bootstrap
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 29/29] xbmc: Add VA-API support
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (27 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 28/29] xbmc: Add option for Goom screensaver Bernd Kuhls
@ 2014-05-20 20:41 ` Bernd Kuhls
  2014-05-24 22:25 ` [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Yann E. MORIN
  29 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:41 UTC (permalink / raw)
  To: buildroot


Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
---
 package/xbmc/xbmc.mk |    9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/package/xbmc/xbmc.mk b/package/xbmc/xbmc.mk
index 505c46f..a021c89 100644
--- a/package/xbmc/xbmc.mk
+++ b/package/xbmc/xbmc.mk
@@ -53,7 +53,6 @@ XBMC_CONF_OPT +=  \
 	--disable-projectm \
 	--disable-pulse \
 	--disable-ssh \
-	--disable-vaapi \
 	--disable-vdpau \
 	--disable-vtbdecoder \
 	--enable-optimizations
@@ -105,6 +104,14 @@ XBMC_CONF_OPT += --disable-gles
 endif
 endif
 
+# xbmc needs libva & libva-glx
+ifeq ($(BR2_PACKAGE_LIBVA)$(BR2_PACKAGE_MESA3D_DRI_DRIVER),yy)
+XBMC_DEPENDENCIES += mesa3d libva
+XBMC_CONF_OPT += --enable-vaapi
+else
+XBMC_CONF_OPT += --disable-vaapi
+endif
+
 ifeq ($(BR2_PACKAGE_XBMC_LIBUSB),y)
 XBMC_DEPENDENCIES += libusb-compat
 XBMC_CONF_OPT += --enable-libusb
-- 
1.7.10.4

^ permalink raw reply related	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 27/29] xbmc: Add X.org/OpenGL support
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 27/29] xbmc: Add X.org/OpenGL support Bernd Kuhls
@ 2014-05-20 20:50   ` Bernd Kuhls
  0 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-20 20:50 UTC (permalink / raw)
  To: buildroot

Bernd Kuhls <bernd.kuhls@t-online.de> wrote in
news:1400618488-6995-28-git-send-email-bernd.kuhls at t-online.de: 

> - rsxs gets enabled when OpenGL is available,
>   therefore the compile fix, courtesy of
>   https://github.com/OpenELEC/OpenELEC.tv/blob/master/packages/mediacente
>   r/xbmc/package.mk#L109 is part of this patch

Hi,

I forgot the mention the rsxs patch in the cover letter.

Regards, Bernd

^ permalink raw reply	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 01/29] xproto_dri3proto: New package
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 01/29] xproto_dri3proto: New package Bernd Kuhls
@ 2014-05-24 18:23   ` Yann E. MORIN
  2014-05-24 20:02     ` Bernd Kuhls
  0 siblings, 1 reply; 39+ messages in thread
From: Yann E. MORIN @ 2014-05-24 18:23 UTC (permalink / raw)
  To: buildroot

Bernd, All,

On 2014-05-20 22:41 +0200, Bernd Kuhls spake thusly:
> 
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>

It would have been nice to state in both the commit log and the .mk why
this package should not install to target: it only installs headers
files.

Otherwise:
Acked-by: "Yann E. MORIN" <yann.morin.1998@free.fr>

> ---
>  package/x11r7/Config.in                            |    1 +
>  package/x11r7/xproto_dri3proto/Config.in           |    4 ++++
>  package/x11r7/xproto_dri3proto/xproto_dri3proto.mk |   15 +++++++++++++++
>  3 files changed, 20 insertions(+)
>  create mode 100644 package/x11r7/xproto_dri3proto/Config.in
>  create mode 100644 package/x11r7/xproto_dri3proto/xproto_dri3proto.mk
> 
> diff --git a/package/x11r7/Config.in b/package/x11r7/Config.in
> index 8685ca1..087b816 100644
> --- a/package/x11r7/Config.in
> +++ b/package/x11r7/Config.in
> @@ -227,6 +227,7 @@ if BR2_PACKAGE_XORG7
>  		source package/x11r7/xproto_damageproto/Config.in
>  		source package/x11r7/xproto_dmxproto/Config.in
>  		source package/x11r7/xproto_dri2proto/Config.in
> +		source package/x11r7/xproto_dri3proto/Config.in
>  		source package/x11r7/xproto_fixesproto/Config.in
>  		source package/x11r7/xproto_fontcacheproto/Config.in
>  		source package/x11r7/xproto_fontsproto/Config.in
> diff --git a/package/x11r7/xproto_dri3proto/Config.in b/package/x11r7/xproto_dri3proto/Config.in
> new file mode 100644
> index 0000000..eead7d4
> --- /dev/null
> +++ b/package/x11r7/xproto_dri3proto/Config.in
> @@ -0,0 +1,4 @@
> +config BR2_PACKAGE_XPROTO_DRI3PROTO
> +	bool "dri3proto"
> +	help
> +	  X.Org DRI3 protocol headers
> diff --git a/package/x11r7/xproto_dri3proto/xproto_dri3proto.mk b/package/x11r7/xproto_dri3proto/xproto_dri3proto.mk
> new file mode 100644
> index 0000000..00f5b57
> --- /dev/null
> +++ b/package/x11r7/xproto_dri3proto/xproto_dri3proto.mk
> @@ -0,0 +1,15 @@
> +################################################################################
> +#
> +# xproto_dri3proto
> +#
> +################################################################################
> +
> +XPROTO_DRI3PROTO_VERSION = 1.0
> +XPROTO_DRI3PROTO_SOURCE = dri3proto-$(XPROTO_DRI3PROTO_VERSION).tar.bz2
> +XPROTO_DRI3PROTO_SITE = http://xorg.freedesktop.org/releases/individual/proto
> +XPROTO_DRI3PROTO_LICENSE = MIT
> +XPROTO_DRI3PROTO_LICENSE_FILES = COPYING
> +XPROTO_DRI3PROTO_INSTALL_STAGING = YES
> +XPROTO_DRI3PROTO_INSTALL_TARGET = NO
> +
> +$(eval $(autotools-package))
> -- 
> 1.7.10.4
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 08/29] libva: new package
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 08/29] libva: new package Bernd Kuhls
@ 2014-05-24 18:28   ` Yann E. MORIN
  0 siblings, 0 replies; 39+ messages in thread
From: Yann E. MORIN @ 2014-05-24 18:28 UTC (permalink / raw)
  To: buildroot

Bernd, All,

On 2014-05-20 22:41 +0200, Bernd Kuhls spake thusly:
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
[--SNIP--]
> diff --git a/package/libva/libva.mk b/package/libva/libva.mk
> new file mode 100644
> index 0000000..550fa3f
> --- /dev/null
> +++ b/package/libva/libva.mk
> @@ -0,0 +1,57 @@
> +################################################################################
> +#
> +# libva
> +#
> +################################################################################
> +
> +LIBVA_VERSION = 1.3.1
> +LIBVA_SOURCE = libva-$(LIBVA_VERSION).tar.bz2
> +LIBVA_SITE = http://www.freedesktop.org/software/vaapi/releases/libva
> +LIBVA_LICENSE = MIT
> +LIBVA_LICENSE_FILES = COPYING
> +LIBVA_AUTORECONF = YES
> +LIBVA_INSTALL_STAGING = YES
> +LIBVA_DEPENDENCIES = host-pkgconf libdrm
> +
> +# libdrm is a hard-dependency
> +LIBVA_CONF_OPT = \
> +	--enable-drm \
> +	--disable-dummy-driver \
> +	--with-drivers-path="/usr/lib/va"
> +
> +ifeq ($(BR2_PACKAGE_MESA3D_DRI_DRIVER),y)
> +LIBVA_DEPENDENCIES += mesa3d
> +LIBVA_CONF_OPT += --enable-glx
> +else
> +LIBVA_CONF_OPT += --disable-glx
> +endif
> +
> +ifeq ($(BR2_PACKAGE_XORG7),y)
> +LIBVA_DEPENDENCIES += xlib_libX11 xlib_libXext xlib_libXfixes
> +LIBVA_CONF_OPT += --enable-x11
> +else
> +LIBVA_CONF_OPT += --disable-x11
> +endif
> +
> +ifeq ($(BR2_PACKAGE_WAYLAND),y)
> +LIBVA_DEPENDENCIES += wayland
> +LIBVA_CONF_OPT += --enable-wayland
> +else
> +LIBVA_CONF_OPT += --disable-wayland
> +endif
> +
> +ifeq ($(BR2_PACKAGE_HAS_LIBEGL),y)
> +LIBVA_DEPENDENCIES += libegl
> +LIBVA_CONF_OPT += --enable-egl
> +else
> +LIBVA_CONF_OPT += --disable-egl
> +endif
> +
> +# Autoreconf requires an m4 directory to exist
> +define LIBVA_PATCH_M4
> +	mkdir -p $(@D)/m4
> +endef
> +
> +LIBVA_POST_PATCH_HOOKS += LIBVA_PATCH_M4

No empty line between the definition of the hook, and the assignment.

Otherwise, looks good. I reserve my review for after I have tested it.

Regards,
Yann E. MORIN.

> +
> +$(eval $(autotools-package))
> -- 
> 1.7.10.4
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 11/29] libglu: new package
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 11/29] libglu: new package Bernd Kuhls
@ 2014-05-24 18:31   ` Yann E. MORIN
  2014-05-24 20:07     ` Bernd Kuhls
  0 siblings, 1 reply; 39+ messages in thread
From: Yann E. MORIN @ 2014-05-24 18:31 UTC (permalink / raw)
  To: buildroot

Bernd, All,

On 2014-05-20 22:41 +0200, Bernd Kuhls spake thusly:
> Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
[--SNIP--]
> diff --git a/package/libglu/libglu.mk b/package/libglu/libglu.mk
> new file mode 100644
> index 0000000..f4c47a0
> --- /dev/null
> +++ b/package/libglu/libglu.mk
> @@ -0,0 +1,16 @@
> +################################################################################
> +#
> +# libglu
> +#
> +################################################################################
> +
> +LIBGLU_VERSION = 9.0.0
> +LIBGLU_SITE = http://cgit.freedesktop.org/mesa/glu/snapshot
> +LIBGLU_SOURCE = glu-$(LIBGLU_VERSION).tar.gz
> +LIBGLU_LICENSE = SGI-B-2.0
> +LIBGLU_LICENSE_FILES = include/GL/glu.h
> +LIBGLU_INSTALL_STAGING = YES
> +LIBGLU_AUTORECONF = YES

Please state why autoreconf is needed.

Regards,
Yann E. MORIN.

> +LIBGLU_DEPENDENCIES = libgl
> +
> +$(eval $(autotools-package))
> -- 
> 1.7.10.4
> 
> _______________________________________________
> buildroot mailing list
> buildroot at busybox.net
> http://lists.busybox.net/mailman/listinfo/buildroot

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 01/29] xproto_dri3proto: New package
  2014-05-24 18:23   ` Yann E. MORIN
@ 2014-05-24 20:02     ` Bernd Kuhls
  0 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-24 20:02 UTC (permalink / raw)
  To: buildroot

"Yann E. MORIN" <yann.morin.1998@free.fr> wrote in
news:20140524182356.GC3491 at free.fr: 

> It would have been nice to state in both the commit log and the .mk why
> this package should not install to target: it only installs headers
> files.

Hi,

v10 will contain this note.

Regards, Bernd

^ permalink raw reply	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 11/29] libglu: new package
  2014-05-24 18:31   ` Yann E. MORIN
@ 2014-05-24 20:07     ` Bernd Kuhls
  0 siblings, 0 replies; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-24 20:07 UTC (permalink / raw)
  To: buildroot

"Yann E. MORIN" <yann.morin.1998@free.fr> wrote in
news:20140524183119.GE3491 at free.fr: 

>> +LIBGLU_AUTORECONF = YES
> 
> Please state why autoreconf is needed.

Hi,

added to v10:

# upstream does not distribute a autoconf?ed configure script

Regards, Bernd

^ permalink raw reply	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2
  2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
                   ` (28 preceding siblings ...)
  2014-05-20 20:41 ` [Buildroot] [PATCH v9 29/29] xbmc: Add VA-API support Bernd Kuhls
@ 2014-05-24 22:25 ` Yann E. MORIN
  2014-05-25 20:29   ` Bernd Kuhls
  29 siblings, 1 reply; 39+ messages in thread
From: Yann E. MORIN @ 2014-05-24 22:25 UTC (permalink / raw)
  To: buildroot

Bernd, All,

On 2014-05-20 22:40 +0200, Bernd Kuhls spake thusly:
> the patch series combines my latest patches to bump xbmc.

OK, I've teted this on the RPi tonight, and it is indeed quite
impressive! I'm pretty happy with it! :-)

We've discussed this at length with MAxime on IRC tonight, and we came
to the following conclusions.

First, we want to bump it as soon as possible, after the next merge
window opens (due by the end of the month, maybe next week-end?). This
will ensure we continue to have a working XBMC on the RPI (the currently
only really supported platform for XBMC in Buildroot.)

After it is bumped, we can add the mising pieces needed to make it work
on x86.

Therefore, we have the following steps to follow:

First, it needs a few other patches to be applied first:
    http://patchwork.ozlabs.org/patch/352141/
        package/rpi-userland: bump version
    http://patchwork.ozlabs.org/patch/352146/
        xbmc: Add missing unicode properties supports

Those have already been posted, so should trickle down in the tree soon.

Then, we need to add the possibility to install the gconv libraries when
using glibc. Without the gconv libraries, there are no label on the
menus. This is a new strict requirement for Gotham, which was not needed
for Frodo.

This will be a bit challenging, so I have a simple patch I'm working on
that will enable thos gconv libs to be installed. If there's something
to be done for iconv, it can be done later on, when needed.

Then, we can apply the few preparatory patches (although strictly
speaking, only one is really needed for the actual bump, the rest being
to add support for x86, which is new stuff.)

Then we can bump it. Tis is not as simple as changing the version, as
XBMC no behaves differently when shutting down. I have to look at what
changed, but our br-xbmc wrapper script no longer works when shutting
down, XBMC just restarts, and the machine never shuts down... (I have an
idea where to look at, so it's good! :-) )

Then we can add new packages, and fix/enhance the existing packages.
Your expertise on mesa3d and the other X11-related packages will be very
much appreciated in this step.

Going this route means the easy patches will be at the beginning, and
so can be applied more easily, and thus the series should shrink, and be
more manageable.

If you don't mind, I'll wait for your v10. I'll start from there,
re-order the series as per the above, add the missing gconv stuff in it,
and respin it, so you can get it back.

Does that sound like an OK plan for you?

Again, thank you for working so hard on this series! :-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2
  2014-05-24 22:25 ` [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Yann E. MORIN
@ 2014-05-25 20:29   ` Bernd Kuhls
  2014-05-25 20:48     ` Yann E. MORIN
  0 siblings, 1 reply; 39+ messages in thread
From: Bernd Kuhls @ 2014-05-25 20:29 UTC (permalink / raw)
  To: buildroot

"Yann E. MORIN" <yann.morin.1998@free.fr> wrote in 
news:20140524222515.GF3491 at free.fr:

> If you don't mind, I'll wait for your v10. I'll start from there,
> re-order the series as per the above, add the missing gconv stuff in it,
> and respin it, so you can get it back.
> 
> Does that sound like an OK plan for you?

Hi,

yes, this sounds good. I just sent v10 of my patch series.

Regards, Bernd

^ permalink raw reply	[flat|nested] 39+ messages in thread

* [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2
  2014-05-25 20:29   ` Bernd Kuhls
@ 2014-05-25 20:48     ` Yann E. MORIN
  0 siblings, 0 replies; 39+ messages in thread
From: Yann E. MORIN @ 2014-05-25 20:48 UTC (permalink / raw)
  To: buildroot

Bernd, All,

On 2014-05-25 22:29 +0200, Bernd Kuhls spake thusly:
> "Yann E. MORIN" <yann.morin.1998@free.fr> wrote in 
> news:20140524222515.GF3491 at free.fr:
> 
> > If you don't mind, I'll wait for your v10. I'll start from there,
> > re-order the series as per the above, add the missing gconv stuff in it,
> > and respin it, so you can get it back.
> > 
> > Does that sound like an OK plan for you?
> 
> Hi,
> 
> yes, this sounds good. I just sent v10 of my patch series.

OK, great! I'm starting working on the reordering of the series, plus
minor changes I have spotted, and will re-spin the series later.

Thank you! :-)

Regards,
Yann E. MORIN.

-- 
.-----------------.--------------------.------------------.--------------------.
|  Yann E. MORIN  | Real-Time Embedded | /"\ ASCII RIBBON | Erics' conspiracy: |
| +33 662 376 056 | Software  Designer | \ / CAMPAIGN     |  ___               |
| +33 223 225 172 `------------.-------:  X  AGAINST      |  \e/  There is no  |
| http://ymorin.is-a-geek.org/ | _/*\_ | / \ HTML MAIL    |   v   conspiracy.  |
'------------------------------^-------^------------------^--------------------'

^ permalink raw reply	[flat|nested] 39+ messages in thread

end of thread, other threads:[~2014-05-25 20:48 UTC | newest]

Thread overview: 39+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-05-20 20:40 [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 01/29] xproto_dri3proto: New package Bernd Kuhls
2014-05-24 18:23   ` Yann E. MORIN
2014-05-24 20:02     ` Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 02/29] mesa3d: Bump version to 10.2-rc3, fix xa build Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 03/29] mesa3d: Depend on xorg meta package instead of xserver_xorg-server Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 04/29] mesa3d: add dependency xproto_presentproto Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 05/29] mesa3d: Remove dependency for the libxml2 module of host-python Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 06/29] mesa3d: Add dri3 support Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 07/29] mesa3d: dri2 does not need udev support Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 08/29] libva: new package Bernd Kuhls
2014-05-24 18:28   ` Yann E. MORIN
2014-05-20 20:41 ` [Buildroot] [PATCH v9 09/29] libva-intel-driver: " Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 10/29] ffmpeg: Add libva support Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 11/29] libglu: new package Bernd Kuhls
2014-05-24 18:31   ` Yann E. MORIN
2014-05-24 20:07     ` Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 12/29] libglew: " Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 13/29] sdl: Add new dependency libglu for opengl support Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 14/29] xdriver_xf86-video-intel: Bump version to 2.99.911 Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 15/29] xbmc - prepare for 13.x-Gotham: Add host-gettext dependency Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 16/29] xbmc - prepare for 13.x-Gotham: Add host-nasm dependency Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 17/29] xbmc - prepare for 13.x-Gotham: Add host-yasm dependency for MMX/64bit archs Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 18/29] xbmc - prepare for 13.x-Gotham: Add missing egl-related cflags Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 19/29] xbmc: bump version to 13.1 Beta2 Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 20/29] xbmc-pvr-addons: Version bump to xbmc Gotham-compatible addon Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 21/29] xbmc-addon-xvdr: " Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 22/29] xbmc: hdmi cec supports needs udev for device scanning Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 23/29] xbmc: Allow compilation with uClibc Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 24/29] xbmc: Add alsa support Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 25/29] xbmc: Add lame support Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 26/29] xbmc: Fix TexturePacker compile Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 27/29] xbmc: Add X.org/OpenGL support Bernd Kuhls
2014-05-20 20:50   ` Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 28/29] xbmc: Add option for Goom screensaver Bernd Kuhls
2014-05-20 20:41 ` [Buildroot] [PATCH v9 29/29] xbmc: Add VA-API support Bernd Kuhls
2014-05-24 22:25 ` [Buildroot] [PATCH v9 00/29] xbmc: bump version to 13.1 Beta2 Yann E. MORIN
2014-05-25 20:29   ` Bernd Kuhls
2014-05-25 20:48     ` Yann E. MORIN

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox