vcpkg/ports/klein/portfile.cmake
João Maia 110c89fc6a
[klein] create a new port (#18279)
* [klein] new port

* [klein] Replace version-string by version

* [klein] Add call to vcpkg_fixup_pkgconfig()

* [klein] Replace klein by ${PORT}

* [klein] Add patch to avoid using FetchContent

* [klein] Change version to version-date

* update version

* Apply suggestions from code review

Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>

* Update git-tree version

Co-authored-by: Jonliu1993 <13720414433@163.com>
Co-authored-by: nicole mazzuca <83086508+strega-nil-ms@users.noreply.github.com>
2021-07-06 10:29:48 -07:00

30 lines
921 B
CMake

vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO jeremyong/klein
REF 92023c6a946af84e716deb1488cad22048d3e08d
SHA512 5d12ae143f07173992a6f9aa90539c4cb6c895a7169e5c086a10f78a31f7b2c9d64faf5ce1db014bd3badd92d24ff612dd2d2dc2f7508baac59307e3dccb6ebe
HEAD_REF master
PATCHES
"find_simde_first.patch"
)
vcpkg_cmake_configure(
SOURCE_PATH ${SOURCE_PATH}
OPTIONS
-DKLEIN_ENABLE_PERF=OFF
-DKLEIN_ENABLE_TESTS=OFF
-DKLEIN_VALIDATE=OFF
-DKLEIN_BUILD_SYM=OFF
-DKLEIN_BUILD_C_BINDINGS=OFF
-DKLEIN_INSTALL=ON
)
vcpkg_cmake_install()
vcpkg_fixup_pkgconfig()
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
file(INSTALL ${CMAKE_CURRENT_LIST_DIR}/usage DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT})
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")