vcpkg/ports/libstemmer/portfile.cmake

25 lines
726 B
CMake
Raw Normal View History

vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2024-08-26 16:34:25 +08:00
string(SUBSTRING "${VERSION}" 5 -1 VERSION)
2017-09-03 03:53:11 +08:00
vcpkg_download_distfile(ARCHIVE
2024-08-26 16:34:25 +08:00
URLS "https://snowballstem.org/dist/libstemmer_c-${VERSION}.tar.gz"
FILENAME "libstemmer_c-${VERSION}.tar.gz"
SHA512 a61a06a046a6a5e9ada12310653c71afb27b5833fa9e21992ba4bdf615255de991352186a8736d0156ed754248a0ffb7b7712e8d5ea16f75174d1c8ddd37ba4a
2017-09-03 03:53:11 +08:00
)
vcpkg_extract_source_archive(
SOURCE_PATH
ARCHIVE "${ARCHIVE}"
)
2017-09-03 03:53:11 +08:00
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
2017-09-03 03:53:11 +08:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2017-09-03 03:53:11 +08:00
OPTIONS_DEBUG -DDISABLE_INSTALL_HEADERS=ON
)
vcpkg_cmake_install()
2017-09-03 03:53:11 +08:00
2024-08-26 16:34:25 +08:00
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/COPYING")