2019-01-16 08:40:00 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
2018-05-14 04:34:06 +08:00
|
|
|
|
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO kmhofmann/selene
|
2019-01-27 04:45:54 +08:00
|
|
|
REF v0.3.1
|
|
|
|
SHA512 7bc57ebe9e2442da2716eb5c1af11f8d610b0b09fe96e3122d1028575732b6045a987c499bbf7de53003edd627b8809d86c80ea4975fc2264a1c61d5891a46c3
|
2018-05-14 04:34:06 +08:00
|
|
|
HEAD_REF master
|
2019-05-29 07:58:00 +08:00
|
|
|
PATCHES
|
|
|
|
disable_x86_intrinsics_on_arm.patch
|
2021-06-10 07:33:25 +08:00
|
|
|
tiff-deprecated-typedefs.patch
|
2021-08-05 04:27:40 +08:00
|
|
|
trivial-pixel.patch
|
2018-05-14 04:34:06 +08:00
|
|
|
)
|
|
|
|
|
2021-06-10 07:33:25 +08:00
|
|
|
vcpkg_check_features(
|
|
|
|
OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
|
|
|
FEATURES
|
|
|
|
"opencv" SELENE_USE_OPENCV
|
|
|
|
)
|
2020-09-05 09:59:21 +08:00
|
|
|
|
2021-06-10 07:33:25 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
2022-10-04 04:56:55 +08:00
|
|
|
-DSELENE_ARCH_NATIVE=OFF
|
2021-06-10 07:33:25 +08:00
|
|
|
${FEATURE_OPTIONS}
|
2018-05-14 04:34:06 +08:00
|
|
|
)
|
|
|
|
|
2021-06-10 07:33:25 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/selene)
|
2018-05-14 04:34:06 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-06-10 07:33:25 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2018-05-14 04:34:06 +08:00
|
|
|
|
2021-06-10 07:33:25 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|