Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Arnout Vandecappelle <arnout@mind.be>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2 7/7] mesa3d-demos: new package
Date: Wed, 11 Sep 2013 07:58:56 +0200	[thread overview]
Message-ID: <523006A0.40907@mind.be> (raw)
In-Reply-To: <1378441521-10050-8-git-send-email-spenser@gillilanding.com>

On 06/09/13 06:25, Spenser Gilliland wrote:
>
> Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
> ---
>   package/Config.in                                  |   1 +
>   package/mesa3d-demos/Config.in                     |   8 +
>   .../mesa3d-demos/mesa3d-demos-optional-gl.patch    | 348 +++++++++++++++++++++
>   package/mesa3d-demos/mesa3d-demos.mk               |  63 ++++
>   4 files changed, 420 insertions(+)
>   create mode 100644 package/mesa3d-demos/Config.in
>   create mode 100644 package/mesa3d-demos/mesa3d-demos-optional-gl.patch
>   create mode 100644 package/mesa3d-demos/mesa3d-demos.mk
>
> diff --git a/package/Config.in b/package/Config.in
> index 27bd70a..e8ceb5a 100644
> --- a/package/Config.in
> +++ b/package/Config.in
> @@ -39,6 +39,7 @@ source "package/lttng-modules/Config.in"
>   source "package/lttng-tools/Config.in"
>   source "package/ltrace/Config.in"
>   source "package/memstat/Config.in"
> +source "package/mesa3d-demos/Config.in"

  I don't think that the Debug tools menu is the right place for this - 
at least, we have nothing similar there at the moment. How about putting 
it in the Graphical libraries and applications menu?

>   source "package/netperf/Config.in"
>   source "package/oprofile/Config.in"
>   source "package/pax-utils/Config.in"
> diff --git a/package/mesa3d-demos/Config.in b/package/mesa3d-demos/Config.in
> new file mode 100644
> index 0000000..24c29e0
> --- /dev/null
> +++ b/package/mesa3d-demos/Config.in
> @@ -0,0 +1,8 @@
> +config BR2_PACKAGE_MESA3D_DEMOS
> +	bool "mesa3d-demos"
> +	depends on BR2_PACKAGE_HAS_OPENGL || BR2_PACKAGE_HAS_OPENGL_ES \
> +		|| BR2_PACKAGE_HAS_OPENGL_EGL || BR2_PACKAGE_HAS_OPENVG
> +	help
> +	  OpenGL demos from the Mesa 3D project.
> +
> +	  http://mesa3d.org
> diff --git a/package/mesa3d-demos/mesa3d-demos-optional-gl.patch b/package/mesa3d-demos/mesa3d-demos-optional-gl.patch
> new file mode 100644
> index 0000000..9345d29
> --- /dev/null
> +++ b/package/mesa3d-demos/mesa3d-demos-optional-gl.patch
> @@ -0,0 +1,348 @@
> +This patch makes the egl stuff work with other opengles providers and makes
> +it possible to build the demos without opengl (only opengles.)

  Can you upstream this? Probably needs to be split into two patches in 
that case.

> +
> +Signed-off-by: Spenser Gilliland <spenser@gillilanding.com>
> +---
> +Index: mesa3d-demos-8.1.0/configure.ac
> +===================================================================
> +--- mesa3d-demos-8.1.0.orig/configure.ac	2013-02-24 04:49:47.000000000 -0600
> ++++ mesa3d-demos-8.1.0/configure.ac	2013-09-05 10:01:19.137886856 -0500
> +@@ -51,6 +51,14 @@
> +   ACLOCAL="aclocal -I/other/macro/dir" before running autoreconf.])])
> + PKG_PROG_PKG_CONFIG()
> +
> ++AC_ARG_ENABLE([gl],
> ++    [AS_HELP_STRING([--enable-gl],
> ++        [enable GL library @<:@default=no@:>@])],
> ++    [gl_enabled="$enableval"],
> ++    [gl_enabled=auto])
> ++
> ++if test "x$gl_enabled" != "xno"; then
> ++
> + dnl Get the pkg-config definitions for libGL.  We include a fallback
> + dnl path for GL implementation that don't provide a .pc file
> + PKG_CHECK_MODULES(GL, [gl], [], [
> +@@ -103,6 +111,8 @@
> + DEMO_CFLAGS="$DEMO_CFLAGS $GLU_CFLAGS"
> + DEMO_LIBS="$DEMO_LIBS $GLU_LIBS"
> +
> ++fi
> ++
> + AC_ARG_ENABLE([egl],
> +     [AS_HELP_STRING([--enable-egl],
> +         [enable EGL library @<:@default=no@:>@])],
> +@@ -202,7 +212,6 @@
> +         [enable support for wayland @<:@default=no@:>@])],
> +     [wayland_enabled="$enableval"],
> +     [wayland_enabled=no])
> +-

  Why remove this line?


  Regards,
  Arnout

> + if test "x$wayland_enabled" != "xno"; then
> +     PKG_CHECK_MODULES(WAYLAND, [wayland-client wayland-egl], [wayland_enabled=yes], [wayland_enabled=no])
> + fi
> +@@ -287,7 +296,7 @@
[snip]



-- 
Arnout Vandecappelle                          arnout at mind be
Senior Embedded Software Architect            +32-16-286500
Essensium/Mind                                http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium           BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  7CB5 E4CC 6C2E EFD4 6E3D A754 F963 ECAB 2450 2F1F

  reply	other threads:[~2013-09-11  5:58 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-06  4:25 [Buildroot] [PATCH v2 0/7] glmark2 and Mesa updates Spenser Gilliland
2013-09-06  4:25 ` [Buildroot] [PATCH v2 1/7] libdrm: bump and add experimental ARM framebuffer support Spenser Gilliland
2013-09-08 16:51   ` Thomas Petazzoni
2013-09-20  8:41   ` Peter Korsgaard
2013-09-06  4:25 ` [Buildroot] [PATCH v2 2/7] sunxi-cedarx: bump to newer version, use armel2 binaries, add demo Spenser Gilliland
2013-09-08 16:59   ` Thomas Petazzoni
2013-09-12  4:41     ` Spenser Gilliland
2013-09-20 13:54   ` Peter Korsgaard
2013-09-06  4:25 ` [Buildroot] [PATCH v2 3/7] mesa3d: pull out from x11 Spenser Gilliland
2013-09-08 17:02   ` Thomas Petazzoni
2013-09-12  2:57     ` Spenser Gilliland
2013-09-12  7:23       ` Thomas Petazzoni
2013-09-06  4:25 ` [Buildroot] [PATCH v2 4/7] mesa3d: modularize and bump to version 9.1.6 Spenser Gilliland
2013-09-08 18:30   ` Thomas Petazzoni
2013-09-12  2:58     ` Spenser Gilliland
2013-09-06  4:25 ` [Buildroot] [PATCH v2 5/7] libpng12: new package Spenser Gilliland
2013-09-08 17:04   ` Thomas Petazzoni
2013-09-11  5:33     ` Arnout Vandecappelle
2013-09-12  3:20       ` Spenser Gilliland
2013-09-06  4:25 ` [Buildroot] [PATCH v2 6/7] glmark2: " Spenser Gilliland
2013-09-08 18:38   ` Thomas Petazzoni
2013-09-12  3:12     ` Spenser Gilliland
2013-09-11  5:47   ` Arnout Vandecappelle
2013-09-12  3:17     ` Spenser Gilliland
2013-09-30 20:39       ` Arnout Vandecappelle
2013-09-06  4:25 ` [Buildroot] [PATCH v2 7/7] mesa3d-demos: " Spenser Gilliland
2013-09-11  5:58   ` Arnout Vandecappelle [this message]
2013-09-12  3:21     ` Spenser Gilliland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=523006A0.40907@mind.be \
    --to=arnout@mind.be \
    --cc=buildroot@busybox.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox