aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Karatarakis <alex@karatarakis.com>2018-02-26 14:09:57 -0800
committerGitHub <noreply@github.com>2018-02-26 14:09:57 -0800
commitb0bea71d57b150f9da27fdec91773c540abc3c5c (patch)
tree89cb323b3a79af8872a3e4af2573abbb250b462e
parent71d44cebdb85926bc00241fc08f0dcaaedb868d2 (diff)
parentab5932e4a18b6240196b148f7d1c60fb9080c3d7 (diff)
downloadvcpkg-b0bea71d57b150f9da27fdec91773c540abc3c5c.tar.gz
vcpkg-b0bea71d57b150f9da27fdec91773c540abc3c5c.zip
Merge pull request #2872 from cmpute/lcm
Add package LCM
-rw-r--r--ports/lcm/CONTROL5
-rw-r--r--ports/lcm/portfile.cmake33
2 files changed, 38 insertions, 0 deletions
diff --git a/ports/lcm/CONTROL b/ports/lcm/CONTROL
new file mode 100644
index 000000000..e6b9803fe
--- /dev/null
+++ b/ports/lcm/CONTROL
@@ -0,0 +1,5 @@
+Source: lcm
+Version: 1.3.95
+Build-Depends: glib
+Description: Lightweight Communications and Marshalling (LCM)
+ LCM is a set of libraries and tools for message passing and data marshalling, targeted at real-time systems where high-bandwidth and low latency are critical. It provides a publish/subscribe message passing model and automatic marshalling/unmarshalling code generation with bindings for applications in a variety of programming languages.
diff --git a/ports/lcm/portfile.cmake b/ports/lcm/portfile.cmake
new file mode 100644
index 000000000..98f34e2ca
--- /dev/null
+++ b/ports/lcm/portfile.cmake
@@ -0,0 +1,33 @@
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO lcm-proj/lcm
+ REF 82bd3a223e3227c70832307e53a65c13c1e5f81b
+ SHA512 5d3abf457e18a3bb50489ed17393c5416a459134f73c264e67d174a29411d6deb70c754b5669422a438ea3e5793b9b1b91d67e9d842151c5a910245fede5879f
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+ OPTIONS
+ -DLCM_ENABLE_TESTS=OFF
+)
+
+vcpkg_install_cmake()
+vcpkg_copy_pdbs()
+vcpkg_fixup_cmake_targets(CONFIG_PATH cmake)
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/aclocal)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/java)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/share/man)
+
+file(COPY ${CURRENT_PACKAGES_DIR}/bin/lcm-gen.exe DESTINATION ${CURRENT_PACKAGES_DIR}/tools/lcm)
+vcpkg_copy_tool_dependencies(${CURRENT_PACKAGES_DIR}/tools/lcm)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/bin)
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin)
+
+file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/lcm RENAME copyright)