2018-08-08 13:15:13 +02:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO lltcggie/readline
|
|
|
|
REF ea414b4e98475e3976198738061824e8a8379a50
|
|
|
|
SHA512 82d54ab3e19fb2673fe97eff07117d36704791669baa283ec737c704635f872e4c7cd30485a6648d445cb2912e4364286e664e9425444f456a4c862b9e4de843
|
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
2019-10-07 19:35:13 +02:00
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH}/src/readline/5.0/readline-5.0-src)
|
|
|
|
file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h DESTINATION ${SOURCE_PATH}/src/readline/5.0/readline-5.0-src)
|
2018-08-08 13:15:13 +02:00
|
|
|
|
|
|
|
vcpkg_configure_cmake(
|
2019-10-07 19:35:13 +02:00
|
|
|
SOURCE_PATH ${SOURCE_PATH}/src/readline/5.0/readline-5.0-src
|
2018-08-08 13:15:13 +02:00
|
|
|
PREFER_NINJA
|
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
# Copy headers
|
|
|
|
file(MAKE_DIRECTORY ${CURRENT_PACKAGES_DIR}/include/readline)
|
2019-10-07 19:35:13 +02:00
|
|
|
file(GLOB headers "${SOURCE_PATH}/src/readline/5.0/readline-5.0-src/*.h")
|
2018-08-08 13:15:13 +02:00
|
|
|
file(COPY ${headers} DESTINATION ${CURRENT_PACKAGES_DIR}/include/readline)
|
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2019-10-07 19:35:13 +02:00
|
|
|
file(INSTALL ${SOURCE_PATH}/src/readline/5.0/readline-5.0-src/COPYING DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|