aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortimmeh87 <31858838+timmeh87@users.noreply.github.com>2021-06-24 16:11:50 -0400
committerGitHub <noreply@github.com>2021-06-24 13:11:50 -0700
commit5ff4ce05c11d9d258c883c80c8c036f095cada49 (patch)
tree967cb1debf7236a7b623f8cc608b06e75ff21a37
parentcd6df79981f8e5b658900563370f3af16074850e (diff)
downloadvcpkg-5ff4ce05c11d9d258c883c80c8c036f095cada49.tar.gz
vcpkg-5ff4ce05c11d9d258c883c80c8c036f095cada49.zip
[libsmb2] New port (#18471)
* added libsmb2 port * added version file * updated baseline * Ran command ./vcpkg x-add-version --all and then ./vcpkg format-manifest ports/libsmb2/vcpkg.json * updated SHA based on result of "./vcpkg x-add-version libsmb2" and also added osx=fail to CI file in order to pass CI * suggested changes made * sha * Update scripts/ci.baseline.txt Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/libsmb2/vcpkg.json Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * Update ports/libsmb2/portfile.cmake Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * sha * added missing "vcpkg_check_linkage(ONLY_STATIC_LIBRARY)" * sha * vcpkg_fixup_pkgconfig() * sha Co-authored-by: Tim <tim@fake.WHAT> Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
-rw-r--r--ports/libsmb2/portfile.cmake27
-rw-r--r--ports/libsmb2/vcpkg.json14
-rw-r--r--versions/baseline.json4
-rw-r--r--versions/l-/libsmb2.json9
4 files changed, 54 insertions, 0 deletions
diff --git a/ports/libsmb2/portfile.cmake b/ports/libsmb2/portfile.cmake
new file mode 100644
index 000000000..4558f3e01
--- /dev/null
+++ b/ports/libsmb2/portfile.cmake
@@ -0,0 +1,27 @@
+vcpkg_fail_port_install(ON_TARGET "osx")
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO sahlberg/libsmb2
+ REF d8c85a3119a0bd769590e448216130b368cd1099
+ SHA512 d15a040ed6314ad6f7984cfa7b52d9ede9934b2a7ec9827e833f574c25c9f694b5372b3e0950e258a6244b7aaf32b9e59987a75a88681d8031d9837ba94629d5
+ HEAD_REF master
+)
+
+vcpkg_configure_cmake(
+ SOURCE_PATH ${SOURCE_PATH}
+ PREFER_NINJA
+)
+
+vcpkg_install_cmake()
+vcpkg_copy_pdbs()
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/${PORT})
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+#the debug/share folder is generated empty by the provided cmake system
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
+
+file(INSTALL ${SOURCE_PATH}/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/libsmb2/vcpkg.json b/ports/libsmb2/vcpkg.json
new file mode 100644
index 000000000..4b5b2b9a9
--- /dev/null
+++ b/ports/libsmb2/vcpkg.json
@@ -0,0 +1,14 @@
+{
+ "name": "libsmb2",
+ "version-date": "2021-04-29",
+ "description": "SMB2/3 Userspace Client",
+ "homepage": "https://github.com/sahlberg/libsmb2",
+ "supports": "!osx",
+ "dependencies": [
+ "openssl",
+ {
+ "name": "vcpkg-cmake-config",
+ "host": true
+ }
+ ]
+}
diff --git a/versions/baseline.json b/versions/baseline.json
index 074b6b041..a739bb39a 100644
--- a/versions/baseline.json
+++ b/versions/baseline.json
@@ -3535,6 +3535,10 @@
"libsigcpp-3": {
"baseline": "3.0.3",
"port-version": 1
+ },
+ "libsmb2": {
+ "baseline": "2021-04-29",
+ "port-version": 0
},
"libsndfile": {
"baseline": "1.0.31",
diff --git a/versions/l-/libsmb2.json b/versions/l-/libsmb2.json
new file mode 100644
index 000000000..3e27f55b6
--- /dev/null
+++ b/versions/l-/libsmb2.json
@@ -0,0 +1,9 @@
+{
+ "versions": [
+ {
+ "git-tree": "033110ed64eb6d73a85ab8439c13b84b5ee02891",
+ "version-date": "2021-04-29",
+ "port-version": 0
+ }
+ ]
+}