[libgpg-error,libgcrpyt,libassuan,gpgme] Update, official mirrors, mingw, cross builds (#27668)
* Use VERSION
* Add nls feature and gettext deps
* Fix export of libintl dep
* Fix mingw on windows
* Fix crossbuilds
* Cleanup
* Keep translations for nls
* Add license
* [shiftmedia-libgpg-error] Split from pristine source port, update
* [libgpg-error] Update, official tarballs, cross builds
* [libgcrypt] Official tarballs, fix cross builds
* [libgcrypt] Update copyright
* [libassuan] Update, official tarballs, cross builds
* [gpgme] Update, cleanup
* [gpgme] Update copyright
* Update versions
* [shiftmedia-libgcrypt] Update
* No port libgpg
* Add missing version file
* Use make OPTIONS
* Update versions
* Revise build-tools pattern
2022-11-15 07:12:05 +08:00
|
|
|
vcpkg_download_distfile(tarball
|
|
|
|
URLS
|
|
|
|
"https://gnupg.org/ftp/gcrypt/libgcrypt/libgcrypt-${VERSION}.tar.bz2"
|
|
|
|
"https://mirrors.dotsrc.org/gcrypt/libgcrypt/libgcrypt-${VERSION}.tar.bz2"
|
|
|
|
"https://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-${VERSION}.tar.bz2"
|
|
|
|
FILENAME "libgcrypt-${VERSION}.tar.bz2"
|
2023-10-04 11:34:51 +08:00
|
|
|
SHA512 3a850baddfe8ffe8b3e96dc54af3fbb9e1dab204db1f06b9b90b8fbbfb7fb7276260cd1e61ba4dde5a662a2385385007478834e62e95f785d2e3d32652adb29e
|
[libgpg-error,libgcrpyt,libassuan,gpgme] Update, official mirrors, mingw, cross builds (#27668)
* Use VERSION
* Add nls feature and gettext deps
* Fix export of libintl dep
* Fix mingw on windows
* Fix crossbuilds
* Cleanup
* Keep translations for nls
* Add license
* [shiftmedia-libgpg-error] Split from pristine source port, update
* [libgpg-error] Update, official tarballs, cross builds
* [libgcrypt] Official tarballs, fix cross builds
* [libgcrypt] Update copyright
* [libassuan] Update, official tarballs, cross builds
* [gpgme] Update, cleanup
* [gpgme] Update copyright
* Update versions
* [shiftmedia-libgcrypt] Update
* No port libgpg
* Add missing version file
* Use make OPTIONS
* Update versions
* Revise build-tools pattern
2022-11-15 07:12:05 +08:00
|
|
|
)
|
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
|
|
|
ARCHIVE "${tarball}"
|
|
|
|
PATCHES
|
|
|
|
cross-tools.patch
|
2023-10-04 11:34:51 +08:00
|
|
|
upstream-fa21ddc1.patch
|
2020-12-23 15:19:18 +08:00
|
|
|
)
|
|
|
|
|
[libgpg-error,libgcrpyt,libassuan,gpgme] Update, official mirrors, mingw, cross builds (#27668)
* Use VERSION
* Add nls feature and gettext deps
* Fix export of libintl dep
* Fix mingw on windows
* Fix crossbuilds
* Cleanup
* Keep translations for nls
* Add license
* [shiftmedia-libgpg-error] Split from pristine source port, update
* [libgpg-error] Update, official tarballs, cross builds
* [libgcrypt] Official tarballs, fix cross builds
* [libgcrypt] Update copyright
* [libassuan] Update, official tarballs, cross builds
* [gpgme] Update, cleanup
* [gpgme] Update copyright
* Update versions
* [shiftmedia-libgcrypt] Update
* No port libgpg
* Add missing version file
* Use make OPTIONS
* Update versions
* Revise build-tools pattern
2022-11-15 07:12:05 +08:00
|
|
|
if(VCPKG_CROSSCOMPILING)
|
|
|
|
set(ENV{HOST_TOOLS_PREFIX} "${CURRENT_HOST_INSTALLED_DIR}/manual-tools/${PORT}")
|
|
|
|
endif()
|
|
|
|
|
|
|
|
vcpkg_list(APPEND VCPKG_CMAKE_CONFIGURE_OPTIONS "-DVCPKG_LANGUAGES=ASM;C")
|
|
|
|
vcpkg_cmake_get_vars(cmake_vars_file)
|
|
|
|
include("${cmake_vars_file}")
|
|
|
|
|
2020-12-23 15:19:18 +08:00
|
|
|
vcpkg_configure_make(
|
|
|
|
AUTOCONFIG
|
2021-11-23 07:53:13 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-12-23 15:19:18 +08:00
|
|
|
OPTIONS
|
|
|
|
--disable-doc
|
[libgpg-error,libgcrpyt,libassuan,gpgme] Update, official mirrors, mingw, cross builds (#27668)
* Use VERSION
* Add nls feature and gettext deps
* Fix export of libintl dep
* Fix mingw on windows
* Fix crossbuilds
* Cleanup
* Keep translations for nls
* Add license
* [shiftmedia-libgpg-error] Split from pristine source port, update
* [libgpg-error] Update, official tarballs, cross builds
* [libgcrypt] Official tarballs, fix cross builds
* [libgcrypt] Update copyright
* [libassuan] Update, official tarballs, cross builds
* [gpgme] Update, cleanup
* [gpgme] Update copyright
* Update versions
* [shiftmedia-libgcrypt] Update
* No port libgpg
* Add missing version file
* Use make OPTIONS
* Update versions
* Revise build-tools pattern
2022-11-15 07:12:05 +08:00
|
|
|
"AS=${VCPKG_DETECTED_CMAKE_ASM_COMPILER}"
|
2023-10-04 11:34:51 +08:00
|
|
|
"GPG_ERROR_CONFIG=no"
|
[libgpg-error,libgcrpyt,libassuan,gpgme] Update, official mirrors, mingw, cross builds (#27668)
* Use VERSION
* Add nls feature and gettext deps
* Fix export of libintl dep
* Fix mingw on windows
* Fix crossbuilds
* Cleanup
* Keep translations for nls
* Add license
* [shiftmedia-libgpg-error] Split from pristine source port, update
* [libgpg-error] Update, official tarballs, cross builds
* [libgcrypt] Official tarballs, fix cross builds
* [libgcrypt] Update copyright
* [libassuan] Update, official tarballs, cross builds
* [gpgme] Update, cleanup
* [gpgme] Update copyright
* Update versions
* [shiftmedia-libgcrypt] Update
* No port libgpg
* Add missing version file
* Use make OPTIONS
* Update versions
* Revise build-tools pattern
2022-11-15 07:12:05 +08:00
|
|
|
OPTIONS_RELEASE
|
2023-10-04 11:34:51 +08:00
|
|
|
"GPGRT_CONFIG=${CURRENT_INSTALLED_DIR}/tools/libgpg-error/bin/gpgrt-config"
|
[libgpg-error,libgcrpyt,libassuan,gpgme] Update, official mirrors, mingw, cross builds (#27668)
* Use VERSION
* Add nls feature and gettext deps
* Fix export of libintl dep
* Fix mingw on windows
* Fix crossbuilds
* Cleanup
* Keep translations for nls
* Add license
* [shiftmedia-libgpg-error] Split from pristine source port, update
* [libgpg-error] Update, official tarballs, cross builds
* [libgcrypt] Official tarballs, fix cross builds
* [libgcrypt] Update copyright
* [libassuan] Update, official tarballs, cross builds
* [gpgme] Update, cleanup
* [gpgme] Update copyright
* Update versions
* [shiftmedia-libgcrypt] Update
* No port libgpg
* Add missing version file
* Use make OPTIONS
* Update versions
* Revise build-tools pattern
2022-11-15 07:12:05 +08:00
|
|
|
OPTIONS_DEBUG
|
2023-10-04 11:34:51 +08:00
|
|
|
"GPGRT_CONFIG=${CURRENT_INSTALLED_DIR}/tools/libgpg-error/debug/bin/gpgrt-config"
|
2020-12-23 15:19:18 +08:00
|
|
|
)
|
|
|
|
|
[libgpg-error,libgcrpyt,libassuan,gpgme] Update, official mirrors, mingw, cross builds (#27668)
* Use VERSION
* Add nls feature and gettext deps
* Fix export of libintl dep
* Fix mingw on windows
* Fix crossbuilds
* Cleanup
* Keep translations for nls
* Add license
* [shiftmedia-libgpg-error] Split from pristine source port, update
* [libgpg-error] Update, official tarballs, cross builds
* [libgcrypt] Official tarballs, fix cross builds
* [libgcrypt] Update copyright
* [libassuan] Update, official tarballs, cross builds
* [gpgme] Update, cleanup
* [gpgme] Update copyright
* Update versions
* [shiftmedia-libgcrypt] Update
* No port libgpg
* Add missing version file
* Use make OPTIONS
* Update versions
* Revise build-tools pattern
2022-11-15 07:12:05 +08:00
|
|
|
vcpkg_install_make(OPTIONS "CCAS=${VCPKG_DETECTED_CMAKE_ASM_COMPILER}")
|
2020-12-23 15:19:18 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
[libgpg-error,libgcrpyt,libassuan,gpgme] Update, official mirrors, mingw, cross builds (#27668)
* Use VERSION
* Add nls feature and gettext deps
* Fix export of libintl dep
* Fix mingw on windows
* Fix crossbuilds
* Cleanup
* Keep translations for nls
* Add license
* [shiftmedia-libgpg-error] Split from pristine source port, update
* [libgpg-error] Update, official tarballs, cross builds
* [libgcrypt] Official tarballs, fix cross builds
* [libgcrypt] Update copyright
* [libassuan] Update, official tarballs, cross builds
* [gpgme] Update, cleanup
* [gpgme] Update copyright
* Update versions
* [shiftmedia-libgcrypt] Update
* No port libgpg
* Add missing version file
* Use make OPTIONS
* Update versions
* Revise build-tools pattern
2022-11-15 07:12:05 +08:00
|
|
|
if(NOT VCPKG_CROSSCOMPILING)
|
|
|
|
file(INSTALL
|
2023-10-04 11:34:51 +08:00
|
|
|
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/cipher/gost-s-box${VCPKG_TARGET_EXECUTABLE_SUFFIX}"
|
[libgpg-error,libgcrpyt,libassuan,gpgme] Update, official mirrors, mingw, cross builds (#27668)
* Use VERSION
* Add nls feature and gettext deps
* Fix export of libintl dep
* Fix mingw on windows
* Fix crossbuilds
* Cleanup
* Keep translations for nls
* Add license
* [shiftmedia-libgpg-error] Split from pristine source port, update
* [libgpg-error] Update, official tarballs, cross builds
* [libgcrypt] Official tarballs, fix cross builds
* [libgcrypt] Update copyright
* [libassuan] Update, official tarballs, cross builds
* [gpgme] Update, cleanup
* [gpgme] Update copyright
* Update versions
* [shiftmedia-libgcrypt] Update
* No port libgpg
* Add missing version file
* Use make OPTIONS
* Update versions
* Revise build-tools pattern
2022-11-15 07:12:05 +08:00
|
|
|
DESTINATION "${CURRENT_PACKAGES_DIR}/manual-tools/${PORT}"
|
|
|
|
USE_SOURCE_PERMISSIONS
|
|
|
|
)
|
|
|
|
vcpkg_copy_tool_dependencies("${CURRENT_PACKAGES_DIR}/manual-tools/${PORT}")
|
2021-12-31 02:28:33 +08:00
|
|
|
endif()
|
|
|
|
|
2023-10-04 11:34:51 +08:00
|
|
|
set(install_prefix "${CURRENT_INSTALLED_DIR}")
|
|
|
|
if(VCPKG_HOST_IS_WINDOWS)
|
|
|
|
string(REGEX REPLACE "^([a-zA-Z]):/" "/\\1/" install_prefix "${install_prefix}")
|
|
|
|
endif()
|
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/bin/libgcrypt-config" "${install_prefix}" "`dirname $0`/../../..")
|
[libgpg-error,libgcrpyt,libassuan,gpgme] Update, official mirrors, mingw, cross builds (#27668)
* Use VERSION
* Add nls feature and gettext deps
* Fix export of libintl dep
* Fix mingw on windows
* Fix crossbuilds
* Cleanup
* Keep translations for nls
* Add license
* [shiftmedia-libgpg-error] Split from pristine source port, update
* [libgpg-error] Update, official tarballs, cross builds
* [libgcrypt] Official tarballs, fix cross builds
* [libgcrypt] Update copyright
* [libassuan] Update, official tarballs, cross builds
* [gpgme] Update, cleanup
* [gpgme] Update copyright
* Update versions
* [shiftmedia-libgcrypt] Update
* No port libgpg
* Add missing version file
* Use make OPTIONS
* Update versions
* Revise build-tools pattern
2022-11-15 07:12:05 +08:00
|
|
|
if(NOT VCPKG_BUILD_TYPE)
|
2023-10-04 11:34:51 +08:00
|
|
|
vcpkg_replace_string("${CURRENT_PACKAGES_DIR}/tools/${PORT}/debug/bin/libgcrypt-config" "${install_prefix}" "`dirname $0`/../../../..")
|
2021-12-31 02:28:33 +08:00
|
|
|
endif()
|
2021-11-23 07:53:13 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
[libgpg-error,libgcrpyt,libassuan,gpgme] Update, official mirrors, mingw, cross builds (#27668)
* Use VERSION
* Add nls feature and gettext deps
* Fix export of libintl dep
* Fix mingw on windows
* Fix crossbuilds
* Cleanup
* Keep translations for nls
* Add license
* [shiftmedia-libgpg-error] Split from pristine source port, update
* [libgpg-error] Update, official tarballs, cross builds
* [libgcrypt] Official tarballs, fix cross builds
* [libgcrypt] Update copyright
* [libassuan] Update, official tarballs, cross builds
* [gpgme] Update, cleanup
* [gpgme] Update copyright
* Update versions
* [shiftmedia-libgcrypt] Update
* No port libgpg
* Add missing version file
* Use make OPTIONS
* Update versions
* Revise build-tools pattern
2022-11-15 07:12:05 +08:00
|
|
|
|
|
|
|
vcpkg_install_copyright(COMMENT [[
|
|
|
|
The library is distributed under the terms of the GNU Lesser General Public License (LGPL).
|
|
|
|
The helper programs as well as the documentation are distributed under the terms of the GNU General Public License (GPL).
|
|
|
|
There are additonal notices about contributions that require these additional notices are distributed.
|
|
|
|
]]
|
|
|
|
FILE_LIST
|
|
|
|
"${SOURCE_PATH}/COPYING.LIB"
|
|
|
|
"${SOURCE_PATH}/COPYING"
|
|
|
|
"${SOURCE_PATH}/LICENSES"
|
|
|
|
)
|