aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/qwtw
diff options
context:
space:
mode:
authorEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
committerEthan Morgan <ethan@gweithio.com>2026-02-14 16:44:06 +0000
commit54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch)
treed915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/qwtw
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/qwtw')
-rw-r--r--vcpkg/ports/qwtw/add-include-chrono.patch12
-rw-r--r--vcpkg/ports/qwtw/fix-asio-error.patch68
-rw-r--r--vcpkg/ports/qwtw/portfile.cmake18
-rw-r--r--vcpkg/ports/qwtw/vcpkg.json27
4 files changed, 125 insertions, 0 deletions
diff --git a/vcpkg/ports/qwtw/add-include-chrono.patch b/vcpkg/ports/qwtw/add-include-chrono.patch
new file mode 100644
index 0000000..fc5fb23
--- /dev/null
+++ b/vcpkg/ports/qwtw/add-include-chrono.patch
@@ -0,0 +1,12 @@
+diff --git a/qwtw/qwtest2.cpp b/qwtw/qwtest2.cpp
+index 97af0cc..470f6cd 100644
+--- a/qwtw/qwtest2.cpp
++++ b/qwtw/qwtest2.cpp
+@@ -7,6 +7,7 @@
+ #include <iostream>
+ #include <math.h>
+ #include <conio.h>
++#include <chrono>
+
+ #include <iomanip>
+ #include <locale>
diff --git a/vcpkg/ports/qwtw/fix-asio-error.patch b/vcpkg/ports/qwtw/fix-asio-error.patch
new file mode 100644
index 0000000..722ba56
--- /dev/null
+++ b/vcpkg/ports/qwtw/fix-asio-error.patch
@@ -0,0 +1,68 @@
+diff --git a/qwtw/sfigure.cpp b/qwtw/sfigure.cpp
+index f3e1642..3a77148 100644
+--- a/qwtw/sfigure.cpp
++++ b/qwtw/sfigure.cpp
+@@ -57,9 +57,9 @@ struct BroadcastMessage {
+ #pragma pack()
+ class BCUdpClient {
+ public:
+- BCUdpClient() : resolver(io_service), q(udp::v4(), "127.0.0.1", "49561"), socket(io_service) {
++ BCUdpClient() : resolver(io_context), socket(io_context) {
+
+- destination = boost::asio::ip::udp::endpoint(boost::asio::ip::address::from_string("127.0.0.1"), 49561);
++ destination = boost::asio::ip::udp::endpoint(boost::asio::ip::make_address("127.0.0.1"), 49561);
+
+ //receiver_endpoint = *resolver.resolve(q);
+ socket.open(udp::v4());
+@@ -76,9 +76,8 @@ public:
+ }
+
+ private:
+- boost::asio::io_service io_service;
++ boost::asio::io_context io_context;
+ udp::resolver resolver;
+- udp::resolver::query q;
+ boost::asio::ip::udp::endpoint destination;
+ udp::endpoint receiver_endpoint;
+ udp::socket socket;
+@@ -93,14 +92,14 @@ private:
+ std::mutex mu;
+ std::thread st;
+ volatile bool pleaseStop;
+- boost::asio::io_service io_service;
++ boost::asio::io_context io_context;
+ udp::socket socket_;
+ udp::endpoint remote_endpoint_;
+ unsigned char rb[256];
+ std::function<void(double[3])> onPointF;
+
+ public:
+- BCUdpServer() : socket_(io_service, udp::endpoint(udp::v4(), 49562)) {
++ BCUdpServer() : socket_(io_context, udp::endpoint(udp::v4(), 49562)) {
+ created = false;
+ createdMarker = false;
+ somethingWasChanged = false;
+@@ -123,11 +122,11 @@ public:
+ return;
+ }
+ // wait for the task to finish??
+- boost::asio::io_service io_service1;
+- udp::socket s1(io_service1);
++ boost::asio::io_context io_context1;
++ udp::socket s1(io_context1);
+ s1.open(udp::v4());
+ unsigned char b[5];
+- boost::asio::ip::udp::endpoint destination = boost::asio::ip::udp::endpoint(boost::asio::ip::address::from_string("127.0.0.1"), 49562);
++ boost::asio::ip::udp::endpoint destination = boost::asio::ip::udp::endpoint(boost::asio::ip::make_address("127.0.0.1"), 49562);
+ try {
+ s1.send_to(boost::asio::buffer(b, 5), destination);
+ s1.send_to(boost::asio::buffer(b, 5), destination);
+@@ -146,7 +145,7 @@ public:
+ try {
+ start_receive();
+ xm_printf("BCUdpServer tcpThread started\n");
+- io_service.run();
++ io_context.run();
+ } catch (std::exception& e) {
+ std::cerr << e.what() << std::endl;
+ xm_printf("TRACE: RDFramerDebugGuiUpdateCallback exception: %s \n", e.what());
diff --git a/vcpkg/ports/qwtw/portfile.cmake b/vcpkg/ports/qwtw/portfile.cmake
new file mode 100644
index 0000000..d2e2152
--- /dev/null
+++ b/vcpkg/ports/qwtw/portfile.cmake
@@ -0,0 +1,18 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ig-or/qwtw
+ REF 7d6e7c95437cbc7d5d123fc1ccf0d6a3c4e419e6 # v3.1.0
+ SHA512 de5abf26d0975b9f0ed88e10cd4d5b4d12e25cce8c87ab6a18d8e7064697de6fc8da83e118b5a4e2819c09e2dbbfd20daeecc6a42748c019c6699666276d075a
+ HEAD_REF master
+ PATCHES
+ add-include-chrono.patch
+ fix-asio-error.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
diff --git a/vcpkg/ports/qwtw/vcpkg.json b/vcpkg/ports/qwtw/vcpkg.json
new file mode 100644
index 0000000..1cf9f6e
--- /dev/null
+++ b/vcpkg/ports/qwtw/vcpkg.json
@@ -0,0 +1,27 @@
+{
+ "name": "qwtw",
+ "version": "3.1.0",
+ "port-version": 5,
+ "description": "qwt-based 2D plotting library",
+ "homepage": "https://github.com/ig-or/qwtw",
+ "supports": "windows & x64 & !static",
+ "dependencies": [
+ "boost-asio",
+ "boost-chrono",
+ "boost-circular-buffer",
+ "boost-date-time",
+ "boost-filesystem",
+ "boost-regex",
+ "boost-system",
+ "boost-thread",
+ "marble",
+ "qt5-base",
+ "qt5-networkauth",
+ "qt5-svg",
+ "qwt",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}