mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-11-30 13:09:01 +08:00
3c7a12bdf3
* [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>
32 lines
914 B
CMake
32 lines
914 B
CMake
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)
|