2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO Mindwerks/wildmidi
|
2023-02-01 04:56:20 +08:00
|
|
|
REF wildmidi-0.4.5
|
|
|
|
SHA512 0229914ecc60091b649b790a82ad5e755a2b9dfab7443fb3e3c19f4ae64b82817cafe74d78c27f05c68c3c8fb30092c96da732d27ff82fbd7dd7d577facc23d6
|
2019-05-03 13:57:43 +08:00
|
|
|
HEAD_REF master
|
2017-10-02 22:10:33 +08:00
|
|
|
)
|
|
|
|
|
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL dynamic)
|
|
|
|
set(WANT_STATIC "OFF")
|
|
|
|
else()
|
|
|
|
set(WANT_STATIC "ON")
|
|
|
|
endif()
|
|
|
|
|
2021-10-12 11:13:00 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-10-02 22:10:33 +08:00
|
|
|
OPTIONS
|
|
|
|
-DWANT_PLAYER=OFF
|
|
|
|
-DWANT_STATIC=${WANT_STATIC}
|
|
|
|
)
|
|
|
|
|
2021-10-12 11:13:00 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup(PACKAGE_NAME WildMidi CONFIG_PATH lib/cmake/WildMidi)
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2017-10-02 22:10:33 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-10-12 11:13:00 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/man")
|
2017-10-02 22:10:33 +08:00
|
|
|
|
2021-10-12 11:13:00 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/docs/license/LGPLv3.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|