[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/libassuan/libassuan-${VERSION}.tar.bz2"
|
|
|
|
"https://mirrors.dotsrc.org/gcrypt/libassuan/libassuan-${VERSION}.tar.bz2"
|
|
|
|
"https://www.mirrorservice.org/sites/ftp.gnupg.org/gcrypt/libassuan/libassuan-${VERSION}.tar.bz2"
|
|
|
|
FILENAME "libassuan-${VERSION}.tar.bz2"
|
2024-03-08 14:37:27 +08:00
|
|
|
SHA512 ca33bd0325bbebccb63b6a84cc0aa5c85b25c6275a68df83aeb3f3729b2cd38220198a941c3479bd461f16b7ddb6b558c0664697ca3153c7fb430544303d773f
|
[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}"
|
2020-12-23 15:19:18 +08:00
|
|
|
PATCHES
|
[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
|
|
|
cross-tools.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()
|
|
|
|
|
2020-12-23 15:19:18 +08:00
|
|
|
vcpkg_configure_make(
|
2021-11-23 07:53:30 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
[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
|
|
|
AUTOCONFIG
|
2020-12-23 15:19:18 +08:00
|
|
|
OPTIONS
|
|
|
|
--disable-doc
|
2023-10-04 11:34:51 +08:00
|
|
|
"GPG_ERROR_CONFIG=no"
|
|
|
|
OPTIONS_RELEASE
|
|
|
|
"GPGRT_CONFIG=${CURRENT_INSTALLED_DIR}/tools/libgpg-error/bin/gpgrt-config"
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
"GPGRT_CONFIG=${CURRENT_INSTALLED_DIR}/tools/libgpg-error/debug/bin/gpgrt-config"
|
2020-12-23 15:19:18 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_make()
|
2022-01-26 02:31:15 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2020-12-23 15:19:18 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
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/libassuan-config" "${install_prefix}" "`dirname $0`/../../..")
|
2022-10-27 01:55:31 +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/libassuan-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
|
|
|
endif()
|
|
|
|
|
|
|
|
if(NOT VCPKG_CROSSCOMPILING)
|
|
|
|
file(INSTALL
|
2023-10-04 11:34:51 +08:00
|
|
|
"${CURRENT_BUILDTREES_DIR}/${TARGET_TRIPLET}-rel/src/mkheader${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}")
|
2022-10-27 01:55:31 +08:00
|
|
|
endif()
|
2021-11-23 07:53:30 +08:00
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING.LIB" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|