aboutsummaryrefslogtreecommitdiff
path: root/ports/freetds
diff options
context:
space:
mode:
Diffstat (limited to 'ports/freetds')
-rw-r--r--ports/freetds/CONTROL2
-rw-r--r--ports/freetds/crypt32.patch25
-rw-r--r--ports/freetds/portfile.cmake8
3 files changed, 31 insertions, 4 deletions
diff --git a/ports/freetds/CONTROL b/ports/freetds/CONTROL
index 77be05f40..bfd1e44d4 100644
--- a/ports/freetds/CONTROL
+++ b/ports/freetds/CONTROL
@@ -1,5 +1,5 @@
Source: freetds
-Version: 1.1.6-1
+Version: 1.1.17
Homepage: https://www.freetds.org
Description: Implementation of the Tabular Data Stream protocol
Default-Features: openssl
diff --git a/ports/freetds/crypt32.patch b/ports/freetds/crypt32.patch
new file mode 100644
index 000000000..a3af75693
--- /dev/null
+++ b/ports/freetds/crypt32.patch
@@ -0,0 +1,25 @@
+diff --git a/CMakeLists.txt b/CMakeLists.txt
+index 796625e17..fc9076f54 100644
+--- a/CMakeLists.txt
++++ b/CMakeLists.txt
+@@ -149,6 +149,9 @@ if(OPENSSL_FOUND)
+ config_write("#define HAVE_OPENSSL 1\n\n")
+ include_directories(${OPENSSL_INCLUDE_DIR})
+ set(CMAKE_REQUIRED_LIBRARIES ${OPENSSL_LIBRARIES})
++ if(WIN32)
++ list(APPEND CMAKE_REQUIRED_LIBRARIES crypt32 ws2_32)
++ endif()
+ check_function_exists_define(BIO_get_data)
+ check_function_exists_define(RSA_get0_key)
+ check_function_exists_define(ASN1_STRING_get0_data)
+@@ -441,7 +444,10 @@ else(WIN32)
+ endif(WIN32)
+
+ if(OPENSSL_FOUND)
+ set(lib_NETWORK ${lib_NETWORK} ${OPENSSL_LIBRARIES})
++ if(WIN32)
++ list(APPEND lib_NETWORK crypt32)
++ endif()
+ elseif(GNUTLS_FOUND)
+ set(lib_NETWORK ${lib_NETWORK} ${lib_GNUTLS})
+ endif(OPENSSL_FOUND)
diff --git a/ports/freetds/portfile.cmake b/ports/freetds/portfile.cmake
index a03fd0c9c..eb833b30a 100644
--- a/ports/freetds/portfile.cmake
+++ b/ports/freetds/portfile.cmake
@@ -1,14 +1,16 @@
include(vcpkg_common_functions)
vcpkg_download_distfile(ARCHIVE
- URLS "https://www.freetds.org/files/stable/freetds-1.1.6.tar.bz2"
- FILENAME "freetds-1.1.6.tar.bz2"
- SHA512 160c8638302fd36a3f42d031dbd58525cde899b64d320f6187ce5865ea2c049a1af63be419623e4cd18ccf229dd2ee7ec509bc5721c3371de0f31710dad7470d
+ URLS "https://www.freetds.org/files/stable/freetds-1.1.17.tar.bz2"
+ FILENAME "freetds-1.1.17.tar.bz2"
+ SHA512 3746ea009403960950fd619ffaf6433cfc92c34a8261b15e61009f01a1446e5a5a59413cd48e5511bbf3a0224f54b40daa713187bd20ca43105c5f8c68f4b88e
)
vcpkg_extract_source_archive_ex(
OUT_SOURCE_PATH SOURCE_PATH
ARCHIVE ${ARCHIVE}
+ PATCHES
+ crypt32.patch
)
set(BUILD_freetds_openssl OFF)