mirror of
https://github.com/microsoft/vcpkg.git
synced 2024-12-18 21:48:23 +08:00
30 lines
951 B
CMake
30 lines
951 B
CMake
vcpkg_from_github(
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
REPO FluidSynth/fluidsynth
|
|
REF 2393aef3bd0b4e78084cfe16735d402bc1497edd #v2.1.4
|
|
SHA512 181914f883982d931dfa4d8c0d0391fb91fbf3448e1eb1ea1541c938d874d7611066e7e289859d83b610a85ba089463e0a93f77db5a6253349f6b328a7373dc6
|
|
HEAD_REF master
|
|
PATCHES
|
|
force-x86-gentables.patch
|
|
)
|
|
|
|
vcpkg_configure_cmake(
|
|
SOURCE_PATH ${SOURCE_PATH}
|
|
OPTIONS -Denable-pkgconfig=0
|
|
)
|
|
|
|
vcpkg_install_cmake()
|
|
|
|
# Copy fluidsynth.exe to tools dir
|
|
vcpkg_copy_tools(TOOL_NAMES fluidsynth AUTO_CLEAN)
|
|
|
|
# Remove unnecessary files
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/share)
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL static)
|
|
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/bin ${CURRENT_PACKAGES_DIR}/debug/bin)
|
|
endif()
|
|
|
|
# Handle copyright
|
|
file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright) |