aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStephen Just <stephenjust@gmail.com>2020-12-30 22:36:19 -0800
committerGitHub <noreply@github.com>2020-12-30 22:36:19 -0800
commit6a94f1f8cea7fd9461662dee065757dca3ce33a5 (patch)
treea8d0963e7e4a0930c7089df098b405fa97065df5
parente83c76d5610c7950fec4f75fb6a3766c80a5e58d (diff)
downloadvcpkg-6a94f1f8cea7fd9461662dee065757dca3ce33a5.tar.gz
vcpkg-6a94f1f8cea7fd9461662dee065757dca3ce33a5.zip
[arcus] New port (#15305)
* [arcus] New port Arcus is used by CuraEngine as a library for writing to sockets. Adding this port helps with CuraEngine's build as well as any other projects that depend on Arcus. * review comments * Remove reference to python3 in description since its disabled
-rw-r--r--ports/arcus/CONTROL6
-rw-r--r--ports/arcus/portfile.cmake30
2 files changed, 36 insertions, 0 deletions
diff --git a/ports/arcus/CONTROL b/ports/arcus/CONTROL
new file mode 100644
index 000000000..297d3b055
--- /dev/null
+++ b/ports/arcus/CONTROL
@@ -0,0 +1,6 @@
+Source: arcus
+Version: 4.8.0
+Homepage: https://github.com/Ultimaker/libArcus
+Description: This library contains C++ bindings for creating a socket in a thread and using this socket to send and receive messages based on the Protocol Buffers library.
+Supports: !uwp
+Build-Depends: protobuf
diff --git a/ports/arcus/portfile.cmake b/ports/arcus/portfile.cmake
new file mode 100644
index 000000000..a149c1696
--- /dev/null
+++ b/ports/arcus/portfile.cmake
@@ -0,0 +1,30 @@
+vcpkg_fail_port_install(ON_TARGET "UWP")
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Ultimaker/libArcus
+ REF 4.8.0
+ SHA512 44db9b48ab6be08c30f2121d68197a7347eaf3ee255649969a773afbe45ec2433e2cc082aa72f6d40dad7ea28345da858471fff9a129365a4e848df8c8c07689
+ HEAD_REF master
+)
+
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" ENABLE_STATIC)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DBUILD_PYTHON=OFF
+ -DBUILD_EXAMPLES=OFF
+ -DBUILD_STATIC=${ENABLE_STATIC}
+)
+
+vcpkg_install_cmake()
+
+vcpkg_copy_pdbs()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH lib/cmake/Arcus TARGET_PATH share/arcus)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+configure_file("${SOURCE_PATH}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/arcus/copyright" COPYONLY) \ No newline at end of file