2017-11-30 17:39:19 +08:00
|
|
|
set(LIB_NAME libmspack)
|
2023-10-21 00:53:30 +08:00
|
|
|
set(LIB_VERSION 0.11alpha)
|
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}"
|
2023-10-21 00:53:30 +08:00
|
|
|
SHA512 40c487e5b4e2f63a6cada26d29db51f605e8c29525a1cb088566d02cf2b1cc9dba263f80e2101d7f8e9d69cf7684a15bcaf791fb4891ad013a56afc7256dfa62
|
2017-11-30 17:39:19 +08:00
|
|
|
)
|
2019-10-08 01:35:13 +08:00
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
|
|
|
ARCHIVE "${ARCHIVE}"
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
2017-11-30 17:39:19 +08:00
|
|
|
|
2023-03-08 06:14:52 +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}")
|
2017-11-30 17:39:19 +08:00
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2017-11-30 17:39:19 +08:00
|
|
|
)
|
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
vcpkg_cmake_install()
|
2017-11-30 17:39:19 +08:00
|
|
|
|
2023-03-08 06:14:52 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2017-11-30 17:39:19 +08:00
|
|
|
|
|
|
|
# License and man
|
2023-03-08 06:14:52 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING.LIB" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|
2017-11-30 17:39:19 +08:00
|
|
|
|
|
|
|
vcpkg_copy_pdbs()
|