aboutsummaryrefslogtreecommitdiff
path: root/ports/rbdl
diff options
context:
space:
mode:
authorPhoebe <20694052+PhoebeHui@users.noreply.github.com>2021-08-10 00:07:37 +0800
committerGitHub <noreply@github.com>2021-08-09 09:07:37 -0700
commite1e7daf3abb8b55b8034360263e1c0d29429fdff (patch)
treecf8bab6b67de02587d9c612c3f739955f3dc2256 /ports/rbdl
parent7893cbb48a8e639e6a8d63819ca7610327907de8 (diff)
downloadvcpkg-e1e7daf3abb8b55b8034360263e1c0d29429fdff.tar.gz
vcpkg-e1e7daf3abb8b55b8034360263e1c0d29429fdff.zip
[vcpkg baseline][rbdl-orb/rbdl/ptex] file conflicts, skip rbdl-orb in CI testing (#19453)
* [vcpkg baseline][rbdl-orb/rbdl] file conflicts, skip rbdl-orb in Ci testing * [ptex] Add DISABLE_PARALLEL_CONFIGURE * Update the baseline version * Add missing quotes * Update the baseline version
Diffstat (limited to 'ports/rbdl')
-rw-r--r--ports/rbdl/CONTROL6
-rw-r--r--ports/rbdl/portfile.cmake21
-rw-r--r--ports/rbdl/vcpkg.json14
3 files changed, 23 insertions, 18 deletions
diff --git a/ports/rbdl/CONTROL b/ports/rbdl/CONTROL
deleted file mode 100644
index 1a674323c..000000000
--- a/ports/rbdl/CONTROL
+++ /dev/null
@@ -1,6 +0,0 @@
-Source: rbdl
-Version: 2.6.0
-Port-Version: 0
-Homepage: https://github.com/rbdl/rbdl
-Description: Rigid Body Dynamics Library
-Build-Depends: eigen3
diff --git a/ports/rbdl/portfile.cmake b/ports/rbdl/portfile.cmake
index adf580e6d..362bb19bd 100644
--- a/ports/rbdl/portfile.cmake
+++ b/ports/rbdl/portfile.cmake
@@ -1,9 +1,9 @@
-if (VCPKG_LIBRARY_LINKAGE STREQUAL static)
- set(RBDL_STATIC ON)
-else()
- set(RBDL_STATIC OFF)
+if (EXISTS "${CURRENT_INSTALLED_DIR}/share/rbdl-orb/copyright")
+ message(FATAL_ERROR "${PORT} conflict with rbdl-orb, please remove rbdl-orb before install ${PORT}.")
endif()
+string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "static" RBDL_STATIC)
+
vcpkg_from_github(ARCHIVE
OUT_SOURCE_PATH SOURCE_PATH
REPO rbdl/rbdl
@@ -14,19 +14,16 @@ vcpkg_from_github(ARCHIVE
)
-vcpkg_configure_cmake(
- SOURCE_PATH ${SOURCE_PATH}
- PREFER_NINJA # Disable this option if project cannot be built with Ninja
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DRBDL_BUILD_STATIC=${RBDL_STATIC}
)
-vcpkg_install_cmake()
-
-# # Handle copyright
-file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
+vcpkg_cmake_install()
-# # Remove duplicated include directory
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_copy_pdbs()
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
diff --git a/ports/rbdl/vcpkg.json b/ports/rbdl/vcpkg.json
new file mode 100644
index 000000000..ee07f6de7
--- /dev/null
+++ b/ports/rbdl/vcpkg.json
@@ -0,0 +1,14 @@
+{
+ "name": "rbdl",
+ "version": "2.6.0",
+ "port-version": 1,
+ "description": "Rigid Body Dynamics Library",
+ "homepage": "https://github.com/rbdl/rbdl",
+ "dependencies": [
+ "eigen3",
+ {
+ "name": "vcpkg-cmake",
+ "host": true
+ }
+ ]
+}