2018-01-28 19:14:06 +08:00
|
|
|
vcpkg_from_github(
|
2023-10-17 03:12:21 +08:00
|
|
|
OUT_SOURCE_PATH SOURCE_PATH
|
|
|
|
REPO OpenMPT/openmpt
|
|
|
|
REF "libopenmpt-${VERSION}"
|
|
|
|
SHA512 ff89a4bf9b1831a5ca1241bddbeff30a16bb32132165e73fb51f6ad43450c23ed236a1ad26e99f1e4af4a65cb58c8ca6140e09b7ac7cd57771526dec160d851b
|
|
|
|
HEAD_REF master
|
2018-01-28 19:14:06 +08:00
|
|
|
)
|
|
|
|
|
2023-10-17 03:12:21 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2018-01-28 19:14:06 +08:00
|
|
|
|
2021-10-26 04:35:56 +08:00
|
|
|
vcpkg_cmake_configure(
|
2023-10-17 03:12:21 +08:00
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
|
|
|
OPTIONS
|
|
|
|
"-DVERSION=${VERSION}"
|
2018-01-28 19:14:06 +08:00
|
|
|
)
|
2021-10-26 04:35:56 +08:00
|
|
|
vcpkg_cmake_install()
|
|
|
|
vcpkg_cmake_config_fixup()
|
|
|
|
vcpkg_fixup_pkgconfig()
|
2018-01-28 19:14:06 +08:00
|
|
|
vcpkg_copy_pdbs()
|
|
|
|
|
2021-10-26 04:35:56 +08:00
|
|
|
if(VCPKG_LIBRARY_LINKAGE STREQUAL "static")
|
|
|
|
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/libopenmpt/libopenmpt_config.h "defined(LIBOPENMPT_USE_DLL)" "0")
|
|
|
|
else()
|
|
|
|
vcpkg_replace_string(${CURRENT_PACKAGES_DIR}/include/libopenmpt/libopenmpt_config.h "defined(LIBOPENMPT_USE_DLL)" "1")
|
|
|
|
endif()
|
|
|
|
|
2023-10-17 03:12:21 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
|
|
|
vcpkg_install_copyright(FILE_LIST "${SOURCE_PATH}/LICENSE")
|