Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[new port] libsmb2 #18471

Merged
merged 15 commits into from
Jun 24, 2021
27 changes: 27 additions & 0 deletions ports/libsmb2/portfile.cmake
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
vcpkg_fail_port_install(ON_TARGET "osx")
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)

vcpkg_from_github(
JonLiu1993 marked this conversation as resolved.
Show resolved Hide resolved
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)
14 changes: 14 additions & 0 deletions ports/libsmb2/vcpkg.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
{
"name": "libsmb2",
"version-date": "2021-04-29",
"description": "SMB2/3 Userspace Client",
"homepage": "https://github.com/sahlberg/libsmb2",
JonLiu1993 marked this conversation as resolved.
Show resolved Hide resolved
"supports": "!osx",
"dependencies": [
"openssl",
{
"name": "vcpkg-cmake-config",
"host": true
}
]
}
4 changes: 4 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
9 changes: 9 additions & 0 deletions versions/l-/libsmb2.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "033110ed64eb6d73a85ab8439c13b84b5ee02891",
"version-date": "2021-04-29",
"port-version": 0
}
]
}