vcpkg/ports/libmspack/portfile.cmake

33 lines
1007 B
CMake
Raw Normal View History

2017-11-30 17:39:19 +08:00
set(LIB_NAME libmspack)
2019-03-28 00:16:03 +08:00
set(LIB_VERSION 0.10.1alpha)
2017-11-30 17:39:19 +08:00
set(LIB_FILENAME ${LIB_NAME}-${LIB_VERSION}.tar.gz)
vcpkg_download_distfile(ARCHIVE
URLS "https://www.cabextract.org.uk/libmspack/${LIB_FILENAME}"
FILENAME "${LIB_FILENAME}"
2019-03-28 00:16:03 +08:00
SHA512 a7b5f7caa49190c5021f3e768b92f2e51cc0ce685c9ab6ed6fb36de885c73231b58d47a8a3b5c5aa5c9ac56c25c500eb683d84dbf11f09f97f6cb4fff5adc245
2017-11-30 17:39:19 +08:00
)
vcpkg_extract_source_archive_ex(
ARCHIVE ${ARCHIVE}
OUT_SOURCE_PATH SOURCE_PATH
)
2017-11-30 17:39:19 +08:00
file(COPY ${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt DESTINATION ${SOURCE_PATH})
file(COPY ${CMAKE_CURRENT_LIST_DIR}/config.h DESTINATION ${SOURCE_PATH})
file(COPY ${CMAKE_CURRENT_LIST_DIR}/libmspack.def DESTINATION ${SOURCE_PATH})
vcpkg_configure_cmake(
SOURCE_PATH ${SOURCE_PATH}
PREFER_NINJA
2017-11-30 17:39:19 +08:00
)
vcpkg_install_cmake()
file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
# License and man
file(INSTALL ${SOURCE_PATH}/COPYING.LIB DESTINATION ${CURRENT_PACKAGES_DIR}/share/${LIB_NAME} RENAME copyright)
vcpkg_copy_pdbs()