vcpkg/ports/rtmidi/portfile.cmake

29 lines
882 B
CMake
Raw Normal View History

# Upstream uses CMAKE_WINDOWS_EXPORT_ALL_SYMBOLS, which causes issues
# https://github.com/thestk/rtmidi/blob/4.0.0/CMakeLists.txt#L20
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
2017-06-24 07:25:31 +08:00
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO thestk/rtmidi
REF 84a99422a3faf1ab417fe71c0903a48debb9376a # 5.0.0
SHA512 388e280b7966281e22b0048d6fb2541921df1113d84e49bbc444fff591d2025588edd8d61dbe5ff017afd76c26fd05edc8f9f15d0cce16315ccc15e6aac1d57f
2017-06-24 07:25:31 +08:00
HEAD_REF master
)
vcpkg_cmake_configure(
SOURCE_PATH "${SOURCE_PATH}"
OPTIONS
-DRTMIDI_API_ALSA=OFF
-DRTMIDI_API_JACK=OFF
-DRTMIDI_BUILD_TESTING=OFF
2017-06-24 07:25:31 +08:00
)
vcpkg_cmake_install()
vcpkg_cmake_config_fixup()
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
2017-06-24 07:25:31 +08:00
2022-04-22 05:48:47 +08:00
vcpkg_fixup_pkgconfig()
file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)