aboutsummaryrefslogtreecommitdiff
path: root/ports/directxtex
diff options
context:
space:
mode:
authorChuck Walbourn <walbourn@users.noreply.github.com>2021-04-09 09:54:41 -0700
committerGitHub <noreply@github.com>2021-04-09 09:54:41 -0700
commit2d7a8443acca90ac05257c7a54c11567820bc050 (patch)
treed29ba92df42efd2652d3519d094894c33cc26b41 /ports/directxtex
parent7ee07915db7b88519102a8001fcaebc613cb0aa4 (diff)
downloadvcpkg-2d7a8443acca90ac05257c7a54c11567820bc050.tar.gz
vcpkg-2d7a8443acca90ac05257c7a54c11567820bc050.zip
[directxtex,directxmesh, directxtk, directxtk12, uvatlas] updated for April 2021 releases (#17123)
* directxmesh, directxtex, directxtk, directxtk12, uvatlas updated for April 2021 release * Updated versions
Diffstat (limited to 'ports/directxtex')
-rw-r--r--ports/directxtex/CONTROL6
-rw-r--r--ports/directxtex/enable_openexr_support.patch8
-rw-r--r--ports/directxtex/portfile.cmake55
3 files changed, 36 insertions, 33 deletions
diff --git a/ports/directxtex/CONTROL b/ports/directxtex/CONTROL
index 45a107c97..13adec892 100644
--- a/ports/directxtex/CONTROL
+++ b/ports/directxtex/CONTROL
@@ -1,8 +1,8 @@
Source: directxtex
-Version: jan2021b
-Homepage: https://walbourn.github.io/directxtex
+Version: apr2021
+Homepage: https://github.com/microsoft/DirectXTex
Description: DirectXTex texture processing library
-Build-Depends: directxmath(linux), directx-headers(linux)
+Build-Depends: directxmath, directx-headers
Supports: windows|linux
Feature: dx12
diff --git a/ports/directxtex/enable_openexr_support.patch b/ports/directxtex/enable_openexr_support.patch
index cb4f398ea..2fef1f9d7 100644
--- a/ports/directxtex/enable_openexr_support.patch
+++ b/ports/directxtex/enable_openexr_support.patch
@@ -1,5 +1,5 @@
-diff --git a/DirectXTex/DirectXTexEXR.cpp b/DirectXTex/DirectXTexEXR.cpp
-index c78f1d1..e073539 100644
+diff --git a/DirectXTexEXR.cpp b/DirectXTexEXR.cpp
+index 9ac601f..204bde2 100644
--- a/DirectXTex/DirectXTexEXR.cpp
+++ b/DirectXTex/DirectXTexEXR.cpp
@@ -8,7 +8,7 @@
@@ -11,10 +11,10 @@ index c78f1d1..e073539 100644
#include "DirectXTexEXR.h"
-@@ -55,7 +55,7 @@ using namespace DirectX;
+@@ -56,7 +56,7 @@ using namespace DirectX;
using PackedVector::XMHALF4;
- // Comment out this anonymous namespace if you add the include of DirectXTexP.h above
+ // Comment out this first anonymous namespace if you add the include of DirectXTexP.h above
-#ifdef WIN32
+#if 0
namespace
diff --git a/ports/directxtex/portfile.cmake b/ports/directxtex/portfile.cmake
index c3b0ebbd0..6f2ccaaab 100644
--- a/ports/directxtex/portfile.cmake
+++ b/ports/directxtex/portfile.cmake
@@ -5,8 +5,8 @@ vcpkg_fail_port_install(ON_TARGET "OSX")
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO Microsoft/DirectXTex
- REF jan2021b
- SHA512 bd327d0629bbae199f1b3fd80c0470b15edf221f204a4958b4e47b2b1a155b5c0e0af1cc1c39229d582363798f82efa91a3f63ec118fdb0e9255098a576b98ef
+ REF apr2021
+ SHA512 0f2624d7ca6f30e75e5a394c3f4730b068dac256f3571df024d5421f2ce777ee1bf3d90984e93d4ed881d2364dc7bd0dc6b2b48c0abe50a5bc5c2071ce2ba711
HEAD_REF master
)
@@ -14,20 +14,21 @@ if("openexr" IN_LIST FEATURES)
vcpkg_download_distfile(
DIRECTXTEX_EXR_HEADER
URLS "https://raw.githubusercontent.com/wiki/Microsoft/DirectXTex/DirectXTexEXR.h"
- FILENAME "DirectXTexEXR.h"
- SHA512 94ec71069949c8daa616d241ade0c771c448adab3e401a935d5462e7cac382cfbef47534072fc4b9706e086f5021de78a51fd4e2a6850cd3629c932592f9a168
+ FILENAME "DirectXTexEXR-2.h"
+ SHA512 54163820996f7f3c47d0e34da7d717ba51a4363458d77e8f3750d2b6b38bcf803f199b913b4fd7b8dcdd3f520cd0c2bb42a9f79d30f5805fccdece6af368dd12
)
vcpkg_download_distfile(
DIRECTXTEX_EXR_SOURCE
URLS "https://raw.githubusercontent.com/wiki/Microsoft/DirectXTex/DirectXTexEXR.cpp"
- FILENAME "DirectXTexEXR-1.cpp"
- SHA512 770fc0325b49139079b0bceb50619f93887e87a3dcf264b10dc01be16209fa51ba03d8273d4d4f84e596ac014376db96b7fed0afabe08c32394ed92495168ea6
+ FILENAME "DirectXTexEXR-2.cpp"
+ SHA512 fbf5a330961f3ac80e4425e8451e9a696240cd89fabca744a19f1f110ae188bae7d8eb5b058aaf66015066d919d4f581b14494d78d280147b23355d8a32745b9
)
file(COPY ${DIRECTXTEX_EXR_HEADER} DESTINATION ${SOURCE_PATH}/DirectXTex)
file(COPY ${DIRECTXTEX_EXR_SOURCE} DESTINATION ${SOURCE_PATH}/DirectXTex)
- file(RENAME ${SOURCE_PATH}/DirectXTex/DirectXTexEXR-1.cpp ${SOURCE_PATH}/DirectXTex/DirectXTexEXR.cpp)
+ file(RENAME ${SOURCE_PATH}/DirectXTex/DirectXTexEXR-2.h ${SOURCE_PATH}/DirectXTex/DirectXTexEXR.h)
+ file(RENAME ${SOURCE_PATH}/DirectXTex/DirectXTexEXR-2.cpp ${SOURCE_PATH}/DirectXTex/DirectXTexEXR.cpp)
vcpkg_apply_patches(SOURCE_PATH ${SOURCE_PATH} PATCHES enable_openexr_support.patch)
endif()
@@ -61,32 +62,26 @@ vcpkg_configure_cmake(
vcpkg_install_cmake()
vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
-if((VCPKG_TARGET_IS_WINDOWS) AND (NOT VCPKG_TARGET_IS_UWP))
- vcpkg_copy_tools(
- TOOL_NAMES texassemble texconv texdiag
- SEARCH_DIR ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bin/CMake
- )
-
-elseif((VCPKG_HOST_IS_WINDOWS) AND (VCPKG_TARGET_ARCHITECTURE MATCHES x64))
+if((VCPKG_HOST_IS_WINDOWS) AND (VCPKG_TARGET_ARCHITECTURE MATCHES x64) AND (NOT ("openexr" IN_LIST FEATURES)))
vcpkg_download_distfile(
TEXASSEMBLE_EXE
- URLS "https://github.com/Microsoft/DirectXTex/releases/download/jan2021/texassemble.exe"
- FILENAME "texassemble-jan2021.exe"
- SHA512 0def8873358234ea4cd16acd59cb1dda2a8ad132f362502d643caed43e9aef19f9c7e7248494093cbd61e7501a9b44f545d3fbd5f50972ebcee3d01598a7c3b7
+ URLS "https://github.com/Microsoft/DirectXTex/releases/download/apr2021/texassemble.exe"
+ FILENAME "texassemble-apr2021.exe"
+ SHA512 1ab77d057d859600cd74632cd236b4ba619ec3538fae2871488bfbe3434bf1acb3ea594b034d5bc7e631954f83e5170b2edb9bc9f228e9216771762ed971a4a2
)
vcpkg_download_distfile(
TEXCONV_EXE
- URLS "https://github.com/Microsoft/DirectXTex/releases/download/jan2021/texconv.exe"
- FILENAME "texconv-jan2021.exe"
- SHA512 77559db65406ad0343901ff22f7647c4f270674f7b0c31b12d8dc26c718f410708ebe95bdc0ddba4049fa6cefd52ff856174530fc4170f9e725b30aacb78249c
+ URLS "https://github.com/Microsoft/DirectXTex/releases/download/apr2021/texconv.exe"
+ FILENAME "texconv-apr2021.exe"
+ SHA512 6e4f0b775097cd45b54b9b024b6e2f7783d7b3af8cf0e120fb01d69318b30857506260be35b571e873300403acec3c325be6357d05a1fa5971c14ce3065343bc
)
vcpkg_download_distfile(
TEXDIAG_EXE
- URLS "https://github.com/Microsoft/DirectXTex/releases/download/jan2021/texdiag.exe"
- FILENAME "texdiag-jan2021.exe"
- SHA512 1b9e733050b5f92af86a9a2f415205acbff62f0708e491a3846d7b6e480a9c57086eff636be163d42a40a6d34dafc622cc53940797e7f6f77e739f3a66365f57
+ URLS "https://github.com/Microsoft/DirectXTex/releases/download/apr2021/texdiag.exe"
+ FILENAME "texdiag-apr2021.exe"
+ SHA512 f35b2719d47ed36159a7572b632da26179db8d6b2a0164cd6cf917e5220ff04e6179987ca605d8d534cbc76fc8c5204c87748ed5be3dfb393413d5e1e7a58895
)
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools/directxtex/")
@@ -97,9 +92,17 @@ elseif((VCPKG_HOST_IS_WINDOWS) AND (VCPKG_TARGET_ARCHITECTURE MATCHES x64))
${TEXDIAG_EXE}
DESTINATION ${CURRENT_PACKAGES_DIR}/tools/directxtex/)
- file(RENAME ${CURRENT_PACKAGES_DIR}/tools/directxtex/texassemble-jan2021.exe ${CURRENT_PACKAGES_DIR}/tools/directxtex/texassemble.exe)
- file(RENAME ${CURRENT_PACKAGES_DIR}/tools/directxtex/texconv-jan2021.exe ${CURRENT_PACKAGES_DIR}/tools/directxtex/texconv.exe)
- file(RENAME ${CURRENT_PACKAGES_DIR}/tools/directxtex/texdiag-jan2021.exe ${CURRENT_PACKAGES_DIR}/tools/directxtex/texadiag.exe)
+ file(RENAME ${CURRENT_PACKAGES_DIR}/tools/directxtex/texassemble-apr2021.exe ${CURRENT_PACKAGES_DIR}/tools/directxtex/texassemble.exe)
+ file(RENAME ${CURRENT_PACKAGES_DIR}/tools/directxtex/texconv-apr2021.exe ${CURRENT_PACKAGES_DIR}/tools/directxtex/texconv.exe)
+ file(RENAME ${CURRENT_PACKAGES_DIR}/tools/directxtex/texdiag-apr2021.exe ${CURRENT_PACKAGES_DIR}/tools/directxtex/texadiag.exe)
+
+elseif((VCPKG_TARGET_IS_WINDOWS) AND (NOT VCPKG_TARGET_IS_UWP))
+
+ vcpkg_copy_tools(
+ TOOL_NAMES texassemble texconv texdiag
+ SEARCH_DIR ${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/bin/CMake
+ )
+
endif()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")