GLFW updated to version 3.1

pull/657/head
Sergey Perepelitsa 9 years ago
parent fc2f44482f
commit 85cb661e44

@ -1,34 +0,0 @@
This file is part of MXE.
See index.html for further information.
Add option to install pkg-config file
--- a/CMakeLists.txt 2013-12-31 20:06:18.000000000 +0100
+++ b/CMakeLists.txt 2014-10-12 21:02:16.415982168 +0200
@@ -15,6 +15,7 @@
option(GLFW_BUILD_TESTS "Build the GLFW test programs" ON)
option(GLFW_BUILD_DOCS "Build the GLFW documentation" ON)
option(GLFW_INSTALL "Generate installation target" ON)
+option(GLFW_INSTALL_PKG_CONFIG "Install pkg-config file" OFF)
option(GLFW_DOCUMENT_INTERNALS "Include internals in documentation" OFF)
if (WIN32)
@@ -392,7 +393,7 @@
configure_file(${GLFW_SOURCE_DIR}/src/glfwConfigVersion.cmake.in
${GLFW_BINARY_DIR}/src/glfwConfigVersion.cmake @ONLY)
-if (UNIX)
+if (UNIX OR GLFW_INSTALL_PKG_CONFIG)
configure_file(${GLFW_SOURCE_DIR}/src/glfw3.pc.in
${GLFW_BINARY_DIR}/src/glfw3.pc @ONLY)
endif()
@@ -428,6 +429,9 @@
if (UNIX)
install(EXPORT glfwTargets DESTINATION lib${LIB_SUFFIX}/cmake/glfw)
+ endif()
+
+ if (UNIX OR GLFW_INSTALL_PKG_CONFIG)
install(FILES ${GLFW_BINARY_DIR}/src/glfw3.pc
DESTINATION lib${LIB_SUFFIX}/pkgconfig)
endif()

@ -3,8 +3,8 @@
PKG := glfw3
$(PKG)_IGNORE :=
$(PKG)_VERSION := 3.0.4
$(PKG)_CHECKSUM := 9b04309418ccbc74b2115d11198b7912669814ee
$(PKG)_VERSION := 3.1
$(PKG)_CHECKSUM := 32f2dcc188694fb5823e24cc65c8f69f32f58bb1
$(PKG)_SUBDIR := glfw-$($(PKG)_VERSION)
$(PKG)_FILE := glfw-$($(PKG)_VERSION).tar.gz
$(PKG)_URL := http://$(SOURCEFORGE_MIRROR)/project/glfw/glfw/$($(PKG)_VERSION)/$($(PKG)_FILE)

Loading…
Cancel
Save