aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkdegreef <mgreef@gmail.com>2019-03-05 08:49:38 +0100
committerPhil Christensen <philc@microsoft.com>2019-03-04 23:49:38 -0800
commit9f622a57656f63ca77772b382fdd5b1b85522cfd (patch)
tree28ee5fb0a5d55c55c91b9d7012cf07ae42463534
parent82e1e3f41ca728ee60058f589e1d9ddaa6f61c72 (diff)
downloadvcpkg-9f622a57656f63ca77772b382fdd5b1b85522cfd.tar.gz
vcpkg-9f622a57656f63ca77772b382fdd5b1b85522cfd.zip
Port file for orocos-kdl (#5517)
-rw-r--r--ports/orocos-kdl/CONTROL4
-rw-r--r--ports/orocos-kdl/portfile.cmake47
2 files changed, 51 insertions, 0 deletions
diff --git a/ports/orocos-kdl/CONTROL b/ports/orocos-kdl/CONTROL
new file mode 100644
index 000000000..af590b4b3
--- /dev/null
+++ b/ports/orocos-kdl/CONTROL
@@ -0,0 +1,4 @@
+Source: orocos-kdl
+Version: 1.4
+Description: Kinematics and Dynamics Library
+Build-Depends: eigen3
diff --git a/ports/orocos-kdl/portfile.cmake b/ports/orocos-kdl/portfile.cmake
new file mode 100644
index 000000000..622a9da93
--- /dev/null
+++ b/ports/orocos-kdl/portfile.cmake
@@ -0,0 +1,47 @@
+# Common Ambient Variables:
+# CURRENT_BUILDTREES_DIR = ${VCPKG_ROOT_DIR}\buildtrees\${PORT}
+# CURRENT_PACKAGES_DIR = ${VCPKG_ROOT_DIR}\packages\${PORT}_${TARGET_TRIPLET}
+# CURRENT_PORT_DIR = ${VCPKG_ROOT_DIR}\ports\${PORT}
+# PORT = current port name (zlib, etc)
+# TARGET_TRIPLET = current triplet (x86-windows, x64-windows-static, etc)
+# VCPKG_CRT_LINKAGE = C runtime linkage type (static, dynamic)
+# VCPKG_LIBRARY_LINKAGE = target library linkage type (static, dynamic)
+# VCPKG_ROOT_DIR = <C:\path\to\current\vcpkg>
+# VCPKG_TARGET_ARCHITECTURE = target architecture (x64, x86, arm)
+#
+
+include(vcpkg_common_functions)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO orocos/orocos_kinematics_dynamics
+ REF v1.4.0
+ SHA512 7156465e2aff02f472933617512069355836a03a02d4587cfe03c1b1d667a9762a4e3ed6e055b2a44f1fce1b6746179203c7204389626a7b458dcab1b28930d8
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}/orocos_kdl
+ PREFER_NINJA # Disable this option if project cannot be built with Ninja
+ # OPTIONS -DUSE_THIS_IN_ALL_BUILDS=1 -DUSE_THIS_TOO=2
+ # OPTIONS_RELEASE -DOPTIMIZE=1
+ # OPTIONS_DEBUG -DDEBUGGABLE=1
+)
+
+vcpkg_install_cmake()
+
+vcpkg_fixup_cmake_targets(CONFIG_PATH "share/orocos_kdl/cmake" TARGET_PATH share/orocos_kdl)
+
+file(REMOVE_RECURSE
+ ${CURRENT_PACKAGES_DIR}/debug/include
+ ${CURRENT_PACKAGES_DIR}/debug/share
+ ${CURRENT_PACKAGES_DIR}/share/doc
+ ${CURRENT_PACKAGES_DIR}/doc/liborocos-kdl)
+
+
+
+# Handle copyright
+file(INSTALL ${SOURCE_PATH}/orocos_kdl/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/orocos-kdl RENAME copyright)
+
+# Post-build test for cmake libraries
+# vcpkg_test_cmake(PACKAGE_NAME orocos-kdl)