aboutsummaryrefslogtreecommitdiff
path: root/ports
diff options
context:
space:
mode:
authorTobias Kohlbau <tobias@kohlbau.de>2017-03-28 10:48:26 +0200
committerTobias Kohlbau <tobias@kohlbau.de>2017-03-28 10:51:53 +0200
commita9aaead2d19c60a51edbaaddd97b745c51714220 (patch)
treee0632fa068b11edd4be13e1ee191d65616a4cffb /ports
parent4fbcf0df4dd14176eda7d686bf122d0b65c0585a (diff)
parenta1cfa18481f9ea0f7eaaaeb34832d89c51f5f4f1 (diff)
downloadvcpkg-a9aaead2d19c60a51edbaaddd97b745c51714220.tar.gz
vcpkg-a9aaead2d19c60a51edbaaddd97b745c51714220.zip
Merge branch 'master' of github.com:Microsoft/vcpkg into opencv_contrib
Diffstat (limited to 'ports')
-rw-r--r--ports/opencv/open_contrib-remove-waldboost.patch11
-rw-r--r--ports/pybind11/CONTROL3
-rw-r--r--ports/pybind11/portfile.cmake22
3 files changed, 26 insertions, 10 deletions
diff --git a/ports/opencv/open_contrib-remove-waldboost.patch b/ports/opencv/open_contrib-remove-waldboost.patch
index f8e52d3fc..6c4da30ae 100644
--- a/ports/opencv/open_contrib-remove-waldboost.patch
+++ b/ports/opencv/open_contrib-remove-waldboost.patch
@@ -1,12 +1,3 @@
-From 1721a0f7ff75176e9a9f0e04dc11f1a5d5c0f550 Mon Sep 17 00:00:00 2001
-From: Tobias Kohlbau <tobias.kohlbau@etit.tu-chemnitz.de>
-Date: Mon, 27 Mar 2017 14:53:47 +0200
-Subject: [PATCH] removes waldboost_detector binary
-
----
- modules/xobjdetect/CMakeLists.txt | 3 ---
- 1 file changed, 3 deletions(-)
-
diff --git a/modules/xobjdetect/CMakeLists.txt b/modules/xobjdetect/CMakeLists.txt
index 567909b..2f30b41 100644
--- a/modules/xobjdetect/CMakeLists.txt
@@ -17,6 +8,6 @@ index 567909b..2f30b41 100644
-if (NOT APPLE_FRAMEWORK)
- add_subdirectory(tools)
-endif()
---
+--
2.12.0.windows.1
diff --git a/ports/pybind11/CONTROL b/ports/pybind11/CONTROL
new file mode 100644
index 000000000..a51fd173c
--- /dev/null
+++ b/ports/pybind11/CONTROL
@@ -0,0 +1,3 @@
+Source: pybind11
+Version: 2.1.0
+Description: pybind11 is a lightweight header-only library that exposes C++ types in Python and vice versa, mainly to create Python bindings of existing C++ code. \ No newline at end of file
diff --git a/ports/pybind11/portfile.cmake b/ports/pybind11/portfile.cmake
new file mode 100644
index 000000000..933efbd19
--- /dev/null
+++ b/ports/pybind11/portfile.cmake
@@ -0,0 +1,22 @@
+include(vcpkg_common_functions)
+
+set(SOURCE_PATH ${CURRENT_BUILDTREES_DIR}/src/pybind11-2.1.0)
+
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://github.com/pybind/pybind11/archive/v2.1.0.tar.gz"
+ FILENAME "pybind11-2.1.0.tar.gz"
+ SHA512 2f74dcd2b82d8e41da7db36351284fe04511038bec66bdde820da9c0fce92f6d2c5aeb2e48264058a91a775a1a6a99bc757d26ebf001de3df4183d700d46efa1
+)
+vcpkg_extract_source_archive(${ARCHIVE})
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS -DPYBIND11_TEST=OFF
+)
+
+vcpkg_install_cmake()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/)
+
+# copy license
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/pybind11/copyright) \ No newline at end of file