2019-05-08 04:35:30 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY ONLY_DYNAMIC_CRT)
|
|
|
|
|
2019-03-06 00:28:35 +00:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO themoos/core-moos
|
|
|
|
REF v10.4.0
|
2019-05-02 22:57:43 -07:00
|
|
|
SHA512 8a82074bd219bbedbe56c2187afe74a55a252b0654a675c64d1f75e62353b0874e7b405d9f677fadb297e955d11aea50a07e8f5f3546be3c4ddab76fe356a51e
|
2019-03-06 00:28:35 +00:00
|
|
|
HEAD_REF master
|
2019-05-08 04:35:30 +08:00
|
|
|
PATCHES
|
|
|
|
cmake_fix.patch
|
2019-03-06 00:28:35 +00:00
|
|
|
)
|
|
|
|
|
2022-06-24 21:50:23 +02:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2020-12-03 13:24:26 -08:00
|
|
|
DISABLE_PARALLEL_CONFIGURE
|
2019-03-06 00:28:35 +00:00
|
|
|
OPTIONS
|
|
|
|
-DCMAKE_ENABLE_EXPORT=OFF
|
|
|
|
)
|
|
|
|
|
2022-06-24 21:50:23 +02:00
|
|
|
vcpkg_cmake_install()
|
2019-03-06 00:28:35 +00:00
|
|
|
|
2022-06-24 21:50:23 +02:00
|
|
|
vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/MOOS)
|
2019-03-06 00:28:35 +00:00
|
|
|
|
2019-05-08 04:35:30 +08:00
|
|
|
# Stage tools
|
2022-06-24 21:50:23 +02:00
|
|
|
file(MAKE_DIRECTORY "${CURRENT_PACKAGES_DIR}/tools")
|
|
|
|
file(RENAME "${CURRENT_PACKAGES_DIR}/bin" "${CURRENT_PACKAGES_DIR}/tools/${PORT}")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin" "${CURRENT_PACKAGES_DIR}/debug/include")
|
2019-03-06 00:28:35 +00:00
|
|
|
|
2022-06-24 21:50:23 +02:00
|
|
|
file(INSTALL "${SOURCE_PATH}/Core/GPLCore.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|