aboutsummaryrefslogtreecommitdiff
path: root/ports/libgnutls
diff options
context:
space:
mode:
authorDawid Wróbel <me@dawidwrobel.com>2021-03-25 15:16:08 -0400
committerGitHub <noreply@github.com>2021-03-25 12:16:08 -0700
commit70f73854cb0c9078d81d0e05b0c533cef994e30b (patch)
tree84fc734f8299296fc2553653e651d56d0dcc9cd5 /ports/libgnutls
parent9a49e3df7f729655318c59b9985c9c18ad0c99d6 (diff)
downloadvcpkg-70f73854cb0c9078d81d0e05b0c533cef994e30b.tar.gz
vcpkg-70f73854cb0c9078d81d0e05b0c533cef994e30b.zip
[libgwenhywfar] new port (#16810)
* [libgnutls] macOS fix; additional optimizations - add missing macOS SDK CoreFoundation framework reference - add OpenSSL compatibility feature - explicitly disable libdane (was disabled implicitly due to a missing libunbound) - no need for autoconfig * [libgnutls] update versions * [libgwenhywfar] new port * [libgwenhywfar] add versions * [libgwenhywfar] use semver versioning scheme Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [libgwenhywfar] use semver versioning scheme Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com> * [libgwenhywfar] update versions * [libgwenhywfar] make sure to fail a windows build * [libgwenhywfar] update versions Co-authored-by: NancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>
Diffstat (limited to 'ports/libgnutls')
-rw-r--r--ports/libgnutls/portfile.cmake14
-rw-r--r--ports/libgnutls/vcpkg.json9
2 files changed, 21 insertions, 2 deletions
diff --git a/ports/libgnutls/portfile.cmake b/ports/libgnutls/portfile.cmake
index 5b027cca6..2a84d955a 100644
--- a/ports/libgnutls/portfile.cmake
+++ b/ports/libgnutls/portfile.cmake
@@ -14,8 +14,17 @@ vcpkg_extract_source_archive_ex(
REF ${GNUTLS_VERSION}
)
+if(VCPKG_TARGET_IS_OSX)
+ set(LDFLAGS "-framework CoreFoundation")
+else()
+ set(LDFLAGS "")
+endif()
+
+if ("openssl" IN_LIST FEATURES)
+ set(OPENSSL_COMPATIBILITY "--enable-openssl-compatibility")
+endif()
+
vcpkg_configure_make(
- AUTOCONFIG
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
--disable-doc
@@ -23,8 +32,11 @@ vcpkg_configure_make(
--disable-tests
--disable-maintainer-mode
--disable-rpath
+ --disable-libdane
--with-included-unistring
--without-p11-kit
+ ${OPENSSL_COMPATIBILITY}
+ "LDFLAGS=${LDFLAGS}"
)
vcpkg_install_make()
diff --git a/ports/libgnutls/vcpkg.json b/ports/libgnutls/vcpkg.json
index 08cc0beb9..784dcb573 100644
--- a/ports/libgnutls/vcpkg.json
+++ b/ports/libgnutls/vcpkg.json
@@ -1,13 +1,20 @@
{
"name": "libgnutls",
"version": "3.6.15",
+ "port-version": 1,
"description": "A secure communications library implementing the SSL, TLS and DTLS protocols",
"homepage": "https://www.gnutls.org/",
"supports": "!windows",
"dependencies": [
+ "gettext",
"gmp",
"libidn2",
"libtasn1",
"nettle"
- ]
+ ],
+ "features": {
+ "openssl": {
+ "description": "enables the OpenSSL compatibility library"
+ }
+ }
}