]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/opentelemetry-cpp/tools/vcpkg/ports/fluidsynth/portfile.cmake
update ceph source to reef 18.1.2
[ceph.git] / ceph / src / jaegertracing / opentelemetry-cpp / tools / vcpkg / ports / fluidsynth / portfile.cmake
1 vcpkg_from_github(
2 OUT_SOURCE_PATH SOURCE_PATH
3 REPO FluidSynth/fluidsynth
4 REF 2393aef3bd0b4e78084cfe16735d402bc1497edd #v2.1.4
5 SHA512 181914f883982d931dfa4d8c0d0391fb91fbf3448e1eb1ea1541c938d874d7611066e7e289859d83b610a85ba089463e0a93f77db5a6253349f6b328a7373dc6
6 HEAD_REF master
7 PATCHES
8 force-x86-gentables.patch
9 )
10
11 set(feature_list dbus jack libinstpatch libsndfile midishare opensles oboe oss sdl2 pulseaudio readline lash alsa systemd coreaudio coremidi dart)
12 set(FEATURE_OPTIONS)
13 foreach(_feature IN LISTS feature_list)
14 list(APPEND FEATURE_OPTIONS -Denable-${_feature}:BOOL=OFF)
15 endforeach()
16
17 vcpkg_find_acquire_program(PKGCONFIG)
18 vcpkg_configure_cmake(
19 SOURCE_PATH ${SOURCE_PATH}
20 OPTIONS
21 ${FEATURE_OPTIONS}
22 -DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}
23 OPTIONS_DEBUG
24 -Denable-debug:BOOL=ON
25 )
26
27 vcpkg_install_cmake()
28
29 # Copy fluidsynth.exe to tools dir
30 vcpkg_copy_tools(TOOL_NAMES fluidsynth AUTO_CLEAN)
31
32 # Remove unnecessary files
33 file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
34 file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
35
36 if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
37 file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
38 endif()
39
40 # Handle copyright
41 file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)