vcpkg/ports/sais/portfile.cmake

27 lines
703 B
CMake
Raw Normal View History

2018-08-30 22:56:53 +08:00
vcpkg_download_distfile(ARCHIVE
URLS "https://sites.google.com/site/yuta256/sais-2.4.1.zip"
FILENAME "sais-2.4.1.zip"
SHA512 6f6dd11f842f680bebc1d9b7f6b75752c9589c600fdd5e6373bb7290a686f1de35d4cc3226347e717f89a295363f7fee0ae8b1aa05ad341f4c2ea056fb5b1425
)
vcpkg_extract_source_archive(
SOURCE_PATH
ARCHIVE "${ARCHIVE}"
)
2018-08-30 22:56:53 +08:00
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
2018-08-30 22:56:53 +08:00
OPTIONS
-DBUILD_SAIS64=ON
2018-08-30 22:56:53 +08:00
)
vcpkg_cmake_install()
2018-08-30 22:56:53 +08:00
vcpkg_copy_pdbs()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
2018-08-30 22:56:53 +08:00
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
vcpkg_fixup_pkgconfig()