All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] glfw3: add version 3.1.2
@ 2016-08-08 16:16 Hongmei Gou
  2016-08-11  2:36 ` Denys Dmytriyenko
  0 siblings, 1 reply; 4+ messages in thread
From: Hongmei Gou @ 2016-08-08 16:16 UTC (permalink / raw)
  To: meta-arago; +Cc: Djordje Senicic

Signed-off-by: Djordje Senicic <d-senicic1@ti.com>
Signed-off-by: Hongmei Gou <h-gou@ti.com>
---
 .../glfw3/files/0001_xkb_unicode.patch             | 52 ++++++++++++++++++++++
 .../recipes-graphics/glfw3/glfw3_git.bb            | 24 ++++++++++
 2 files changed, 76 insertions(+)
 create mode 100644 meta-arago-extras/recipes-graphics/glfw3/files/0001_xkb_unicode.patch
 create mode 100644 meta-arago-extras/recipes-graphics/glfw3/glfw3_git.bb

diff --git a/meta-arago-extras/recipes-graphics/glfw3/files/0001_xkb_unicode.patch b/meta-arago-extras/recipes-graphics/glfw3/files/0001_xkb_unicode.patch
new file mode 100644
index 0000000..7c9b9d3
--- /dev/null
+++ b/meta-arago-extras/recipes-graphics/glfw3/files/0001_xkb_unicode.patch
@@ -0,0 +1,52 @@
+--- a/src/xkb_unicode.c	2015-10-12 15:09:07.000000000 -0400
++++ b/src/xkb_unicode.c	2016-04-08 08:20:23.229370629 -0400
+@@ -1,5 +1,5 @@
+ //========================================================================
+-// GLFW 3.1 X11 - www.glfw.org
++// GLFW 3.1patched X11 - www.glfw.org
+ //------------------------------------------------------------------------
+ // Copyright (c) 2002-2006 Marcus Geelnard
+ // Copyright (c) 2006-2010 Camilla Berglund <elmindreda@elmindreda.org>
+@@ -827,24 +827,24 @@
+   { 0x13be, 0x0178 },
+   { 0x20ac, 0x20ac },
+   // Numeric keypad with numlock on
+-  { XK_KP_Space, ' ' },
+-  { XK_KP_Equal, '=' },
+-  { XK_KP_Multiply, '*' },
+-  { XK_KP_Add, '+' },
+-  { XK_KP_Separator, ',' },
+-  { XK_KP_Subtract, '-' },
+-  { XK_KP_Decimal, '.' },
+-  { XK_KP_Divide, '/' },
+-  { XK_KP_0, 0x0030 },
+-  { XK_KP_1, 0x0031 },
+-  { XK_KP_2, 0x0032 },
+-  { XK_KP_3, 0x0033 },
+-  { XK_KP_4, 0x0034 },
+-  { XK_KP_5, 0x0035 },
+-  { XK_KP_6, 0x0036 },
+-  { XK_KP_7, 0x0037 },
+-  { XK_KP_8, 0x0038 },
+-  { XK_KP_9, 0x0039 }
++  { 0xff80 /*XKB_KEY_KP_Space*/,     ' ' },
++  { 0xffbd /*XKB_KEY_KP_Equal*/,     '=' },
++  { 0xffaa /*XKB_KEY_KP_Multiply*/,  '*' },
++  { 0xffab /*XKB_KEY_KP_Add*/,       '+' },
++  { 0xffac /*XKB_KEY_KP_Separator*/, ',' },
++  { 0xffad /*XKB_KEY_KP_Subtract*/,  '-' },
++  { 0xffae /*XKB_KEY_KP_Decimal*/,   '.' },
++  { 0xffaf /*XKB_KEY_KP_Divide*/,    '/' },
++  { 0xffb0 /*XKB_KEY_KP_0*/, 0x0030 },
++  { 0xffb1 /*XKB_KEY_KP_1*/, 0x0031 },
++  { 0xffb2 /*XKB_KEY_KP_2*/, 0x0032 },
++  { 0xffb3 /*XKB_KEY_KP_3*/, 0x0033 },
++  { 0xffb4 /*XKB_KEY_KP_4*/, 0x0034 },
++  { 0xffb5 /*XKB_KEY_KP_5*/, 0x0035 },
++  { 0xffb6 /*XKB_KEY_KP_6*/, 0x0036 },
++  { 0xffb7 /*XKB_KEY_KP_7*/, 0x0037 },
++  { 0xffb8 /*XKB_KEY_KP_8*/, 0x0038 },
++  { 0xffb9 /*XKB_KEY_KP_9*/, 0x0039 }
+ };
+ 
+ 
diff --git a/meta-arago-extras/recipes-graphics/glfw3/glfw3_git.bb b/meta-arago-extras/recipes-graphics/glfw3/glfw3_git.bb
new file mode 100644
index 0000000..aa1abe9
--- /dev/null
+++ b/meta-arago-extras/recipes-graphics/glfw3/glfw3_git.bb
@@ -0,0 +1,24 @@
+SUMMARY = "GLFW cross platform graphics framework"
+DESCRIPTION = "A multi-platform library for OpenGL and OpenGLES, window and input"
+HOMEPAGE = "http://glfw.org/"
+LICENSE = "Zlib & Libpng"
+LIC_FILES_CHKSUM = "file://COPYING.txt;md5=f543d41f3829a608a406b713e4e72731"
+
+PV = "3.1.2"
+PR = "r0"
+
+BRANCH = "master"
+SRC_URI = "git://github.com/glfw/glfw.git;branch=${BRANCH}"
+SRCREV = "30306e54705c3adae9fe082c816a3be71963485c"
+
+SRC_URI += "file://0001_xkb_unicode.patch"
+
+DEPENDS = "glib-2.0 virtual/libgles2 virtual/egl weston wayland wayland-native"
+
+S = "${WORKDIR}/git"
+
+inherit cmake pkgconfig
+
+EXTRA_OECMAKE += "-DGLFW_USE_WAYLAND=ON -DGLFW_CLIENT_LIBRARY=glesv2 -DGLFW_BUILD_EXAMPLES=ON -DGFLW_BUILD_TESTS=ON"
+
+FILES_${PN} += "/usr/lib/cmake/*"
-- 
1.9.1



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

end of thread, other threads:[~2016-08-16 21:13 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-08-08 16:16 [PATCH] glfw3: add version 3.1.2 Hongmei Gou
2016-08-11  2:36 ` Denys Dmytriyenko
2016-08-16 20:27   ` Denys Dmytriyenko
2016-08-16 21:13     ` Gou, Hongmei

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.