[huira] Add new port version 0.8.0 (#50078)
Co-authored-by: Javier Matos Denizac <javier.matosd@gmail.com>
This commit is contained in:
co-authored by
Javier Matos Denizac
parent
8f62cd5291
commit
8e340d35bd
@@ -0,0 +1,42 @@
|
||||
set(VCPKG_BUILD_TYPE release) # Only headers and tools
|
||||
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO huira-render/huira
|
||||
REF "v${VERSION}"
|
||||
SHA512 7f46d1c514a4a7ba5981dd2224ff4b01b3dc8f30903cf91f3bde25135d338dd7ac375d68eb75502d26264f7c6e54195c6126487cfc51c0a7c87f7c53d49df30f
|
||||
HEAD_REF main
|
||||
)
|
||||
|
||||
vcpkg_check_features(OUT_FEATURE_OPTIONS FEATURE_OPTIONS
|
||||
FEATURES
|
||||
tools HUIRA_APPS
|
||||
)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
${FEATURE_OPTIONS}
|
||||
-DHUIRA_TESTS=OFF
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
if("tools" IN_LIST FEATURES)
|
||||
vcpkg_copy_tools(TOOL_NAMES huira AUTO_CLEAN)
|
||||
endif()
|
||||
|
||||
# Fix up the installed CMake config so that paths are relocatable.
|
||||
vcpkg_cmake_config_fixup(
|
||||
PACKAGE_NAME huira
|
||||
CONFIG_PATH lib/cmake/huira
|
||||
)
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
"${CURRENT_PACKAGES_DIR}/bin"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/bin"
|
||||
"${CURRENT_PACKAGES_DIR}/lib"
|
||||
)
|
||||
|
||||
file(INSTALL "${CMAKE_CURRENT_LIST_DIR}/usage" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}")
|
||||
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|
||||
@@ -0,0 +1,4 @@
|
||||
huira provides CMake integration:
|
||||
|
||||
find_package(huira CONFIG REQUIRED)
|
||||
target_link_libraries(main PRIVATE huira::huira)
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"name": "huira",
|
||||
"version": "0.8.0",
|
||||
"description": "A ray tracing library for space engineering and planetary science.",
|
||||
"homepage": "https://github.com/YOUR_ORG/huira",
|
||||
"license": "MIT",
|
||||
"supports": "!android & !uwp & !xbox",
|
||||
"dependencies": [
|
||||
"assimp",
|
||||
"cfitsio",
|
||||
"cspice",
|
||||
"glm",
|
||||
"libjpeg-turbo",
|
||||
"libpng",
|
||||
"tbb",
|
||||
{
|
||||
"name": "tiff",
|
||||
"default-features": false
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
],
|
||||
"features": {
|
||||
"tools": {
|
||||
"description": "Build huira command line tools",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "curl",
|
||||
"default-features": false
|
||||
},
|
||||
"indicators"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3824,6 +3824,10 @@
|
||||
"baseline": "2.9.4",
|
||||
"port-version": 3
|
||||
},
|
||||
"huira": {
|
||||
"baseline": "0.8.0",
|
||||
"port-version": 0
|
||||
},
|
||||
"hungarian": {
|
||||
"baseline": "0.1.3",
|
||||
"port-version": 3
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "be75eeb6d538a3111c8b64cffde8f044763827c2",
|
||||
"version": "0.8.0",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user