]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/opensubdiv/portfile.cmake
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / opensubdiv / portfile.cmake
1 vcpkg_fail_port_install(ON_ARCH "arm" "arm64" ON_TARGET "uwp")
2
3 vcpkg_from_github(
4 OUT_SOURCE_PATH SOURCE_PATH
5 REPO PixarAnimationStudios/OpenSubdiv
6 REF 82ab1b9f54c87fdd7e989a3470d53e137b8ca270 # 3.4.3
7 SHA512 607cb9aa05d83a24bc2102bfd28abfec58f5723b1c56f6f431111ebf98f105ff7ca2a77610953acd21f73cb74d8d8ec68db3aeb11be1f9ca56d87c36c58dd095
8 HEAD_REF master
9 PATCHES
10 fix_compile-option.patch
11 )
12
13 if(VCPKG_TARGET_IS_LINUX)
14 message(
15 "OpenSubdiv currently requires the following libraries from the system package manager:
16 xinerama
17
18 These can be installed on Ubuntu systems via sudo apt install libxinerama-dev")
19 endif()
20
21 vcpkg_find_acquire_program(PYTHON2)
22 get_filename_component(PYTHON2_DIR "${PYTHON2}" DIRECTORY)
23 vcpkg_add_to_path("${PYTHON2_DIR}")
24
25 if (VCPKG_CRT_LINKAGE STREQUAL static)
26 set(STATIC_CRT_LNK ON)
27 else()
28 set(STATIC_CRT_LNK OFF)
29 endif()
30
31 vcpkg_configure_cmake(
32 SOURCE_PATH ${SOURCE_PATH}
33 PREFER_NINJA # Disable this option if project cannot be built with Ninja
34 OPTIONS
35 -DNO_DX=ON
36 -DNO_CUDA=ON
37 -DNO_EXAMPLES=ON
38 -DNO_TUTORIALS=ON
39 -DNO_REGRESSION=ON
40 -DNO_TESTS=ON
41 -DMSVC_STATIC_CRT=${STATIC_CRT_LNK}
42 )
43
44 vcpkg_install_cmake()
45
46 # # Moves all .cmake files from /debug/share/opensubdiv/ to /share/opensubdiv/
47 # # See /docs/maintainers/vcpkg_fixup_cmake_targets.md for more details
48 # vcpkg_fixup_cmake_targets(CONFIG_PATH cmake TARGET_PATH share/opensubdiv)
49
50 file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/bin")
51 file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/bin")
52 file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
53 file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
54
55 file(INSTALL ${SOURCE_PATH}/LICENSE.txt DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)