2022-06-16 03:07:15 +08:00
|
|
|
vcpkg_from_gitlab(
|
2022-08-06 14:57:32 +08:00
|
|
|
GITLAB_URL https://gitlab.com/inivation/
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO dv/libcaer
|
|
|
|
REF 933dfa60a138091afb03014f8c24183bab7bba4e
|
2022-10-25 07:59:04 +08:00
|
|
|
SHA512 f3ac74bb4cfc4077e5a226307f66a9b8b263201d2342d9e61ee98a23f95e7897895da9f148b4e910535779f779a26f5c192925386a99a70e9d22540a5421d646
|
2022-08-06 14:57:32 +08:00
|
|
|
HEAD_REF master
|
2022-06-16 03:07:15 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_cmake_configure(
|
2022-08-06 14:57:32 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
|
|
|
OPTIONS
|
|
|
|
-DENABLE_OPENCV=ON
|
|
|
|
-DEXAMPLES_INSTALL=OFF
|
|
|
|
-DBUILD_CONFIG_VCPKG=ON
|
2022-06-16 03:07:15 +08:00
|
|
|
)
|
|
|
|
vcpkg_cmake_install()
|
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME "libcaer" CONFIG_PATH "share/libcaer")
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|