2018-04-20 06:30:39 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO FluidSynth/fluidsynth
|
2020-08-20 10:45:55 +08:00
|
|
|
REF 2393aef3bd0b4e78084cfe16735d402bc1497edd #v2.1.4
|
|
|
|
SHA512 181914f883982d931dfa4d8c0d0391fb91fbf3448e1eb1ea1541c938d874d7611066e7e289859d83b610a85ba089463e0a93f77db5a6253349f6b328a7373dc6
|
2018-04-20 06:30:39 +08:00
|
|
|
HEAD_REF master
|
2019-08-28 05:48:58 +08:00
|
|
|
PATCHES
|
|
|
|
force-x86-gentables.patch
|
2018-04-20 06:30:39 +08:00
|
|
|
)
|
|
|
|
|
2021-04-16 04:53:35 +08:00
|
|
|
set(feature_list dbus jack libinstpatch libsndfile midishare opensles oboe oss sdl2 pulseaudio readline lash alsa systemd coreaudio coremidi dart)
|
|
|
|
set(FEATURE_OPTIONS)
|
|
|
|
foreach(_feature IN LISTS feature_list)
|
|
|
|
list(APPEND FEATURE_OPTIONS -Denable-${_feature}:BOOL=OFF)
|
|
|
|
endforeach()
|
|
|
|
|
|
|
|
vcpkg_find_acquire_program(PKGCONFIG)
|
2018-04-20 06:30:39 +08:00
|
|
|
vcpkg_configure_cmake(
|
|
|
|
SOURCE_PATH ${SOURCE_PATH}
|
2021-04-16 04:53:35 +08:00
|
|
|
OPTIONS
|
|
|
|
${FEATURE_OPTIONS}
|
|
|
|
-DPKG_CONFIG_EXECUTABLE=${PKGCONFIG}
|
|
|
|
OPTIONS_DEBUG
|
|
|
|
-Denable-debug:BOOL=ON
|
2018-04-20 06:30:39 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
|
|
|
|
# Copy fluidsynth.exe to tools dir
|
2020-08-20 10:45:55 +08:00
|
|
|
vcpkg_copy_tools(TOOL_NAMES fluidsynth AUTO_CLEAN)
|
2018-04-20 06:30:39 +08:00
|
|
|
|
|
|
|
# Remove unnecessary files
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
2020-08-20 10:45:55 +08:00
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
2018-04-20 06:30:39 +08:00
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
# Handle copyright
|
2021-04-16 04:53:35 +08:00
|
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
|