aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/quarter
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/quarter
move to own git serverHEADmaster
Diffstat (limited to 'vcpkg/ports/quarter')
-rw-r--r--vcpkg/ports/quarter/portfile.cmake33
-rw-r--r--vcpkg/ports/quarter/usage4
-rw-r--r--vcpkg/ports/quarter/vcpkg.json28
3 files changed, 65 insertions, 0 deletions
diff --git a/vcpkg/ports/quarter/portfile.cmake b/vcpkg/ports/quarter/portfile.cmake
new file mode 100644
index 0000000..6484424
--- /dev/null
+++ b/vcpkg/ports/quarter/portfile.cmake
@@ -0,0 +1,33 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO coin3d/quarter
+ REF "v${VERSION}"
+ SHA512 14c382d25e47b54d6ff747830131b0646dba398325ec1c748e543af2b2e1d8f690a34d2cdb18159dbc930dde0b9c8749bf437d8eb02d68b21bc597bb13796ea6
+ HEAD_REF master
+)
+
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" QUARTER_BUILD_SHARED_LIBS)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS
+ -DQUARTER_BUILD_SHARED_LIBS=${QUARTER_BUILD_SHARED_LIBS}
+ -DQUARTER_USE_QT6=ON
+ -DQUARTER_USE_QT5=OFF
+ -DQUARTER_BUILD_PLUGIN=OFF
+ -DQUARTER_BUILD_EXAMPLES=OFF
+ -DQUARTER_BUILD_DOCUMENTATION=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_copy_pdbs()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Quarter-${VERSION})
+# Qt6 pkg-config files not installed https://github.com/microsoft/vcpkg/issues/25988
+# vcpkg_fixup_pkgconfig()
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/pkgconfig" "${CURRENT_PACKAGES_DIR}/debug/lib/pkgconfig")
+
+vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}") \ No newline at end of file
diff --git a/vcpkg/ports/quarter/usage b/vcpkg/ports/quarter/usage
new file mode 100644
index 0000000..9a3283a
--- /dev/null
+++ b/vcpkg/ports/quarter/usage
@@ -0,0 +1,4 @@
+The package quarter provides CMake targets:
+
+ find_package(Quarter CONFIG REQUIRED)
+ target_link_libraries(main PRIVATE Quarter::Quarter)
diff --git a/vcpkg/ports/quarter/vcpkg.json b/vcpkg/ports/quarter/vcpkg.json
new file mode 100644
index 0000000..c9d9292
--- /dev/null
+++ b/vcpkg/ports/quarter/vcpkg.json
@@ -0,0 +1,28 @@
+{
+ "name": "quarter",
+ "version": "1.2.3",
+ "port-version": 1,
+ "description": "Coin3D GUI binding for Qt",
+ "homepage": "https://coin3d.github.io/quarter/",
+ "license": "BSD-3-Clause",
+ "supports": "!android & !uwp",
+ "dependencies": [
+ "coin",
+ {
+ "name": "qtbase",
+ "default-features": false
+ },
+ {
+ "name": "qttools",
+ "default-features": false
+ },
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ },
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}