]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/sdformat9/portfile.cmake
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / sdformat9 / portfile.cmake
1 vcpkg_fail_port_install(ON_TARGET "linux" "uwp")
2
3 vcpkg_from_github(
4 OUT_SOURCE_PATH SOURCE_PATH
5 REPO osrf/sdformat
6 REF sdformat9_9.4.0
7 SHA512 b7ed458a5a9ba5b5dcf457d3e0c9de0bca3d514a6870aa977a00a84f8a3b8d1bd21f3b437c0651af7f0cc9b9c6c8b905c968525194605b334ab62280b9d55b0e
8 HEAD_REF sdf9
9 PATCHES
10 fix-dependency-urdfdom.patch
11 )
12
13 # Ruby is required by the sdformat build process
14 vcpkg_find_acquire_program(RUBY)
15 get_filename_component(RUBY_PATH ${RUBY} DIRECTORY)
16 set(_path $ENV{PATH})
17 vcpkg_add_to_path(${RUBY_PATH})
18
19 vcpkg_configure_cmake(
20 SOURCE_PATH ${SOURCE_PATH}
21 PREFER_NINJA
22 OPTIONS
23 -DBUILD_TESTING=OFF
24 -DUSE_EXTERNAL_URDF=ON
25 -DUSE_EXTERNAL_TINYXML=ON
26 )
27
28 vcpkg_install_cmake()
29
30 # Restore original path
31 set(ENV{PATH} ${_path})
32
33 # Fix cmake targets and pkg-config file location
34 vcpkg_fixup_cmake_targets(CONFIG_PATH "lib/cmake/sdformat9")
35 vcpkg_fixup_pkgconfig()
36
37 # Remove debug files
38 file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include
39 ${CURRENT_PACKAGES_DIR}/debug/lib/cmake
40 ${CURRENT_PACKAGES_DIR}/debug/share)
41
42 # Handle copyright
43 file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)