2021-03-12 04:42:05 +08:00
|
|
|
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(
|
2021-04-24 04:14:08 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
ARCHIVE ${ARCHIVE}
|
|
|
|
REF ${VERSION}
|
2021-03-12 04:42:05 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
# restore the default ac_cv_prog_cc_g flags, otherwise it fails to compile
|
2021-04-24 04:14:08 +08:00
|
|
|
set(VCPKG_C_FLAGS "-g -O2")
|
2021-03-12 04:42:05 +08:00
|
|
|
set(VCPKG_CXX_FLAGS "-g -O2")
|
|
|
|
|
2021-04-24 04:14:08 +08:00
|
|
|
set(ENV{GTKDOCIZE} true)
|
2021-03-12 04:42:05 +08:00
|
|
|
vcpkg_configure_make(
|
|
|
|
AUTOCONFIG
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
|
|
OPTIONS
|
2021-04-24 04:14:08 +08:00
|
|
|
--disable-gtk-doc
|
2021-03-12 04:42:05 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_make()
|
2021-04-24 04:14:08 +08:00
|
|
|
vcpkg_fixup_pkgconfig()
|
2021-03-12 04:42:05 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|