Initial Commit
- initial default booting image
This commit is contained in:
19
package/libglfw/Config.in
Normal file
19
package/libglfw/Config.in
Normal file
@@ -0,0 +1,19 @@
|
||||
config BR2_PACKAGE_LIBGLFW
|
||||
bool "libglfw"
|
||||
depends on BR2_PACKAGE_XORG7 || BR2_PACKAGE_WAYLAND
|
||||
depends on BR2_PACKAGE_HAS_LIBGL || BR2_PACKAGE_HAS_LIBGLES
|
||||
select BR2_PACKAGE_LIBXKBCOMMON if BR2_PACKAGE_WAYLAND
|
||||
select BR2_PACKAGE_XLIB_LIBXCURSOR if BR2_PACKAGE_XORG7
|
||||
select BR2_PACKAGE_XLIB_LIBXEXT if BR2_PACKAGE_XORG7
|
||||
select BR2_PACKAGE_XLIB_LIBXI if BR2_PACKAGE_XORG7
|
||||
select BR2_PACKAGE_XLIB_LIBXINERAMA if BR2_PACKAGE_XORG7
|
||||
select BR2_PACKAGE_XLIB_LIBXRANDR if BR2_PACKAGE_XORG7
|
||||
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 or Wayland and an OpenGL or GLES backend"
|
||||
depends on !(BR2_PACKAGE_XORG7 || BR2_PACKAGE_WAYLAND)
|
||||
depends on !(BR2_PACKAGE_HAS_LIBGL || BR2_PACKAGE_HAS_LIBGLES)
|
||||
3
package/libglfw/libglfw.hash
Normal file
3
package/libglfw/libglfw.hash
Normal file
@@ -0,0 +1,3 @@
|
||||
# Locally computed
|
||||
sha256 c038d34200234d071fae9345bc455e4a8f2f544ab60150765d7704e08f3dac01 libglfw-3.4.tar.gz
|
||||
sha256 149704059b5d0bf551637e50042dd4de9c2cae921021f6636298911e3a5f9462 LICENSE.md
|
||||
45
package/libglfw/libglfw.mk
Normal file
45
package/libglfw/libglfw.mk
Normal file
@@ -0,0 +1,45 @@
|
||||
################################################################################
|
||||
#
|
||||
# libglfw
|
||||
#
|
||||
################################################################################
|
||||
|
||||
LIBGLFW_VERSION = 3.4
|
||||
LIBGLFW_SITE = $(call github,glfw,glfw,$(LIBGLFW_VERSION))
|
||||
LIBGLFW_INSTALL_STAGING = YES
|
||||
LIBGLFW_LICENSE = Zlib
|
||||
LIBGLFW_LICENSE_FILES = LICENSE.md
|
||||
|
||||
LIBGLFW_CONF_OPTS += \
|
||||
-DGLFW_BUILD_EXAMPLES=OFF \
|
||||
-DGLFW_BUILD_TESTS=OFF \
|
||||
-DGLFW_BUILD_DOCS=OFF
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XORG7),y)
|
||||
LIBGLFW_CONF_OPTS += -DGLFW_BUILD_X11=ON
|
||||
LIBGLFW_DEPENDENCIES += xlib_libXcursor xlib_libXext \
|
||||
xlib_libXi xlib_libXinerama xlib_libXrandr
|
||||
else
|
||||
LIBGLFW_CONF_OPTS += -DGLFW_BUILD_X11=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HAS_LIBGL),y)
|
||||
LIBGLFW_DEPENDENCIES += libgl
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_HAS_LIBGLES),y)
|
||||
LIBGLFW_DEPENDENCIES += libgles
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_WAYLAND),y)
|
||||
LIBGLFW_CONF_OPTS += -DGLFW_BUILD_WAYLAND=ON
|
||||
LIBGLFW_DEPENDENCIES += libxkbcommon wayland
|
||||
else
|
||||
LIBGLFW_CONF_OPTS += -DGLFW_BUILD_WAYLAND=OFF
|
||||
endif
|
||||
|
||||
ifeq ($(BR2_PACKAGE_XLIB_LIBXXF86VM),y)
|
||||
LIBGLFW_DEPENDENCIES += xlib_libXxf86vm
|
||||
endif
|
||||
|
||||
$(eval $(cmake-package))
|
||||
Reference in New Issue
Block a user