2018-10-16 10:02:05 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO cginternals/globjects
|
2019-05-24 13:02:13 +08:00
|
|
|
REF dc68b09a53ec20683d3b3a12ed8d9cb12602bb9a
|
|
|
|
SHA512 5145df795a73a8d74e983e143fd57441865f3082860efb89a3aa8c4d64c2eb6f0256a8049ccd5479dd77e53ef6638d9c903b29a8ef2b41a076003d9595912500
|
2018-10-16 10:02:05 +08:00
|
|
|
HEAD_REF master
|
2021-03-02 08:28:05 +08:00
|
|
|
PATCHES
|
|
|
|
system-install.patch
|
|
|
|
fix-dependency-glm.patch
|
2016-11-27 04:00:53 +08:00
|
|
|
)
|
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_cmake_configure(
|
2023-04-22 05:48:12 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-11-15 18:42:09 +08:00
|
|
|
OPTIONS
|
|
|
|
-DOPTION_BUILD_TESTS=OFF
|
|
|
|
-DOPTION_BUILD_GPU_TESTS=OFF
|
2018-10-16 10:02:05 +08:00
|
|
|
-DGIT_REV=0
|
2017-11-15 18:42:09 +08:00
|
|
|
)
|
2018-10-16 10:02:05 +08:00
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_cmake_install()
|
2016-11-27 04:00:53 +08:00
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH share/globjects/cmake/globjects)
|
2018-10-16 10:02:05 +08:00
|
|
|
|
2023-04-22 05:48:12 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
|
2016-11-27 04:14:30 +08:00
|
|
|
|
2023-04-22 05:48:12 +08:00
|
|
|
file(WRITE "${CURRENT_PACKAGES_DIR}/share/globjects/globjects-config.cmake" "include(CMakeFindDependencyMacro)
|
2018-10-16 10:02:05 +08:00
|
|
|
find_dependency(glm)
|
|
|
|
find_dependency(glbinding)
|
2016-11-27 04:14:30 +08:00
|
|
|
|
2020-03-11 06:57:07 +08:00
|
|
|
include(\${CMAKE_CURRENT_LIST_DIR}/globjects-export.cmake)
|
2018-10-16 10:02:05 +08:00
|
|
|
")
|
2016-11-30 05:19:29 +08:00
|
|
|
|
2016-11-27 04:00:53 +08:00
|
|
|
# Handle copyright
|
2023-04-22 05:48:12 +08:00
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/share/${PORT}/LICENSE" "${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright")
|
2016-11-27 04:14:30 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|