aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
Diffstat (limited to 'ports')
-rw-r--r--ports/ceres/CONTROL24
-rw-r--r--ports/ceres/portfile.cmake1
-rw-r--r--ports/ceres/vcpkg.json52
-rw-r--r--ports/wepoll/CONTROL4
-rw-r--r--ports/wepoll/vcpkg.json8
5 files changed, 61 insertions, 28 deletions
diff --git a/ports/ceres/CONTROL b/ports/ceres/CONTROL
deleted file mode 100644
index 2ad6f31be..000000000
--- a/ports/ceres/CONTROL
+++ /dev/null
@@ -1,24 +0,0 @@
-Source: ceres
-Version: 2.0.0
-Build-Depends: glog, eigen3
-Homepage: https://github.com/ceres-solver/ceres-solver
-Description: non-linear optimization package
-
-Feature: lapack
-Build-Depends: lapack
-Description: Use Lapack in Ceres
-
-Feature: suitesparse
-Build-Depends: ceres[lapack], suitesparse[core]
-Description: SuiteSparse support for Ceres
-
-Feature: cxsparse
-Build-Depends: suitesparse[core]
-Description: CXSparse support for Ceres
-
-Feature: eigensparse
-Description: Use of Eigen as a sparse linear algebra library in Ceres
-
-Feature: tools
-Build-Depends: gflags
-Description: Ceres tools
diff --git a/ports/ceres/portfile.cmake b/ports/ceres/portfile.cmake
index c1dca74a9..d106217e6 100644
--- a/ports/ceres/portfile.cmake
+++ b/ports/ceres/portfile.cmake
@@ -38,6 +38,7 @@ vcpkg_configure_cmake(
OPTIONS
${FEATURE_OPTIONS}
-DEXPORT_BUILD_DIR=ON
+ -DBUILD_BENCHMARKS=OFF
-DBUILD_EXAMPLES=OFF
-DBUILD_TESTING=OFF
-DMSVC_USE_STATIC_CRT=${MSVC_USE_STATIC_CRT_VALUE}
diff --git a/ports/ceres/vcpkg.json b/ports/ceres/vcpkg.json
new file mode 100644
index 000000000..7a7177833
--- /dev/null
+++ b/ports/ceres/vcpkg.json
@@ -0,0 +1,52 @@
+{
+ "name": "ceres",
+ "version-string": "2.0.0",
+ "port-version": 1,
+ "description": "non-linear optimization package",
+ "homepage": "https://github.com/ceres-solver/ceres-solver",
+ "dependencies": [
+ "eigen3",
+ "glog"
+ ],
+ "features": {
+ "cxsparse": {
+ "description": "CXSparse support for Ceres",
+ "dependencies": [
+ {
+ "name": "suitesparse",
+ "default-features": false
+ }
+ ]
+ },
+ "eigensparse": {
+ "description": "Use of Eigen as a sparse linear algebra library in Ceres"
+ },
+ "lapack": {
+ "description": "Use Lapack in Ceres",
+ "dependencies": [
+ "lapack"
+ ]
+ },
+ "suitesparse": {
+ "description": "SuiteSparse support for Ceres",
+ "dependencies": [
+ {
+ "name": "ceres",
+ "features": [
+ "lapack"
+ ]
+ },
+ {
+ "name": "suitesparse",
+ "default-features": false
+ }
+ ]
+ },
+ "tools": {
+ "description": "Ceres tools",
+ "dependencies": [
+ "gflags"
+ ]
+ }
+ }
+}
diff --git a/ports/wepoll/CONTROL b/ports/wepoll/CONTROL
deleted file mode 100644
index f4882434a..000000000
--- a/ports/wepoll/CONTROL
+++ /dev/null
@@ -1,4 +0,0 @@
-Source: wepoll
-Version: 1.5.8
-Description: Fast epoll for windows
-Homepage: https://github.com/piscisaureus/wepoll
diff --git a/ports/wepoll/vcpkg.json b/ports/wepoll/vcpkg.json
new file mode 100644
index 000000000..c2d14c637
--- /dev/null
+++ b/ports/wepoll/vcpkg.json
@@ -0,0 +1,8 @@
+{
+ "name": "wepoll",
+ "version-string": "1.5.8",
+ "port-version": 1,
+ "description": "Fast epoll for windows",
+ "homepage": "https://github.com/piscisaureus/wepoll",
+ "supports": "windows"
+}