mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-06-07 01:24:47 +08:00
[raylib] Fix incorrect version in raylib-config-version.cmake (#30981)
This commit is contained in:
parent
8f6490446e
commit
aa61ae5d72
14
ports/raylib/fix-project-version.patch
Normal file
14
ports/raylib/fix-project-version.patch
Normal file
@ -0,0 +1,14 @@
|
||||
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
|
||||
index 9087f8e..5092bdf 100644
|
||||
--- a/src/CMakeLists.txt
|
||||
+++ b/src/CMakeLists.txt
|
||||
@@ -1,7 +1,7 @@
|
||||
# Setup the project and settings
|
||||
project(raylib C)
|
||||
-set(PROJECT_VERSION 4.2.0)
|
||||
-set(API_VERSION 420)
|
||||
+set(PROJECT_VERSION 4.5.0)
|
||||
+set(API_VERSION 450)
|
||||
|
||||
include(GNUInstallDirs)
|
||||
include(JoinPaths)
|
@ -15,16 +15,18 @@ if(VCPKG_TARGET_IS_OSX OR VCPKG_TARGET_IS_LINUX)
|
||||
endif()
|
||||
|
||||
if(VCPKG_TARGET_IS_EMSCRIPTEN)
|
||||
set(ADDITIONAL_OPTIONS "-DPLATFORM=Web")
|
||||
set(ADDITIONAL_OPTIONS "-DPLATFORM=Web")
|
||||
endif()
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO raysan5/raylib
|
||||
REF ${VERSION}
|
||||
REF "${VERSION}"
|
||||
SHA512 a959abbb577a8951251a469d6505093fd20988444dcf055e26cb0b484ef4024211b2cca45187accbd465c56bc50e02d450b6f7f7cfde2cdaedcdce422f80dcbc
|
||||
HEAD_REF master
|
||||
PATCHES ${patches}
|
||||
PATCHES
|
||||
fix-project-version.patch #Upstream change https://github.com/raysan5/raylib/commit/0d4db7ad7f6fd442ed165ebf8ab8b3f4033b04e7, please remove in next update.
|
||||
${patches}
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" SHARED)
|
||||
@ -59,6 +61,10 @@ vcpkg_cmake_configure(
|
||||
-DENABLE_ASAN=OFF
|
||||
-DENABLE_UBSAN=OFF
|
||||
-DENABLE_MSAN=OFF
|
||||
MAYBE_UNUSED_VARIABLES
|
||||
SHARED
|
||||
STATIC
|
||||
SUPPORT_HIGH_DPI
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
@ -81,4 +87,4 @@ if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
||||
)
|
||||
endif()
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||
|
@ -1,6 +1,7 @@
|
||||
{
|
||||
"name": "raylib",
|
||||
"version-semver": "4.5.0",
|
||||
"port-version": 1,
|
||||
"description": "A simple and easy-to-use library to enjoy videogames programming",
|
||||
"homepage": "https://github.com/raysan5/raylib",
|
||||
"license": "Zlib",
|
||||
|
@ -6874,7 +6874,7 @@
|
||||
},
|
||||
"raylib": {
|
||||
"baseline": "4.5.0",
|
||||
"port-version": 0
|
||||
"port-version": 1
|
||||
},
|
||||
"rbdl": {
|
||||
"baseline": "3.2.0",
|
||||
|
@ -1,5 +1,10 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "1ae048ec33152df88804d243fd6e89691d5712d2",
|
||||
"version-semver": "4.5.0",
|
||||
"port-version": 1
|
||||
},
|
||||
{
|
||||
"git-tree": "f8a98453d76631d6a8f4f8d762646808cc3e9e1a",
|
||||
"version-semver": "4.5.0",
|
||||
|
Loading…
Reference in New Issue
Block a user