mirror of
https://github.com/microsoft/vcpkg.git
synced 2025-01-14 05:07:57 +08:00
[materialx] Add port MaterialX 1.38.4 (#24614)
* [materialx] Add port MaterialX 1.38.4 * Update ports/materialx/portfile.cmake Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> * Switch `version-semver` -> `version` * Bump port commit to avoid patch * Add quotes. Co-authored-by: JonLiu1993 <63675417+JonLiu1993@users.noreply.github.com> Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
This commit is contained in:
parent
68ab9e91b6
commit
6a2c904768
49
ports/materialx/portfile.cmake
Normal file
49
ports/materialx/portfile.cmake
Normal file
@ -0,0 +1,49 @@
|
||||
vcpkg_from_github(
|
||||
OUT_SOURCE_PATH SOURCE_PATH
|
||||
REPO AcademySoftwareFoundation/MaterialX
|
||||
REF b1ba83b312576fc58f02a6a7db40b18ddbe4f87f # 1.38.4
|
||||
SHA512 3988c42d487e391f9f0f3ab5f34eaa26c7f450079695d96954b871e078eecfe692daa9917279560ba3f10bf771685df3da6e26273d575a23a11c3d17fb897c62
|
||||
HEAD_REF main
|
||||
)
|
||||
|
||||
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" OPTION_BUILD_SHARED_LIB)
|
||||
|
||||
vcpkg_cmake_configure(
|
||||
SOURCE_PATH "${SOURCE_PATH}"
|
||||
OPTIONS
|
||||
"-DMATERIALX_BUILD_SHARED_LIBS:BOOL=${OPTION_BUILD_SHARED_LIB}"
|
||||
"-DMATERIALX_BUILD_JS:BOOL=NO"
|
||||
"-DMATERIALX_BUILD_PYTHON:BOOL=NO"
|
||||
"-DMATERIALX_BUILD_VIEWER:BOOL=NO"
|
||||
"-DMATERIALX_BUILD_DOCS:BOOL=NO"
|
||||
"-DMATERIALX_BUILD_GEN_GLSL:BOOL=NO"
|
||||
"-DMATERIALX_BUILD_GEN_OSL:BOOL=NO"
|
||||
"-DMATERIALX_BUILD_GEN_MDL:BOOL=NO"
|
||||
"-DMATERIALX_BUILD_RENDER:BOOL=NO"
|
||||
"-DMATERIALX_BUILD_OIIO:BOOL=NO"
|
||||
"-DMATERIALX_BUILD_TESTS:BOOL=NO"
|
||||
"-DMATERIALX_PYTHON_LTO:BOOL=NO"
|
||||
"-DMATERIALX_INSTALL_PYTHON:BOOL=NO"
|
||||
"-DMATERIALX_TEST_RENDER:BOOL=NO"
|
||||
"-DMATERIALX_WARNINGS_AS_ERRORS:BOOL=NO"
|
||||
MAYBE_UNUSED_VARIABLES
|
||||
MATERIALX_PYTHON_LTO # Used when MATERIALX_BUILD_PYTHON=ON
|
||||
)
|
||||
|
||||
vcpkg_cmake_install()
|
||||
|
||||
vcpkg_copy_pdbs()
|
||||
vcpkg_cmake_config_fixup(PACKAGE_NAME MaterialX CONFIG_PATH lib/cmake/MaterialX)
|
||||
|
||||
file(REMOVE_RECURSE
|
||||
"${CURRENT_PACKAGES_DIR}/CHANGELOG.md"
|
||||
"${CURRENT_PACKAGES_DIR}/LICENSE"
|
||||
"${CURRENT_PACKAGES_DIR}/README.md"
|
||||
"${CURRENT_PACKAGES_DIR}/THIRD-PARTY.md"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/CHANGELOG.md"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/LICENSE"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/README.md"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/THIRD-PARTY.md"
|
||||
"${CURRENT_PACKAGES_DIR}/debug/include")
|
||||
|
||||
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
18
ports/materialx/vcpkg.json
Normal file
18
ports/materialx/vcpkg.json
Normal file
@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "materialx",
|
||||
"version": "1.38.4",
|
||||
"description": "MaterialX is an open standard for the exchange of rich material and look-development content across applications and renderers.",
|
||||
"homepage": "https://www.materialx.org/",
|
||||
"license": "Apache-2.0",
|
||||
"supports": "!uwp",
|
||||
"dependencies": [
|
||||
{
|
||||
"name": "vcpkg-cmake",
|
||||
"host": true
|
||||
},
|
||||
{
|
||||
"name": "vcpkg-cmake-config",
|
||||
"host": true
|
||||
}
|
||||
]
|
||||
}
|
@ -4412,6 +4412,10 @@
|
||||
"baseline": "2022-03-02",
|
||||
"port-version": 0
|
||||
},
|
||||
"materialx": {
|
||||
"baseline": "1.38.4",
|
||||
"port-version": 0
|
||||
},
|
||||
"mathc": {
|
||||
"baseline": "2019-09-29",
|
||||
"port-version": 1
|
||||
|
9
versions/m-/materialx.json
Normal file
9
versions/m-/materialx.json
Normal file
@ -0,0 +1,9 @@
|
||||
{
|
||||
"versions": [
|
||||
{
|
||||
"git-tree": "f0dc3a4ac664a5b4fe18a946a35965b519c148e7",
|
||||
"version": "1.38.4",
|
||||
"port-version": 0
|
||||
}
|
||||
]
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user