Skip to contentSkip to conversation

libosmesa: New package

PATCH New André Hentschel 2 participants 3 messages Sep 30, 2015

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libosmesa: New package

---
 package/Config.in                |  1 +
 package/libosmesa/Config.in      | 11 +++++++++++
 package/libosmesa/libosmesa.hash |  2 ++
 package/libosmesa/libosmesa.mk   | 30 ++++++++++++++++++++++++++++++
 package/mesa3d/mesa3d.mk         |  2 +-
 5 files changed, 45 insertions(+), 1 deletion(-)
 create mode 100644 package/libosmesa/Config.in
 create mode 100644 package/libosmesa/libosmesa.hash
 create mode 100644 package/libosmesa/libosmesa.mk
package/Config.in +1 -0
index 0e0c5cd..e53d278 100644
@@ -827,6 +827,7 @@ menu "Graphics"
 	source "package/libgtk2/Config.in"
 	source "package/libgtk3/Config.in"
 	source "package/libmng/Config.in"
+	source "package/libosmesa/Config.in"
 	source "package/libpng/Config.in"
 	source "package/libqrencode/Config.in"
 	source "package/libraw/Config.in"
package/libosmesa/Config.in new file +11 -0
new file mode 100644
index 0000000..9d08933
@@ -0,0 +1,11 @@
+config BR2_PACKAGE_LIBOSMESA
+	bool "libosmesa"
+	depends on BR2_INSTALL_LIBSTDCPP
+	depends on BR2_TOOLCHAIN_HAS_THREADS_NPTL
+	help
+	  The OSMesa API provides functions for making off-screen renderings.
+
+	  http://mesa3d.org
+
+comment "libosmesa needs a toolchain w/ C++, NPTL"
+	depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS_NPTL
package/libosmesa/libosmesa.hash new file +2 -0
new file mode 100644
index 0000000..0501314
@@ -0,0 +1,2 @@
+# From http://lists.freedesktop.org/archives/mesa-announce/2015-September/000175.html
+sha256	e36ee5ceeadb3966fb5ce5b4cf18322dbb76a4f075558ae49c3bba94f57d58fd	mesa-10.6.8.tar.xz
package/libosmesa/libosmesa.mk new file +30 -0
new file mode 100644
index 0000000..f70fd2a
@@ -0,0 +1,30 @@
+################################################################################
+#
+# libosmesa
+#
+################################################################################
+
+# When updating the version, please also update mesa3d
+LIBOSMESA_VERSION = 10.6.8
+LIBOSMESA_SOURCE = mesa-$(LIBOSMESA_VERSION).tar.xz
+LIBOSMESA_SITE = ftp://ftp.freedesktop.org/pub/mesa/$(LIBOSMESA_VERSION)
+LIBOSMESA_LICENSE = MIT, SGI, Khronos
+LIBOSMESA_LICENSE_FILES = docs/license.html
+LIBOSMESA_AUTORECONF = YES
+LIBOSMESA_INSTALL_STAGING = YES
+LIBOSMESA_DEPENDENCIES = host-bison host-flex
+
+#--without-dri-drivers
+LIBOSMESA_CONF_OPTS += \
+	--enable-osmesa \
+	--disable-dri \
+	--disable-dri3 \
+	--disable-driglx-direct \
+	--disable-egl \
+	--disable-gles1 \
+	--disable-gles2 \
+	--with-dri-drivers="" \
+	--with-gallium-drivers=""
+
+
+$(eval $(autotools-package))
package/mesa3d/mesa3d.mk +1 -1
index f7feb0f..3e30451 100644
@@ -4,7 +4,7 @@
 #
 ################################################################################
 
-# When updating the version, please also update mesa3d-headers
+# When updating the version, please also update mesa3d-headers and libosmesa
 MESA3D_VERSION = 10.6.8
 MESA3D_SOURCE = mesa-$(MESA3D_VERSION).tar.xz
 MESA3D_SITE = ftp://ftp.freedesktop.org/pub/mesa/$(MESA3D_VERSION)
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/1 libosmesa: New package

Dear Andr? Hentschel,

Quoted 14 lines · Andr? Hentschel
package/libosmesa/libosmesa.hash new file +2 -0
new file mode 100644
index 0000000..0501314
@@ -0,0 +1,2 @@
+# From http://lists.freedesktop.org/archives/mesa-announce/2015-September/000175.html
+sha256	e36ee5ceeadb3966fb5ce5b4cf18322dbb76a4f075558ae49c3bba94f57d58fd	mesa-10.6.8.tar.xz
package/libosmesa/libosmesa.mk new file +0 -0
new file mode 100644
index 0000000..f70fd2a

package/libosmesa/libosmesa.mk line 10

Quoted 10 lines
package/libosmesa/libosmesa.mk new file +10 -0
@@ -0,0 +1,30 @@
+################################################################################
+#
+# libosmesa
+#
+################################################################################
+
+# When updating the version, please also update mesa3d
+LIBOSMESA_VERSION = 10.6.8
+LIBOSMESA_SOURCE = mesa-$(LIBOSMESA_VERSION).tar.xz
+LIBOSMESA_SITE = ftp://ftp.freedesktop.org/pub/mesa/$(LIBOSMESA_VERSION)

Why are you creating a new package, instead of simply adding a new option to the existing mesa3d package?

Best regards,

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
#2 lore raw

PATCH 1/1 libosmesa: New package

Am 30.09.2015 um 23:37 schrieb Thomas Petazzoni:

Quoted 23 lines

Dear Andr? Hentschel,

Quoted 19 lines · Andr? Hentschel
package/libosmesa/libosmesa.hash new file +2 -0
new file mode 100644
index 0000000..0501314
@@ -0,0 +1,2 @@
+# From http://lists.freedesktop.org/archives/mesa-announce/2015-September/000175.html
+sha256	e36ee5ceeadb3966fb5ce5b4cf18322dbb76a4f075558ae49c3bba94f57d58fd	mesa-10.6.8.tar.xz
package/libosmesa/libosmesa.mk new file +5 -0
new file mode 100644
index 0000000..f70fd2a
@@ -0,0 +1,30 @@
+################################################################################
+#
+# libosmesa
+#
+################################################################################
Quoted 9 lines

package/libosmesa/libosmesa.mk line 10

Quoted 5 lines
package/libosmesa/libosmesa.mk new file +5 -0
+
+# When updating the version, please also update mesa3d
+LIBOSMESA_VERSION = 10.6.8
+LIBOSMESA_SOURCE = mesa-$(LIBOSMESA_VERSION).tar.xz
+LIBOSMESA_SITE = ftp://ftp.freedesktop.org/pub/mesa/$(LIBOSMESA_VERSION)

Why are you creating a new package, instead of simply adding a new option to the existing mesa3d package?

Hi,

I thought I keep it seperate as osmesa is totally standalone,
but looking closer at the mesa3d.mk it seems this is still possible if the comment about libgl is correct. (We don't need a libgl for osmesa, but if libgl is only build when a DRI driver is selected it is fine)