2022-11-08 07:39:56 +08:00
|
|
|
vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
|
|
|
|
|
|
|
|
set(LIBUNISTRING_FILENAME libunistring-${VERSION}.tar.xz)
|
2021-07-23 05:03:01 +08:00
|
|
|
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
|
|
URLS
|
|
|
|
"https://ftp.gnu.org/gnu/libunistring/${LIBUNISTRING_FILENAME}"
|
|
|
|
"https://www.mirrorservice.org/sites/ftp.gnu.org/gnu/libunistring/${LIBUNISTRING_FILENAME}"
|
|
|
|
FILENAME "${LIBUNISTRING_FILENAME}"
|
2024-03-12 04:12:02 +08:00
|
|
|
SHA512 5fbb5a0a864db73a6d18cdea7b31237da907fff0ef288f3a8db6ebdba8ef61ad8855e5fc780c2bbf632218d8fa59dd119734e5937ca64dc77f53f30f13b80b17
|
2021-07-23 05:03:01 +08:00
|
|
|
)
|
|
|
|
|
2022-11-08 07:39:56 +08:00
|
|
|
vcpkg_extract_source_archive(SOURCE_PATH
|
2021-07-23 05:03:01 +08:00
|
|
|
ARCHIVE "${ARCHIVE}"
|
2022-11-08 07:39:56 +08:00
|
|
|
SOURCE_BASE "v${VERSION}"
|
|
|
|
PATCHES
|
|
|
|
disable-gnulib-fetch.patch
|
|
|
|
disable-subdirs.patch
|
2022-11-17 01:02:05 +08:00
|
|
|
parallelize-symbol-collection.patch
|
2021-07-23 05:03:01 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_configure_make(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2022-11-08 07:39:56 +08:00
|
|
|
AUTOCONFIG
|
2022-04-22 05:30:13 +08:00
|
|
|
USE_WRAPPERS
|
2021-07-23 05:03:01 +08:00
|
|
|
OPTIONS
|
|
|
|
"--with-libiconv-prefix=${CURRENT_INSTALLED_DIR}"
|
|
|
|
)
|
2022-04-22 05:30:13 +08:00
|
|
|
|
2021-07-23 05:03:01 +08:00
|
|
|
vcpkg_install_make()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
|
2022-11-08 07:39:56 +08:00
|
|
|
vcpkg_install_copyright(
|
|
|
|
COMMENT [[
|
|
|
|
The libunistring library and its header files are dual-licensed under
|
|
|
|
"the GNU LGPLv3+ or the GNU GPLv2+".
|
|
|
|
]]
|
|
|
|
FILE_LIST
|
|
|
|
"${SOURCE_PATH}/COPYING.LIB"
|
|
|
|
"${SOURCE_PATH}/COPYING"
|
|
|
|
)
|