* [Buildroot] [PATCH] libosmesa: New package
@ 2015-09-30 21:14 André Hentschel
2015-09-30 21:37 ` Thomas Petazzoni
0 siblings, 1 reply; 3+ messages in thread
From: André Hentschel @ 2015-09-30 21:14 UTC (permalink / raw)
To: buildroot
Signed-off-by: Andr? Hentschel <nerv@dawncrow.de>
---
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
diff --git a/package/Config.in b/package/Config.in
index 0e0c5cd..e53d278 100644
--- a/package/Config.in
+++ b/package/Config.in
@@ -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"
diff --git a/package/libosmesa/Config.in b/package/libosmesa/Config.in
new file mode 100644
index 0000000..9d08933
--- /dev/null
+++ b/package/libosmesa/Config.in
@@ -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
diff --git a/package/libosmesa/libosmesa.hash b/package/libosmesa/libosmesa.hash
new file mode 100644
index 0000000..0501314
--- /dev/null
+++ b/package/libosmesa/libosmesa.hash
@@ -0,0 +1,2 @@
+# From http://lists.freedesktop.org/archives/mesa-announce/2015-September/000175.html
+sha256 e36ee5ceeadb3966fb5ce5b4cf18322dbb76a4f075558ae49c3bba94f57d58fd mesa-10.6.8.tar.xz
diff --git a/package/libosmesa/libosmesa.mk b/package/libosmesa/libosmesa.mk
new file mode 100644
index 0000000..f70fd2a
--- /dev/null
+++ b/package/libosmesa/libosmesa.mk
@@ -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))
diff --git a/package/mesa3d/mesa3d.mk b/package/mesa3d/mesa3d.mk
index f7feb0f..3e30451 100644
--- a/package/mesa3d/mesa3d.mk
+++ b/package/mesa3d/mesa3d.mk
@@ -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)
--
1.9.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] libosmesa: New package
2015-09-30 21:14 [Buildroot] [PATCH] libosmesa: New package André Hentschel
@ 2015-09-30 21:37 ` Thomas Petazzoni
2015-09-30 22:16 ` André Hentschel
0 siblings, 1 reply; 3+ messages in thread
From: Thomas Petazzoni @ 2015-09-30 21:37 UTC (permalink / raw)
To: buildroot
Dear Andr? Hentschel,
On Wed, 30 Sep 2015 23:14:30 +0200, Andr? Hentschel wrote:
> diff --git a/package/libosmesa/libosmesa.hash b/package/libosmesa/libosmesa.hash
> new file mode 100644
> index 0000000..0501314
> --- /dev/null
> +++ b/package/libosmesa/libosmesa.hash
> @@ -0,0 +1,2 @@
> +# From http://lists.freedesktop.org/archives/mesa-announce/2015-September/000175.html
> +sha256 e36ee5ceeadb3966fb5ce5b4cf18322dbb76a4f075558ae49c3bba94f57d58fd mesa-10.6.8.tar.xz
> diff --git a/package/libosmesa/libosmesa.mk b/package/libosmesa/libosmesa.mk
> new file mode 100644
> index 0000000..f70fd2a
> --- /dev/null
> +++ b/package/libosmesa/libosmesa.mk
> @@ -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
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
^ permalink raw reply [flat|nested] 3+ messages in thread
* [Buildroot] [PATCH] libosmesa: New package
2015-09-30 21:37 ` Thomas Petazzoni
@ 2015-09-30 22:16 ` André Hentschel
0 siblings, 0 replies; 3+ messages in thread
From: André Hentschel @ 2015-09-30 22:16 UTC (permalink / raw)
To: buildroot
Am 30.09.2015 um 23:37 schrieb Thomas Petazzoni:
> Dear Andr? Hentschel,
>
> On Wed, 30 Sep 2015 23:14:30 +0200, Andr? Hentschel wrote:
>
>> diff --git a/package/libosmesa/libosmesa.hash b/package/libosmesa/libosmesa.hash
>> new file mode 100644
>> index 0000000..0501314
>> --- /dev/null
>> +++ b/package/libosmesa/libosmesa.hash
>> @@ -0,0 +1,2 @@
>> +# From http://lists.freedesktop.org/archives/mesa-announce/2015-September/000175.html
>> +sha256 e36ee5ceeadb3966fb5ce5b4cf18322dbb76a4f075558ae49c3bba94f57d58fd mesa-10.6.8.tar.xz
>> diff --git a/package/libosmesa/libosmesa.mk b/package/libosmesa/libosmesa.mk
>> new file mode 100644
>> index 0000000..f70fd2a
>> --- /dev/null
>> +++ b/package/libosmesa/libosmesa.mk
>> @@ -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?
>
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)
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-09-30 22:16 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-30 21:14 [Buildroot] [PATCH] libosmesa: New package André Hentschel
2015-09-30 21:37 ` Thomas Petazzoni
2015-09-30 22:16 ` André Hentschel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox