mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-17 06:57:52 +08:00
9f22b3df4c
Fix #38372 Add message of build requirements `autoconf` `automake` `libtool` `pkg-config` from [upstream README](https://github.com/besser82/libxcrypt?tab=readme-ov-file#build-requirements-and-instructions) ### Checklist - [x] Changes comply with the [maintainer guide](https://github.com/microsoft/vcpkg-docs/blob/main/vcpkg/contributing/maintainer-guide.md). - [ ] ~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. ### Test Port install tests pass with following triplets: * x64-linux
36 lines
1.3 KiB
CMake
36 lines
1.3 KiB
CMake
set(VCPKG_POLICY_ALLOW_RESTRICTED_HEADERS enabled)
|
|
|
|
# Requirements from https://github.com/besser82/libxcrypt?tab=readme-ov-file#build-requirements-and-instructions
|
|
message(
|
|
"${PORT} currently requires the following libraries from the system package manager:
|
|
autoconf automake libtool pkg-config
|
|
These can be installed on Debian systems via sudo apt install autoconf automake libtool pkg-config"
|
|
)
|
|
find_program(AUTORECONF_BIN autoreconf)
|
|
if(NOT AUTORECONF_BIN)
|
|
message(FATAL_ERROR "${PORT} requires autoconf from the system package manager (example: \"sudo apt install autoconf\")")
|
|
endif()
|
|
find_program(LIBTOOL_BIN libtoolize)
|
|
if(NOT LIBTOOL_BIN)
|
|
message(FATAL_ERROR "${PORT} requires libtool from the system package manager (example: \"sudo apt install libtool\")")
|
|
endif()
|
|
|
|
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO besser82/libxcrypt
|
|
REF "v${VERSION}"
|
|
SHA512 61e5e393654f37775457474d4170098314879ee79963d423c1c461e80dc5dc74f0c161dd8754f016ce96109167be6c580ad23994fa1d2c38c54b96e602f3aece
|
|
)
|
|
|
|
vcpkg_configure_make(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
AUTOCONFIG
|
|
)
|
|
|
|
vcpkg_install_make()
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSING" "${SOURCE_PATH}/COPYING.LIB")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|