diff options
Diffstat (limited to 'vcpkg/ports/wtl')
| -rw-r--r-- | vcpkg/ports/wtl/appwizard_setup.js-vs2022.patch | 35 | ||||
| -rw-r--r-- | vcpkg/ports/wtl/atlmisc.h-bug329.patch | 11 | ||||
| -rw-r--r-- | vcpkg/ports/wtl/atlribbon.h-wtl66.patch | 17 | ||||
| -rw-r--r-- | vcpkg/ports/wtl/portfile.cmake | 20 | ||||
| -rw-r--r-- | vcpkg/ports/wtl/vcpkg.json | 8 |
5 files changed, 91 insertions, 0 deletions
diff --git a/vcpkg/ports/wtl/appwizard_setup.js-vs2022.patch b/vcpkg/ports/wtl/appwizard_setup.js-vs2022.patch new file mode 100644 index 0000000..1f0f4e5 --- /dev/null +++ b/vcpkg/ports/wtl/appwizard_setup.js-vs2022.patch @@ -0,0 +1,35 @@ +--- a/AppWizard/Setup.js
++++ b/AppWizard/Setup.js
+@@ -185,26 +185,30 @@
+ }
+ }
+
+-// Search for Visual Studio 2017-2019
+- var nVersionsNew = 2;
++// Search for Visual Studio 2017/2019/2022
++ var nVersionsNew = 3;
+
+ var strWizardFolderNew = "Common7\\IDE\\VC\\vcprojects";
+
+ var astrVersionsNew = new Array();
+ astrVersionsNew[0] = "Visual Studio 2017 (15.0)";
+ astrVersionsNew[1] = "Visual Studio 2019 (16.0)";
++ astrVersionsNew[2] = "Visual Studio 2022 (17.0)";
+
+ var astrWizVerNew = new Array();
+ astrWizVerNew[0] = "15.0";
+ astrWizVerNew[1] = "16.0";
++ astrWizVerNew[2] = "17.0";
+
+ var astrParamVerNew = new Array();
+ astrParamVerNew[0] = "15";
+ astrParamVerNew[1] = "16";
++ astrParamVerNew[2] = "17";
+
+ var astrFilterVer = new Array();
+ astrFilterVer[0] = "[15.0,16.0]";
+ astrFilterVer[1] = "[16.0,17.0]";
++ astrFilterVer[2] = "[17.0,18.0]";
+
+ // Ensure that we can run vswhere.exe
+ var strProgFileRegKey_x86 = "HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\ProgramFilesDir (x86)";
diff --git a/vcpkg/ports/wtl/atlmisc.h-bug329.patch b/vcpkg/ports/wtl/atlmisc.h-bug329.patch new file mode 100644 index 0000000..6bffba9 --- /dev/null +++ b/vcpkg/ports/wtl/atlmisc.h-bug329.patch @@ -0,0 +1,11 @@ +--- a/Include/atlmisc.h
++++ b/Include/atlmisc.h
+@@ -628,7 +628,7 @@
+ {
+ ATLASSERT(m_hFind != NULL);
+
+- ATL::CString strResult("file://");
++ ATL::CString strResult(_T("file://"));
+ strResult += GetFilePath();
+ return strResult;
+ }
diff --git a/vcpkg/ports/wtl/atlribbon.h-wtl66.patch b/vcpkg/ports/wtl/atlribbon.h-wtl66.patch new file mode 100644 index 0000000..d4ebac4 --- /dev/null +++ b/vcpkg/ports/wtl/atlribbon.h-wtl66.patch @@ -0,0 +1,17 @@ +--- a/Include/atlribbon.h 2022-06-06 03:12:54.312690900 +0200
++++ b/Include/atlribbon.h 2022-06-06 03:13:24.337068900 +0200
+@@ -27,10 +27,10 @@
+ #error atlribbon.h requires atlapp.h to be included first
+ #endif
+
+-#include <atlmisc.h> // for RecentDocumentList classes
+-#include <atlframe.h> // for Frame and UpdateUI classes
+-#include <atlctrls.h> // required for atlctrlw.h
+-#include <atlctrlw.h> // for CCommandBarCtrl
++#include "atlmisc.h" // for RecentDocumentList classes
++#include "atlframe.h" // for Frame and UpdateUI classes
++#include "atlctrls.h" // required for atlctrlw.h
++#include "atlctrlw.h" // for CCommandBarCtrl
+
+ #ifndef __ATLSTR_H__
+ #pragma warning(push)
diff --git a/vcpkg/ports/wtl/portfile.cmake b/vcpkg/ports/wtl/portfile.cmake new file mode 100644 index 0000000..d80bb7d --- /dev/null +++ b/vcpkg/ports/wtl/portfile.cmake @@ -0,0 +1,20 @@ +vcpkg_from_sourceforge( + OUT_SOURCE_PATH SOURCE_PATH + REPO wtl/WTL%2010 + REF WTL%2010.0.10320%20Release + FILENAME "WTL10_10320_Release.zip" + NO_REMOVE_ONE_LEVEL + SHA512 086a6cf6a49a4318a8c519136ba6019ded7aa7f2c1d85f78c30b21183654537b3428a400a64fcdacba3a7a10a9ef05137b6f2119f59594da300d55f9ebfb1309 + PATCHES + # WTL 10 post-release updates; see + # https://sourceforge.net/projects/wtl/files/WTL%2010/WTL10%20Post-Release%20Updates.txt/download + appwizard_setup.js-vs2022.patch + atlmisc.h-bug329.patch + atlribbon.h-wtl66.patch +) + +file(INSTALL "${SOURCE_PATH}/Include/" DESTINATION "${CURRENT_PACKAGES_DIR}/include" FILES_MATCHING PATTERN "*.h") +file(COPY "${SOURCE_PATH}/Samples" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") +file(COPY "${SOURCE_PATH}/AppWizard" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") + +file(INSTALL "${SOURCE_PATH}/MS-PL.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) diff --git a/vcpkg/ports/wtl/vcpkg.json b/vcpkg/ports/wtl/vcpkg.json new file mode 100644 index 0000000..605dde9 --- /dev/null +++ b/vcpkg/ports/wtl/vcpkg.json @@ -0,0 +1,8 @@ +{ + "name": "wtl", + "version": "10.0.10320", + "port-version": 4, + "description": "Windows Template Library (WTL) is a C++ library for developing Windows applications and UI components.", + "homepage": "https://sourceforge.net/projects/wtl/", + "license": "MS-PL" +} |