mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-16 00:59:07 +08:00
31b524616c
The custom CMakeLists.txt in the port installs headers under `rply/` and expects `#include <rply/rply.h>` correspondingly as the include. However, the code samples in the RPly project use a plain `#include "rply.h"` instead: https://w3.impa.br/~diego/software/rply/ This PR adds `include/rply/` to the `target_include_directories()` to support both conventions. The project exports only two distinctly-named headers (`rply.h` and `rplyfile.h`) so the non-prefixed includes causing a collision somewhere is unlikely. Also added license info to vcpkg.json and a usage file.
32 lines
1.0 KiB
CMake
32 lines
1.0 KiB
CMake
|
|
set(VERSION 1.1.4)
|
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
URLS "http://w3.impa.br/~diego/software/rply/rply-${VERSION}.tar.gz"
|
|
FILENAME "rply-${VERSION}.tar.gz"
|
|
SHA512 be389780b8ca74658433f271682d91e89709ced588c4012c152ccf4014557692a1afd37b1bd5e567cedf9c412d42721eb0412ff3331f38717e527bd5d29c27a7
|
|
)
|
|
|
|
vcpkg_extract_source_archive(
|
|
SOURCE_PATH
|
|
ARCHIVE "${ARCHIVE}"
|
|
SOURCE_BASE "${VERSION}"
|
|
PATCHES
|
|
fix-uninitialized-local-variable.patch
|
|
)
|
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/rply.def" DESTINATION "${SOURCE_PATH}")
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/rply-config.cmake.in" DESTINATION "${SOURCE_PATH}")
|
|
|
|
vcpkg_cmake_configure(
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
vcpkg_copy_pdbs()
|
|
vcpkg_cmake_config_fixup()
|
|
|
|
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|