From 669d6c26ed8364df64fee67cae9e970d0b74e1f6 Mon Sep 17 00:00:00 2001 From: cfillion Date: Thu, 16 Dec 2021 16:56:30 -0500 Subject: [PATCH 1/3] [gl3w] use khrplatform.h from the egl-registry port The file was changed yesterday, invalidating the hash: KhronosGroup/EGL-Registry@57b4876de0f33677ece92dd9de0ef105ce69139d. --- ports/gl3w/portfile.cmake | 9 +-------- ports/gl3w/vcpkg.json | 3 ++- 2 files changed, 3 insertions(+), 9 deletions(-) diff --git a/ports/gl3w/portfile.cmake b/ports/gl3w/portfile.cmake index 1cf3e0f2beba9f..fc02d422b7cc51 100644 --- a/ports/gl3w/portfile.cmake +++ b/ports/gl3w/portfile.cmake @@ -8,16 +8,9 @@ vcpkg_from_github( 0001-enable-shared-build.patch ) -# Download khrplatform.h with vcpkg instead of gl3w_gen.py so that our downloader settings are used -vcpkg_download_distfile(KHRPLATFORM_H - URLS "https://www.khronos.org/registry/EGL/api/KHR/khrplatform.h" - FILENAME khrplatform.h - SHA512 93d9075718eddb69c44482acdc72bbbd3511741272a6124d05ab1ef0702ef03e918501403b6fd334faf2c61f3332f34b7730158aa090db3d448c32b5dd9d9e67 - ) - file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}") file(COPY "${CURRENT_INSTALLED_DIR}/include/GL/glcorearb.h" DESTINATION "${SOURCE_PATH}/include/GL") -file(COPY "${KHRPLATFORM_H}" DESTINATION "${SOURCE_PATH}/include/KHR") +file(COPY "${CURRENT_INSTALLED_DIR}/include/KHR/khrplatform.h" DESTINATION "${SOURCE_PATH}/include/KHR") vcpkg_find_acquire_program(PYTHON3) diff --git a/ports/gl3w/vcpkg.json b/ports/gl3w/vcpkg.json index f38702da242839..ceab86df208019 100644 --- a/ports/gl3w/vcpkg.json +++ b/ports/gl3w/vcpkg.json @@ -1,10 +1,11 @@ { "name": "gl3w", "version-date": "2018-05-31", - "port-version": 3, + "port-version": 4, "description": "Simple OpenGL core profile loading", "homepage": "https://github.com/skaslev/gl3w", "dependencies": [ + "egl-registry", "opengl-registry" ] } From a73d4746e76ba2ef522bdec1abbcfc8668560c24 Mon Sep 17 00:00:00 2001 From: cfillion Date: Thu, 16 Dec 2021 19:11:45 -0500 Subject: [PATCH 2/3] [gl3w] migrate to new functions from vcpkg-cmake{,-config} --- ports/gl3w/portfile.cmake | 7 +++---- ports/gl3w/vcpkg.json | 10 +++++++++- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/ports/gl3w/portfile.cmake b/ports/gl3w/portfile.cmake index fc02d422b7cc51..2633bf05a48b04 100644 --- a/ports/gl3w/portfile.cmake +++ b/ports/gl3w/portfile.cmake @@ -20,15 +20,14 @@ vcpkg_execute_required_process( LOGNAME gl3w-gen ) -vcpkg_configure_cmake( +vcpkg_cmake_configure( SOURCE_PATH "${SOURCE_PATH}" - PREFER_NINJA OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON ) -vcpkg_install_cmake() +vcpkg_cmake_install() vcpkg_copy_pdbs() -vcpkg_fixup_cmake_targets() +vcpkg_cmake_config_fixup() if(VCPKG_LIBRARY_LINKAGE STREQUAL "dynamic") vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/include/GL/gl3w.h" "#define GL3W_API" "#define GL3W_API __declspec(dllimport)") diff --git a/ports/gl3w/vcpkg.json b/ports/gl3w/vcpkg.json index ceab86df208019..0963571711e09b 100644 --- a/ports/gl3w/vcpkg.json +++ b/ports/gl3w/vcpkg.json @@ -6,6 +6,14 @@ "homepage": "https://github.com/skaslev/gl3w", "dependencies": [ "egl-registry", - "opengl-registry" + "opengl-registry", + { + "name": "vcpkg-cmake", + "host": true + }, + { + "name": "vcpkg-cmake-config", + "host": true + } ] } From 7cb9dab795bf53f58831c6982386b45d0e76a792 Mon Sep 17 00:00:00 2001 From: cfillion Date: Thu, 16 Dec 2021 19:13:42 -0500 Subject: [PATCH 3/3] [gl3w] bump port version --- versions/baseline.json | 2 +- versions/g-/gl3w.json | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/versions/baseline.json b/versions/baseline.json index 3332862cf1602e..90ca34492f0df5 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -2450,7 +2450,7 @@ }, "gl3w": { "baseline": "2018-05-31", - "port-version": 3 + "port-version": 4 }, "glad": { "baseline": "0.1.34", diff --git a/versions/g-/gl3w.json b/versions/g-/gl3w.json index a718bca62bd5d1..a5cb2544dca59d 100644 --- a/versions/g-/gl3w.json +++ b/versions/g-/gl3w.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "618626b6f1118dc2c80fa7bd2aae497c0d83b7c1", + "version-date": "2018-05-31", + "port-version": 4 + }, { "git-tree": "bbd82479631534cfe954646d63d29734c3b7728f", "version-date": "2018-05-31",