diff options
| author | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
|---|---|---|
| committer | Ethan Morgan <ethan@gweithio.com> | 2026-02-14 16:44:06 +0000 |
| commit | 54409423f767d8b1cf30cb7d0efca6b4ca138823 (patch) | |
| tree | d915ac7828703ce4b963efdd9728a1777ba18c1e /vcpkg/ports/qcustomplot | |
Diffstat (limited to 'vcpkg/ports/qcustomplot')
| -rw-r--r-- | vcpkg/ports/qcustomplot/config.patch | 25 | ||||
| -rw-r--r-- | vcpkg/ports/qcustomplot/portfile.cmake | 34 | ||||
| -rw-r--r-- | vcpkg/ports/qcustomplot/vcpkg.json | 20 |
3 files changed, 79 insertions, 0 deletions
diff --git a/vcpkg/ports/qcustomplot/config.patch b/vcpkg/ports/qcustomplot/config.patch new file mode 100644 index 0000000..fac3a09 --- /dev/null +++ b/vcpkg/ports/qcustomplot/config.patch @@ -0,0 +1,25 @@ +--- a/sharedlib-compilation/sharedlib-compilation.pro
++++ b/sharedlib-compilation/sharedlib-compilation.pro
+@@ -10,7 +10,6 @@
+
+ DEFINES += QCUSTOMPLOT_COMPILE_LIBRARY
+ TEMPLATE = lib
+-CONFIG += debug_and_release build_all
+ static {
+ CONFIG += static
+ } else {
+@@ -33,3 +32,14 @@
+
+ SOURCES += ../../qcustomplot.cpp
+ HEADERS += ../../qcustomplot.h
++win32 {
++ dlltarget.path = $$[QT_INSTALL_BINS]
++ INSTALLS += dlltarget
++}
++target.path = $$[QT_INSTALL_LIBS]
++!static: target.CONFIG = no_dll
++INSTALLS += target
++
++headers.files += ../../qcustomplot.h
++headers.path = $$[QT_INSTALL_PREFIX]/include
++INSTALLS += headers
diff --git a/vcpkg/ports/qcustomplot/portfile.cmake b/vcpkg/ports/qcustomplot/portfile.cmake new file mode 100644 index 0000000..f0038d0 --- /dev/null +++ b/vcpkg/ports/qcustomplot/portfile.cmake @@ -0,0 +1,34 @@ +vcpkg_download_distfile(ARCHIVE
+ URLS "https://www.qcustomplot.com/release/${VERSION}/QCustomPlot.tar.gz"
+ FILENAME "QCustomPlot-${VERSION}.tar.gz"
+ SHA512 2e49a9b3f7ab03bcd580e5f3c3ae0d5e8c57d3ccce0ceed9862cde7ea23e2f3672a963af988be60e504cb5aa50bc462e4b28acf577eae41cc6fea2802642dc19
+)
+vcpkg_extract_source_archive(
+ SOURCE_PATH
+ ARCHIVE "${ARCHIVE}"
+)
+
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://www.qcustomplot.com/release/${VERSION}/QCustomPlot-sharedlib.tar.gz"
+ FILENAME "QCustomPlot-sharedlib-${VERSION}.tar.gz"
+ SHA512 c661e4a835066fee92b254fbd7b825dbd5c58973189ff2099a01308cb81fe6bf3bac1456f5da91f01c6265f8f548f61b57e237d00a9b5c2c94acf1a024baa18e
+)
+vcpkg_extract_source_archive(
+ SharedLib_SOURCE_PATH
+ ARCHIVE "${ARCHIVE}"
+ PATCHES
+ config.patch
+)
+file(RENAME "${SharedLib_SOURCE_PATH}" "${SOURCE_PATH}/qcustomplot-sharedlib")
+
+vcpkg_qmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}/qcustomplot-sharedlib/sharedlib-compilation/sharedlib-compilation.pro"
+ QMAKE_OPTIONS
+ "${OSX_OPTIONS}"
+)
+vcpkg_qmake_install()
+
+vcpkg_copy_pdbs()
+
+# Handle copyright
+configure_file(${SOURCE_PATH}/GPL.txt ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright COPYONLY)
diff --git a/vcpkg/ports/qcustomplot/vcpkg.json b/vcpkg/ports/qcustomplot/vcpkg.json new file mode 100644 index 0000000..c8bd342 --- /dev/null +++ b/vcpkg/ports/qcustomplot/vcpkg.json @@ -0,0 +1,20 @@ +{ + "name": "qcustomplot", + "version": "2.1.1", + "port-version": 1, + "description": "QCustomPlot is a Qt C++ widget for plotting and data visualization.", + "homepage": "https://www.qcustomplot.com/", + "license": "GPL-3.0-or-later", + "supports": "!xbox", + "dependencies": [ + { + "name": "qtbase", + "default-features": false + }, + { + "name": "vcpkg-qmake", + "host": true, + "default-features": false + } + ] +} |