diff options
| author | Dawid Wróbel <me@dawidwrobel.com> | 2021-03-11 16:42:05 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-03-11 12:42:05 -0800 |
| commit | 3c7a12bdf3dd6c29c18647919249c083a6fd3346 (patch) | |
| tree | e3e9999bb6159224b03c1afb29295669999e77b6 | |
| parent | eb419063843d0e370214307820589db8108f142c (diff) | |
| download | vcpkg-3c7a12bdf3dd6c29c18647919249c083a6fd3346.tar.gz vcpkg-3c7a12bdf3dd6c29c18647919249c083a6fd3346.zip | |
[many ports] Add GnuTLS and its dependencies (#14242)
* [libgnutls] add new port
* [libtasn1] add new port
* [libtasn1] fix building
* [libtasn1] enable autoconfig
* libtasn1: fix building, again
* libgnutls: make it build on Linux
* libgnutls: Linux only, for now
* libgnutls: remove unnecessary dependency
* update version record
* Clean up baseline and add supports
* update version record
* libtasn1: clear macOS build
* libgnutls: libidn2 is actually needed
* libgnutls: clear macOS build
* Update ports/libgnutls/CONTROL
* Update ports/libtasn1/CONTROL
* Update versions/l-/libgnutls.json
* Update versions/l-/libtasn1.json
* [libtasn1] convert CONTROL to manifest
* [libgnutls] convert CONTROL to manifest
* [libgnutls] update versions
* [libtasn1] update versions
Co-authored-by: JackBoosY <yuzaiyang@beyondsoft.com>
Co-authored-by: Jack·Boos·Yu <47264268+JackBoosY@users.noreply.github.com>
| -rw-r--r-- | ports/libgnutls/portfile.cmake | 35 | ||||
| -rw-r--r-- | ports/libgnutls/vcpkg.json | 13 | ||||
| -rw-r--r-- | ports/libtasn1/portfile.cmake | 31 | ||||
| -rw-r--r-- | ports/libtasn1/vcpkg.json | 7 | ||||
| -rw-r--r-- | versions/baseline.json | 8 | ||||
| -rw-r--r-- | versions/l-/libgnutls.json | 9 | ||||
| -rw-r--r-- | versions/l-/libtasn1.json | 9 |
7 files changed, 112 insertions, 0 deletions
diff --git a/ports/libgnutls/portfile.cmake b/ports/libgnutls/portfile.cmake new file mode 100644 index 000000000..5b027cca6 --- /dev/null +++ b/ports/libgnutls/portfile.cmake @@ -0,0 +1,35 @@ +set(GNUTLS_BRANCH 3.6)
+set(GNUTLS_VERSION ${GNUTLS_BRANCH}.15)
+set(GNUTLS_HASH f757d1532198f44bcad7b73856ce6a05bab43f6fb77fcc81c59607f146202f73023d0796d3e1e7471709cf792c8ee7d436e19407e0601bc0bda2f21512b3b01c)
+
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://www.gnupg.org/ftp/gcrypt/gnutls/v${GNUTLS_BRANCH}/gnutls-${GNUTLS_VERSION}.tar.xz"
+ FILENAME "gnutls-${GNUTLS_VERSION}.tar.xz"
+ SHA512 ${GNUTLS_HASH}
+)
+
+vcpkg_extract_source_archive_ex(
+ OUT_SOURCE_PATH SOURCE_PATH
+ ARCHIVE ${ARCHIVE}
+ REF ${GNUTLS_VERSION}
+)
+
+vcpkg_configure_make(
+ AUTOCONFIG
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ --disable-doc
+ --disable-silent-rules
+ --disable-tests
+ --disable-maintainer-mode
+ --disable-rpath
+ --with-included-unistring
+ --without-p11-kit
+)
+
+vcpkg_install_make()
+vcpkg_fixup_pkgconfig()
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/libgnutls/vcpkg.json b/ports/libgnutls/vcpkg.json new file mode 100644 index 000000000..08cc0beb9 --- /dev/null +++ b/ports/libgnutls/vcpkg.json @@ -0,0 +1,13 @@ +{ + "name": "libgnutls", + "version": "3.6.15", + "description": "A secure communications library implementing the SSL, TLS and DTLS protocols", + "homepage": "https://www.gnutls.org/", + "supports": "!windows", + "dependencies": [ + "gmp", + "libidn2", + "libtasn1", + "nettle" + ] +} diff --git a/ports/libtasn1/portfile.cmake b/ports/libtasn1/portfile.cmake new file mode 100644 index 000000000..7b2cd0ef4 --- /dev/null +++ b/ports/libtasn1/portfile.cmake @@ -0,0 +1,31 @@ +set(VERSION 4.16.0)
+
+vcpkg_download_distfile(ARCHIVE
+ URLS "https://ftp.gnu.org/gnu/libtasn1/libtasn1-${VERSION}.tar.gz"
+ FILENAME "libtasn1-${VERSION}.tar.gz"
+ SHA512 b356249535d5d592f9b59de39d21e26dd0f3f00ea47c9cef292cdd878042ea41ecbb7c8d2f02ac5839f5210092fe92a25acd343260ddf644887b031b167c2e71
+)
+
+vcpkg_extract_source_archive_ex(
+ OUT_SOURCE_PATH SOURCE_PATH
+ ARCHIVE ${ARCHIVE}
+ REF ${VERSION}
+)
+
+# restore the default ac_cv_prog_cc_g flags, otherwise it fails to compile
+set(VCPKG_C_FLAGS "-g -O2")
+set(VCPKG_CXX_FLAGS "-g -O2")
+
+vcpkg_configure_make(
+ AUTOCONFIG
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ --disable-doc
+)
+
+vcpkg_install_make()
+vcpkg_fixup_pkgconfig()
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/libtasn1/vcpkg.json b/ports/libtasn1/vcpkg.json new file mode 100644 index 000000000..fbe18fbcf --- /dev/null +++ b/ports/libtasn1/vcpkg.json @@ -0,0 +1,7 @@ +{ + "name": "libtasn1", + "version": "4.16.0", + "description": "A secure communications library implementing the SSL, TLS and DTLS protocols", + "homepage": "https://www.gnutls.org/", + "supports": "!windows" +} diff --git a/versions/baseline.json b/versions/baseline.json index eaabcbf72..9038ec334 100644 --- a/versions/baseline.json +++ b/versions/baseline.json @@ -3036,6 +3036,10 @@ "baseline": "1.1.0", "port-version": 0 }, + "libgnutls": { + "baseline": "3.6.15", + "port-version": 0 + }, "libgo": { "baseline": "3.1-1", "port-version": 0 @@ -3448,6 +3452,10 @@ "baseline": "323", "port-version": 2 }, + "libtasn1": { + "baseline": "4.16.0", + "port-version": 0 + }, "libtheora": { "baseline": "1.2.0alpha1-20170719", "port-version": 2 diff --git a/versions/l-/libgnutls.json b/versions/l-/libgnutls.json new file mode 100644 index 000000000..2348a7667 --- /dev/null +++ b/versions/l-/libgnutls.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "089f1c103a3f2c52e6ae54e8956a98345502e286", + "version": "3.6.15", + "port-version": 0 + } + ] +} diff --git a/versions/l-/libtasn1.json b/versions/l-/libtasn1.json new file mode 100644 index 000000000..68d29b657 --- /dev/null +++ b/versions/l-/libtasn1.json @@ -0,0 +1,9 @@ +{ + "versions": [ + { + "git-tree": "bf9ef7a92f92205f0c883a302b7dae4eea9effee", + "version": "4.16.0", + "port-version": 0 + } + ] +} |
