2016-10-04 08:00:51 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
2017-05-09 17:56:46 +08:00
|
|
|
URLS "http://www.colm.net/files/ragel/ragel-6.10.tar.gz"
|
|
|
|
FILENAME "ragel-6.10.tar.gz"
|
|
|
|
SHA512 6c1fe4f6fa8546ae28b92ccfbae94355ff0d3cea346b9ae8ce4cf6c2bdbeb823e0ccd355332643ea72d3befd533a8b3030ddbf82be7ffa811c2c58cbb01aaa38
|
2016-10-04 08:00:51 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
|
|
|
ARCHIVE "${ARCHIVE}"
|
2016-10-05 08:17:42 +08:00
|
|
|
PATCHES
|
2019-10-08 01:35:13 +08:00
|
|
|
0001-remove-unistd-h.patch
|
2016-10-04 08:00:51 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/config.h" DESTINATION "${SOURCE_PATH}/ragel")
|
2019-10-08 01:35:13 +08:00
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2016-10-04 08:00:51 +08:00
|
|
|
)
|
|
|
|
|
2023-03-02 02:39:14 +08:00
|
|
|
vcpkg_cmake_install()
|
2016-10-04 08:00:51 +08:00
|
|
|
|
2017-06-02 18:37:46 +08:00
|
|
|
# Allow empty include directory
|
|
|
|
set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled)
|
2016-10-04 08:00:51 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2023-03-02 02:39:14 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|