aboutsummaryrefslogtreecommitdiff
path: root/ports/usrsctp
diff options
context:
space:
mode:
authorRobert Schumacher <roschuma@microsoft.com>2018-11-14 15:11:41 -0800
committerRobert Schumacher <roschuma@microsoft.com>2018-12-04 18:01:23 -0800
commit4d1fd42fca46f4c4dfe35011c8c96ff941db3ca6 (patch)
tree6421689984d4d86b4981b8e4d5c6d9c77cd7d968 /ports/usrsctp
parent8f6e2303f5d0fc80236888d7628ba291b5157141 (diff)
downloadvcpkg-4d1fd42fca46f4c4dfe35011c8c96ff941db3ca6.tar.gz
vcpkg-4d1fd42fca46f4c4dfe35011c8c96ff941db3ca6.zip
[vcpkg-toolchains] Use XYZ_INIT CMake variables for _significantly_ better integration
[brynet] Add missing openssl dependency [discord-rpc] Ensure no external downloading [podofo] Improve stability. Modernize. [usrsctp] Disable Werror [vcpkg-toolchains] Add linux changes to android and freebsd. [usrsctp] Remove excess DLLs
Diffstat (limited to 'ports/usrsctp')
-rw-r--r--ports/usrsctp/CONTROL2
-rw-r--r--ports/usrsctp/portfile.cmake29
2 files changed, 12 insertions, 19 deletions
diff --git a/ports/usrsctp/CONTROL b/ports/usrsctp/CONTROL
index 5e5f172ba..426994732 100644
--- a/ports/usrsctp/CONTROL
+++ b/ports/usrsctp/CONTROL
@@ -1,3 +1,3 @@
Source: usrsctp
-Version: 35c1d97020a
+Version: 35c1d97020a-2
Description: This is a userland SCTP stack supporting FreeBSD, Linux, Mac OS X and Windows.
diff --git a/ports/usrsctp/portfile.cmake b/ports/usrsctp/portfile.cmake
index 863b3f75c..416cdc6c3 100644
--- a/ports/usrsctp/portfile.cmake
+++ b/ports/usrsctp/portfile.cmake
@@ -1,7 +1,7 @@
include(vcpkg_common_functions)
-vcpkg_check_linkage(
- ONLY_STATIC_LIBRARY
-)
+
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO sctplab/usrsctp
@@ -10,27 +10,20 @@ vcpkg_from_github(
HEAD_REF master
)
-
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
+ OPTIONS -Dsctp_werror=OFF -Dsctp_build_programs=OFF
)
-
vcpkg_install_cmake()
-vcpkg_copy_pdbs()
-
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
-
-file(GLOB_RECURSE release_dlls ${CURRENT_PACKAGES_DIR}/lib/*.dll)
-file(GLOB_RECURSE debug_dlls ${CURRENT_PACKAGES_DIR}/debug/lib/*.dll)
-if(release_dlls)
- file(REMOVE ${release_dlls})
-endif()
-if(debug_dlls)
- file(REMOVE ${debug_dlls})
-endif()
+file(REMOVE_RECURSE
+ ${CURRENT_PACKAGES_DIR}/debug/include
+ ${CURRENT_PACKAGES_DIR}/debug/lib/usrsctp.dll
+ ${CURRENT_PACKAGES_DIR}/lib/usrsctp.dll
+)
+configure_file(${SOURCE_PATH}/LICENSE.md ${CURRENT_PACKAGES_DIR}/share/usrsctp/copyright COPYONLY)
-file(INSTALL ${SOURCE_PATH}/LICENSE.md DESTINATION ${CURRENT_PACKAGES_DIR}/share/usrsctp RENAME copyright)
+vcpkg_copy_pdbs()