diff options
| author | Dawid Wróbel <me@dawidwrobel.com> | 2020-12-23 02:19:18 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-22 23:19:18 -0800 |
| commit | 4cf45e80e3eab2eece9b89e11015920da3a50580 (patch) | |
| tree | 57065b177c56fe8dec6335dff68354b5357c1b9b /ports/libgcrypt | |
| parent | 229f537c9414da5a577484b467a1f7ab0f4d8f34 (diff) | |
| download | vcpkg-4cf45e80e3eab2eece9b89e11015920da3a50580.tar.gz vcpkg-4cf45e80e3eab2eece9b89e11015920da3a50580.zip | |
[many ports] add GnuPG libraries (#13950)
Diffstat (limited to 'ports/libgcrypt')
| -rw-r--r-- | ports/libgcrypt/CONTROL | 6 | ||||
| -rw-r--r-- | ports/libgcrypt/fix-pkgconfig.patch | 11 | ||||
| -rw-r--r-- | ports/libgcrypt/portfile.cmake | 27 |
3 files changed, 44 insertions, 0 deletions
diff --git a/ports/libgcrypt/CONTROL b/ports/libgcrypt/CONTROL new file mode 100644 index 000000000..6a9fe7d5b --- /dev/null +++ b/ports/libgcrypt/CONTROL @@ -0,0 +1,6 @@ +Source: libgcrypt +Version: 1.8.6 +Homepage: https://gnupg.org/software/libgcrypt/index.html +Description: A library implementing the so-called Assuan protocol +Build-Depends: libgpg-error +Supports: linux|osx
\ No newline at end of file diff --git a/ports/libgcrypt/fix-pkgconfig.patch b/ports/libgcrypt/fix-pkgconfig.patch new file mode 100644 index 000000000..0c269b2a6 --- /dev/null +++ b/ports/libgcrypt/fix-pkgconfig.patch @@ -0,0 +1,11 @@ +diff --git a/src/libgcrypt.pc.in b/src/libgcrypt.pc.in +index ec68fa2..6bf7a07 100644 +--- a/src/libgcrypt.pc.in ++++ b/src/libgcrypt.pc.in +@@ -13,5 +13,5 @@ Description: General purpose cryptographic library + Requires: gpg-error + Version: @PACKAGE_VERSION@ + Cflags: @LIBGCRYPT_CONFIG_CFLAGS@ +-Libs: @LIBGCRYPT_CONFIG_LIBS@ ++Libs: -L${libdir} @LIBGCRYPT_CONFIG_LIBS@ + URL: https://www.gnupg.org/software/libgcrypt/index.html diff --git a/ports/libgcrypt/portfile.cmake b/ports/libgcrypt/portfile.cmake new file mode 100644 index 000000000..6b782f0e6 --- /dev/null +++ b/ports/libgcrypt/portfile.cmake @@ -0,0 +1,27 @@ +vcpkg_fail_port_install(MESSAGE "${PORT} currently only supports unix platform" ON_TARGET "Windows")
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO gpg/libgcrypt
+ REF libgcrypt-1.8.6
+ SHA512 85005b159048b7b47b3fc77e8be5b5b317b1ae73ef536d4e2d78496763b7b8c4f80c70016ed27fc60e998cbc7642d3cf487bd4c5e5a5d8abc8f8d51e02f330d1
+ HEAD_REF master
+ PATCHES
+ fix-pkgconfig.patch
+)
+
+vcpkg_configure_make(
+ AUTOCONFIG
+ SOURCE_PATH ${SOURCE_PATH}
+ OPTIONS
+ --disable-doc
+ --disable-silent-rules
+ --with-libgpg-error-prefix=${CURRENT_INSTALLED_DIR}/tools/libgpg-error
+)
+
+vcpkg_install_make()
+vcpkg_fixup_pkgconfig()
+vcpkg_copy_pdbs()
+
+file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
+file(INSTALL ${SOURCE_PATH}/COPYING.LIB DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|
