[glew] Improve messages for system opengl dependency (#18672)

* [glew] Fix the dependency

* Update baseline version

* Adress the review suggestions

* Update the baseline revision
This commit is contained in:
Phoebe 2021-07-08 00:26:06 +08:00 committed by GitHub
parent fb0fcec3b2
commit 959e4c61cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 20 additions and 7 deletions

View File

@ -1,6 +0,0 @@
Source: glew
Version: 2.1.0
Port-Version: 10
Description: The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library.
Homepage: https://github.com/nigels-com/glew
Build-Depends: opengl

View File

@ -1,3 +1,7 @@
if(VCPKG_TARGET_IS_LINUX)
message(WARNING "${PORT} requires the following libraries from the system package manager:\n libxmu-dev\n libxi-dev\n libgl-dev\n\nThese can be installed on Ubuntu systems via apt-get install libxmu-dev libxi-dev libgl-dev.")
endif()
# Don't change to vcpkg_from_github! The sources in the git repository (archives) are missing some files that are distributed inside releases.
# More info: https://github.com/nigels-com/glew/issues/31 and https://github.com/nigels-com/glew/issues/13
vcpkg_download_distfile(ARCHIVE

10
ports/glew/vcpkg.json Normal file
View File

@ -0,0 +1,10 @@
{
"name": "glew",
"version-string": "2.1.0",
"port-version": 11,
"description": "The OpenGL Extension Wrangler Library (GLEW) is a cross-platform open-source C/C++ extension loading library.",
"homepage": "https://github.com/nigels-com/glew",
"dependencies": [
"opengl"
]
}

View File

@ -2294,7 +2294,7 @@
},
"glew": {
"baseline": "2.1.0",
"port-version": 10
"port-version": 11
},
"glfw3": {
"baseline": "3.3.4",

View File

@ -1,5 +1,10 @@
{
"versions": [
{
"git-tree": "622e27b2a746c088f0acd2f98445c0968f485a69",
"version-string": "2.1.0",
"port-version": 11
},
{
"git-tree": "c87d7f619c69630fa4d1bd0bf3767f0d31ef22d6",
"version-string": "2.1.0",