* glfw3 is a multi-platform library for OpenGL, OpenGL ES, windown and input. It provides cross-platform graphics environment to create and setup context for OpenGL-enabled applications. * Patch 0001-add-PKG_CONFIG_SYSROOT_DIR-prefix-for-WaylandProtocols_PKGDATADIR.patch is added to specify WaylandProtocols_PKGDATADIR with the correct prefix
Signed-off-by: Hongmei Gou <[email protected]> --- ...IR-prefix-for-WaylandProtocols_PKGDATADIR.patch | 11 ++++++++++ .../recipes-graphics/glfw3/glfw3_git.bb | 24 ++++++++++++++++++++++ 2 files changed, 35 insertions(+) create mode 100644 meta-arago-extras/recipes-graphics/glfw3/files/0001-add-PKG_CONFIG_SYSROOT_DIR-prefix-for-WaylandProtocols_PKGDATADIR.patch create mode 100644 meta-arago-extras/recipes-graphics/glfw3/glfw3_git.bb diff --git a/meta-arago-extras/recipes-graphics/glfw3/files/0001-add-PKG_CONFIG_SYSROOT_DIR-prefix-for-WaylandProtocols_PKGDATADIR.patch b/meta-arago-extras/recipes-graphics/glfw3/files/0001-add-PKG_CONFIG_SYSROOT_DIR-prefix-for-WaylandProtocols_PKGDATADIR.patch new file mode 100644 index 0000000..fce7a45 --- /dev/null +++ b/meta-arago-extras/recipes-graphics/glfw3/files/0001-add-PKG_CONFIG_SYSROOT_DIR-prefix-for-WaylandProtocols_PKGDATADIR.patch @@ -0,0 +1,11 @@ +diff --git a/CMake/modules/FindWaylandProtocols.cmake b/CMake/modules/FindWaylandProtocols.cmake +index 8eb83f2..1e64fa9 100644 +--- a/CMake/modules/FindWaylandProtocols.cmake ++++ b/CMake/modules/FindWaylandProtocols.cmake +@@ -22,5 +22,5 @@ find_package_handle_standard_args(WaylandProtocols + ) + + set(WAYLAND_PROTOCOLS_FOUND ${WaylandProtocols_FOUND}) +-set(WAYLAND_PROTOCOLS_PKGDATADIR ${WaylandProtocols_PKGDATADIR}) ++set(WAYLAND_PROTOCOLS_PKGDATADIR $ENV{PKG_CONFIG_SYSROOT_DIR}/${WaylandProtocols_PKGDATADIR}) + set(WAYLAND_PROTOCOLS_VERSION ${WaylandProtocols_VERSION}) 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..5736594 --- /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=352912f8ce21ff7d8b592a4edbe48f50" + +PV = "3.2" +PR = "r0" + +BRANCH = "master" +SRC_URI = "git://github.com/glfw/glfw.git;branch=${BRANCH}" +SRCREV = "f6ec835599123c3c970d34534ed7ddc69a1fc6af" + +SRC_URI += "file://0001-add-PKG_CONFIG_SYSROOT_DIR-prefix-for-WaylandProtocols_PKGDATADIR.patch" + +DEPENDS = "extra-cmake-modules glib-2.0 virtual/libgles2 virtual/egl weston wayland wayland-native wayland-protocols" + +S = "${WORKDIR}/git" + +inherit cmake pkgconfig + +EXTRA_OECMAKE += "-DGLFW_USE_WAYLAND=ON -DGLFW_BUILD_EXAMPLES=OFF -DGLFW_BUILD_TESTS=OFF" + +FILES_${PN} += "/usr/lib/cmake/*" -- 1.9.1 _______________________________________________ meta-arago mailing list [email protected] http://arago-project.org/cgi-bin/mailman/listinfo/meta-arago
