2019-08-29 03:25:28 +08:00
|
|
|
vcpkg_from_github(
|
2020-09-28 08:34:12 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO ogdf/ogdf
|
2022-11-01 04:25:38 +08:00
|
|
|
REF 214105da97863e1d0a066157e5cc573b65b433a9
|
|
|
|
SHA512 8ab9f266fef224ce600cec418d5de56761714fbaa2d509ba89d55700c1d27d02a5fc93fab8eb8e10325a42c7d2fa8e251e2a18ece9a9565e215bf39672bff92d
|
2019-08-29 03:25:28 +08:00
|
|
|
HEAD_REF master
|
2018-07-03 19:36:18 +08:00
|
|
|
)
|
|
|
|
|
2022-11-01 04:25:38 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-07-11 15:17:13 +08:00
|
|
|
OPTIONS
|
|
|
|
-DCOIN_INSTALL_LIBRARY_DIR:STRING=lib
|
|
|
|
-DCOIN_INSTALL_CMAKE_DIR:STRING=lib/cmake/OGDF
|
|
|
|
-DOGDF_INSTALL_LIBRARY_DIR:STRING=lib
|
|
|
|
-DOGDF_INSTALL_CMAKE_DIR:STRING=lib/cmake/OGDF
|
2018-07-03 19:36:18 +08:00
|
|
|
)
|
|
|
|
|
2022-11-01 04:25:38 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-07-03 19:36:18 +08:00
|
|
|
|
2022-11-01 04:25:38 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/OGDF)
|
2018-07-03 19:36:18 +08:00
|
|
|
|
|
|
|
# Handle copyright
|
2022-11-01 04:25:38 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/LICENSE.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib/minisat/doc" "${CURRENT_PACKAGES_DIR}/include/ogdf/lib/minisat/doc")
|