vcpkg/ports/libunistring/portfile.cmake
Jia Yue Hua e2dcca9693
[libunistring] update to 1.2 (#37266)
- [X] Changes comply with the [maintainer
guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md)
- [X] SHA512s are updated for each updated download
- [ ] ~The "supports" clause reflects platforms that may be fixed by
this new version~
- [ ] ~Any fixed [CI
baseline](https://github.com/microsoft/vcpkg/blob/master/scripts/ci.baseline.txt)
entries are removed from that file.~
- [ ] ~Any patches that are no longer applied are deleted from the
port's directory.~
- [X] The version database is fixed by rerunning `./vcpkg x-add-version
--all` and committing the result.
- [X] Only one version is added to each modified port's versions file.
2024-03-11 13:12:02 -07:00

43 lines
1.2 KiB
CMake

vcpkg_minimum_required(VERSION 2022-10-12) # for ${VERSION}
set(LIBUNISTRING_FILENAME libunistring-${VERSION}.tar.xz)
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}"
SHA512 5fbb5a0a864db73a6d18cdea7b31237da907fff0ef288f3a8db6ebdba8ef61ad8855e5fc780c2bbf632218d8fa59dd119734e5937ca64dc77f53f30f13b80b17
)
vcpkg_extract_source_archive(SOURCE_PATH
ARCHIVE "${ARCHIVE}"
SOURCE_BASE "v${VERSION}"
PATCHES
disable-gnulib-fetch.patch
disable-subdirs.patch
parallelize-symbol-collection.patch
)
vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}"
AUTOCONFIG
USE_WRAPPERS
OPTIONS
"--with-libiconv-prefix=${CURRENT_INSTALLED_DIR}"
)
vcpkg_install_make()
vcpkg_fixup_pkgconfig()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
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"
)