aboutsummaryrefslogtreecommitdiff
path: root/ports/libosip2
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2020-01-06 14:33:00 -0800
committerdan-shaw <51385773+dan-shaw@users.noreply.github.com>2020-01-06 14:33:00 -0800
commit2c7ff757a10a1d63e5fd6e295430f00bd67b902c (patch)
tree7a2e7ecbb196809aeeb874b4a4b7df6e588a0652 /ports/libosip2
parente13ed9547a1e33064622e99fe213018634d3cfa3 (diff)
downloadvcpkg-2c7ff757a10a1d63e5fd6e295430f00bd67b902c.tar.gz
vcpkg-2c7ff757a10a1d63e5fd6e295430f00bd67b902c.zip
[many ports] Add mirror (#9123)
Diffstat (limited to 'ports/libosip2')
-rw-r--r--ports/libosip2/CONTROL2
-rw-r--r--ports/libosip2/portfile.cmake8
2 files changed, 3 insertions, 7 deletions
diff --git a/ports/libosip2/CONTROL b/ports/libosip2/CONTROL
index 32405dcb0..3781c111f 100644
--- a/ports/libosip2/CONTROL
+++ b/ports/libosip2/CONTROL
@@ -1,4 +1,4 @@
Source: libosip2
-Version: 5.1.0-1
+Version: 5.1.0-2
Homepage: https://www.gnu.org/software/osip/
Description: oSIP is an LGPL implementation of SIP. It's stable, portable, flexible and compliant! -may be more-! It is used mostly with eXosip2 stack (GPL) which provides simpler API for User-Agent implementation. \ No newline at end of file
diff --git a/ports/libosip2/portfile.cmake b/ports/libosip2/portfile.cmake
index 94d24e591..60b5c4558 100644
--- a/ports/libosip2/portfile.cmake
+++ b/ports/libosip2/portfile.cmake
@@ -1,13 +1,9 @@
-include(vcpkg_common_functions)
+vcpkg_fail_port_install(MESSAGE "${PORT} only supports Unix currently." ON_TARGET "Windows")
set(LIBOSIP2_VER "5.1.0")
-if (VCPKG_TARGET_IS_WINDOWS)
- message(FATAL_ERROR "libosio2 only support unix currently.")
-endif()
-
vcpkg_download_distfile(ARCHIVE
- URLS "http://ftp.gnu.org/gnu/osip/libosip2-${LIBOSIP2_VER}.tar.gz"
+ URLS "https://ftp.gnu.org/gnu/osip/libosip2-${LIBOSIP2_VER}.tar.gz" "https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/osip/libosip2-${LIBOSIP2_VER}.tar.gz"
FILENAME "libosip2-${LIBOSIP2_VER}.tar.gz"
SHA512 391c9a0ea399f789d7061b0216d327eecba5bbf0429659f4f167604b9e703e1678ba6f58079aa4f84b3636a937064ecfb92e985368164fcb679e95654e43d65b
)