aboutsummaryrefslogtreecommitdiff
path: root/ports/pthreads
diff options
context:
space:
mode:
authorJack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>2020-06-27 06:06:30 +0800
committerGitHub <noreply@github.com>2020-06-26 15:06:30 -0700
commita0e0c57f865937cdda81c21ad9327e606f7dc930 (patch)
tree86b0d97dd67594d12f3283c1c46cc5e690c1a258 /ports/pthreads
parent81ae2ed94bf51fdd453b383135a809dea3d45cce (diff)
downloadvcpkg-a0e0c57f865937cdda81c21ad9327e606f7dc930.tar.gz
vcpkg-a0e0c57f865937cdda81c21ad9327e606f7dc930.zip
[vcpkg] Add vcpkg_from_sourceforge (1/2) (#11899)
Diffstat (limited to 'ports/pthreads')
-rw-r--r--ports/pthreads/CONTROL2
-rw-r--r--ports/pthreads/portfile.cmake15
2 files changed, 6 insertions, 11 deletions
diff --git a/ports/pthreads/CONTROL b/ports/pthreads/CONTROL
index 9726bcee2..0aadc9715 100644
--- a/ports/pthreads/CONTROL
+++ b/ports/pthreads/CONTROL
@@ -1,5 +1,5 @@
Source: pthreads
-Version: 3.0.0-5
+Version: 3.0.0-6
Homepage: https://sourceware.org/pub/pthreads-win32/
Description: pthreads for windows
Supports: !(uwp|arm|arm64) \ No newline at end of file
diff --git a/ports/pthreads/portfile.cmake b/ports/pthreads/portfile.cmake
index a1806f870..911eb4ded 100644
--- a/ports/pthreads/portfile.cmake
+++ b/ports/pthreads/portfile.cmake
@@ -7,16 +7,11 @@ vcpkg_fail_port_install(MESSAGE "${PORT} does not currently support UWP platform
set(PTHREADS4W_VERSION "3.0.0")
-vcpkg_download_distfile(ARCHIVE
- URLS "https://sourceforge.net/projects/pthreads4w/files/pthreads4w-code-v${PTHREADS4W_VERSION}.zip/download"
- FILENAME "pthreads4w-code-v${PTHREADS4W_VERSION}.zip"
- SHA512 49e541b66c26ddaf812edb07b61d0553e2a5816ab002edc53a38a897db8ada6d0a096c98a9af73a8f40c94283df53094f76b429b09ac49862465d8697ed20013
-)
-
-vcpkg_extract_source_archive_ex(
- OUT_SOURCE_PATH SOURCE_PATH
- ARCHIVE ${ARCHIVE}
- REF ${PTHREADS4W_VERSION}
+vcpkg_from_sourceforge(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO pthreads4w
+ FILENAME "pthreads4w-code-v${PTHREADS4W_VERSION}.zip"
+ SHA512 49e541b66c26ddaf812edb07b61d0553e2a5816ab002edc53a38a897db8ada6d0a096c98a9af73a8f40c94283df53094f76b429b09ac49862465d8697ed20013
)
find_program(NMAKE nmake REQUIRED)