vcpkg/ports/readline-unix/portfile.cmake
Jack·Boos·Yu b68f3cc7ec
[vcpkg baseline][urho3d] Fix dependency readline (#22321)
* [vcpkg baseline][urho3d] Fix dependency readline-osx

* format manifest

* version

* Add port readline-unix, convert build type to makefile, set readline-osx as a empty package

* version

* change dependency to readline-unix on non-Windows

* version

* Update ports/readline-unix/vcpkg.json

Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
2022-01-04 19:57:18 -08:00

21 lines
636 B
CMake

vcpkg_download_distfile(
ARCHIVE
URLS https://ftp.gnu.org/gnu/readline/readline-8.1.tar.gz
FILENAME readline-8.1.tar.gz
SHA512 27790d0461da3093a7fee6e89a51dcab5dc61928ec42e9228ab36493b17220641d5e481ea3d8fee5ee0044c70bf960f55c7d3f1a704cf6b9c42e5c269b797e00
)
vcpkg_extract_source_archive(SOURCE_PATH ARCHIVE "${ARCHIVE}")
vcpkg_configure_make(
SOURCE_PATH "${SOURCE_PATH}"
OPTIOS
--with-curses=yes
)
vcpkg_install_make()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)