From 7bf32c6b9355468288e87fc423cf3ea77f6d720b Mon Sep 17 00:00:00 2001 From: autoantwort <41973254+autoantwort@users.noreply.github.com> Date: Wed, 25 Jan 2023 21:23:05 +0100 Subject: [PATCH] [simage] use support expression (#29174) --- ports/simage/portfile.cmake | 8 ++------ ports/simage/vcpkg.json | 8 +++++--- versions/baseline.json | 2 +- versions/s-/simage.json | 5 +++++ 4 files changed, 13 insertions(+), 10 deletions(-) diff --git a/ports/simage/portfile.cmake b/ports/simage/portfile.cmake index ff1611082c..e381261b6c 100644 --- a/ports/simage/portfile.cmake +++ b/ports/simage/portfile.cmake @@ -1,4 +1,3 @@ -set(SIMAGE_VERSION 1.8.2) vcpkg_from_github( OUT_SOURCE_PATH SOURCE_PATH @@ -30,13 +29,10 @@ vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS # Depends on the platform if(VCPKG_TARGET_IS_WINDOWS AND "gdiplus" IN_LIST FEATURES) message(WARNING "Feature 'gdiplus' will disable feature 'zlib', 'giflib', 'jpeg', 'png' and 'tiff' automaticly.") -elseif ((VCPKG_TARGET_IS_LINUX OR VCPKG_TARGET_IS_OSX) - AND ("gdiplus" IN_LIST FEATURES OR "avienc" IN_LIST FEATURES)) - message(FATAL_ERROR "Feature 'avienc' and 'gdiplus' only support Windows.") endif() vcpkg_cmake_configure( - SOURCE_PATH ${SOURCE_PATH} + SOURCE_PATH "${SOURCE_PATH}" OPTIONS ${FEATURE_OPTIONS} -DSIMAGE_BUILD_SHARED_LIBS:BOOL=${SIMAGE_BUILD_SHARED_LIBS} -DSIMAGE_USE_STATIC_LIBS:BOOL=${SIMAGE_USE_STATIC_LIBS} @@ -61,7 +57,7 @@ vcpkg_cmake_configure( vcpkg_cmake_install() vcpkg_copy_pdbs() -vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/simage-${SIMAGE_VERSION}) +vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/simage-${VERSION}) if (NOT VCPKG_TARGET_IS_WINDOWS OR VCPKG_TARGET_IS_MINGW) vcpkg_copy_tools(TOOL_NAMES simage-config AUTO_CLEAN) diff --git a/ports/simage/vcpkg.json b/ports/simage/vcpkg.json index f961409b4d..04b5077442 100644 --- a/ports/simage/vcpkg.json +++ b/ports/simage/vcpkg.json @@ -1,7 +1,7 @@ { "name": "simage", "version-semver": "1.8.2", - "port-version": 1, + "port-version": 2, "description": "Image file format library abstraction layer", "homepage": "https://github.com/coin3d/simage", "license": "ISC", @@ -96,10 +96,12 @@ ] }, "avienc": { - "description": "Use Video for Windows for AVI encoding" + "description": "Use Video for Windows for AVI encoding", + "supports": "windows" }, "gdiplus": { - "description": "Use GDI+ on Windows to load/save images" + "description": "Use GDI+ on Windows to load/save images", + "supports": "windows" }, "giflib": { "description": "Enable support for GIF images", diff --git a/versions/baseline.json b/versions/baseline.json index c68672a924..2cde62ff86 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -7082,7 +7082,7 @@ }, "simage": { "baseline": "1.8.2", - "port-version": 1 + "port-version": 2 }, "simbody": { "baseline": "2023-01-10", diff --git a/versions/s-/simage.json b/versions/s-/simage.json index 1bbd0a518a..c8d5ae9c07 100644 --- a/versions/s-/simage.json +++ b/versions/s-/simage.json @@ -1,5 +1,10 @@ { "versions": [ + { + "git-tree": "1e3fa3cf60c5fa543b313ed36d80a09d7a9ec8cd", + "version-semver": "1.8.2", + "port-version": 2 + }, { "git-tree": "d877e927cdad3e67542b5c66c26bdc0bda9f5ade", "version-semver": "1.8.2",