2021-03-26 04:06:28 +08:00
|
|
|
vcpkg_from_github(
|
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO munt/munt
|
2021-08-31 01:28:07 +08:00
|
|
|
REF libmt32emu_2_5_3
|
|
|
|
SHA512 c801e22e861898281316109533ca6264f5a9cf778d4f0bb14b49bb6d04d53b7e60cd8320d5b29a63534f6c470b4feb67c881e86c49b7860a98639ce01b99debf
|
2021-03-26 04:06:28 +08:00
|
|
|
HEAD_REF master
|
|
|
|
)
|
|
|
|
|
|
|
|
string(COMPARE EQUAL "${VCPKG_LIBRARY_LINKAGE}" "dynamic" BUILD_SHARED)
|
|
|
|
|
2021-08-31 01:28:07 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}/mt32emu"
|
2021-03-26 04:06:28 +08:00
|
|
|
OPTIONS
|
|
|
|
-Dlibmt32emu_SHARED:BOOL=${BUILD_SHARED}
|
|
|
|
)
|
|
|
|
|
2021-08-31 01:28:07 +08:00
|
|
|
vcpkg_cmake_install()
|
2021-03-26 04:06:28 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/share")
|
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/share/doc")
|
|
|
|
|
|
|
|
|
2021-08-31 01:28:07 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/mt32emu/COPYING.txt" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2021-10-28 06:19:28 +08:00
|
|
|
|
|
|
|
vcpkg_fixup_pkgconfig()
|