Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[many ports] Add GnuTLS and its dependencies #14242

Merged
merged 26 commits into from
Mar 11, 2021
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
8a0b792
[libgnutls] add new port
wrobelda Oct 9, 2020
92a6308
Merge remote-tracking branch 'origin/master' into gnutls
wrobelda Oct 13, 2020
fed7295
Merge remote-tracking branch 'origin/master' into gnutls
wrobelda Oct 25, 2020
8d7c70d
[libtasn1] add new port
wrobelda Oct 26, 2020
0dabcff
[libtasn1] fix building
wrobelda Oct 27, 2020
9f6cbd8
[libtasn1] enable autoconfig
wrobelda Oct 28, 2020
002dd1f
Merge remote-tracking branch 'origin/master' into gnutls
wrobelda Feb 28, 2021
a5855d9
libtasn1: fix building, again
wrobelda Feb 28, 2021
3ba03ac
libgnutls: make it build on Linux
wrobelda Feb 28, 2021
5740b8f
libgnutls: Linux only, for now
wrobelda Feb 28, 2021
4ed2623
libgnutls: remove unnecessary dependency
wrobelda Feb 28, 2021
8d1912e
update version record
Mar 1, 2021
f5e19a5
Clean up baseline and add supports
Mar 1, 2021
a7a6b3f
update version record
Mar 1, 2021
67cb940
libtasn1: clear macOS build
wrobelda Mar 1, 2021
27db6d9
libgnutls: libidn2 is actually needed
wrobelda Mar 1, 2021
9e74ac8
libgnutls: clear macOS build
wrobelda Mar 1, 2021
26f2540
Update ports/libgnutls/CONTROL
JackBoosY Mar 1, 2021
a2f8ccd
Update ports/libtasn1/CONTROL
JackBoosY Mar 1, 2021
cd99e1e
Update versions/l-/libgnutls.json
JackBoosY Mar 1, 2021
197254c
Update versions/l-/libtasn1.json
JackBoosY Mar 1, 2021
14f938d
Merge remote-tracking branch 'origin/master' into gnutls
wrobelda Mar 8, 2021
e199d8a
[libtasn1] convert CONTROL to manifest
wrobelda Mar 8, 2021
542099e
[libgnutls] convert CONTROL to manifest
wrobelda Mar 8, 2021
6a516e0
[libgnutls] update versions
wrobelda Mar 8, 2021
fe3cab9
[libtasn1] update versions
wrobelda Mar 8, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions ports/libgnutls/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
Source: libgnutls
Version: 3.6.15
Homepage: https://www.gnutls.org/
Description: A secure communications library implementing the SSL, TLS and DTLS protocols
Build-Depends: nettle, gmp, libtasn1, libidn2
Supports: !windows
35 changes: 35 additions & 0 deletions ports/libgnutls/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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)
5 changes: 5 additions & 0 deletions ports/libtasn1/CONTROL
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Source: libtasn1
Version: 4.16.0
Homepage: https://www.gnutls.org/
Description: A secure communications library implementing the SSL, TLS and DTLS protocols
Supports: !windows
31 changes: 31 additions & 0 deletions ports/libtasn1/portfile.cmake
Original file line number Diff line number Diff line change
@@ -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)
8 changes: 8 additions & 0 deletions versions/baseline.json
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -3440,6 +3444,10 @@
"baseline": "323-1",
"port-version": 0
},
"libtasn1": {
"baseline": "4.16.0",
"port-version": 0
},
"libtheora": {
"baseline": "1.2.0alpha1-20170719",
"port-version": 2
Expand Down
9 changes: 9 additions & 0 deletions versions/l-/libgnutls.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "514174165bb692927e6af1b8d0ba877977760235",
"version-string": "3.6.15",
"port-version": 0
}
]
}
9 changes: 9 additions & 0 deletions versions/l-/libtasn1.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"versions": [
{
"git-tree": "40e3f04762264c9abfbd1046a58e0e08768c45dd",
"version-string": "4.16.0",
"port-version": 0
}
]
}