package/libglfw: new package
Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
This commit is contained in:
parent
1e7eb1f252
commit
a670ea6049
@ -850,6 +850,7 @@ menu "Graphics"
|
||||
source "package/libgeotiff/Config.in"
|
||||
source "package/libglade/Config.in"
|
||||
source "package/libglew/Config.in"
|
||||
source "package/libglfw/Config.in"
|
||||
source "package/libglu/Config.in"
|
||||
source "package/libgtk2/Config.in"
|
||||
source "package/libgtk3/Config.in"
|
||||
|
16
package/libglfw/Config.in
Normal file
16
package/libglfw/Config.in
Normal file
@ -0,0 +1,16 @@
|
||||
config BR2_PACKAGE_LIBGLFW
|
||||
bool "libglfw"
|
||||
depends on BR2_PACKAGE_XORG7
|
||||
depends on BR2_PACKAGE_HAS_LIBGL
|
||||
select BR2_PACKAGE_XLIB_LIBXCURSOR
|
||||
select BR2_PACKAGE_XLIB_LIBXEXT
|
||||
select BR2_PACKAGE_XLIB_LIBXINERAMA
|
||||
select BR2_PACKAGE_XLIB_LIBXRANDR
|
||||
help
|
||||
GLFW is an Open Source, multi-platform library for creating
|
||||
windows with OpenGL contexts and receiving input and events.
|
||||
|
||||
http://www.glfw.org
|
||||
|
||||
comment "libglfw depends on X.org and needs an OpenGL backend"
|
||||
depends on !BR2_PACKAGE_XORG7 || !BR2_PACKAGE_HAS_LIBGL
|
2
package/libglfw/libglfw.hash
Normal file
2
package/libglfw/libglfw.hash
Normal file
@ -0,0 +1,2 @@
|
||||
# Locally computed
|
||||
sha256 6ac642087682aaf7f8397761a41a99042b2c656498217a1c63ba9706d1eef122 libglfw-3.1.2.tar.gz
|
28
package/libglfw/libglfw.mk
Normal file
28
package/libglfw/libglfw.mk
Normal file
@ -0,0 +1,28 @@
|
||||
################################################################################
|
||||
#
|
||||
# libglfw
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBGLFW_VERSION = 3.1.2
|
||||
LIBGLFW_SITE = $(call github,glfw,glfw,$(LIBGLFW_VERSION))
|
||||
LIBGLFW_INSTALL_STAGING = YES
|
||||
LIBGLFW_DEPENDENCIES = libgl xlib_libXcursor xlib_libXext \
|
||||
xlib_libXinerama xlib_libXrandr
|
||||
LIBGLFW_LICENSE = zlib
|
||||
LIBGLFW_LICENSE_FILES = COPYING.txt
|
||||
|
||||
LIBGLFW_CONF_OPTS += \
|
||||
-DGLFW_BUILD_EXAMPLES=OFF \
|
||||
-DGLFW_BUILD_TESTS=OFF \
|
||||
-DGLFW_BUILD_DOCS=OFF
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXI),y)
|
||||
LIBGLFW_DEPENDENCIES += xlib_libXi
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXXF86VM),y)
|
||||
LIBGLFW_DEPENDENCIES += xlib_libXxf86vm
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
Loading…
Reference in New Issue
Block a user