2019-05-03 13:57:43 +08:00
|
|
|
vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
|
|
|
|
|
2018-08-06 16:31:31 +08:00
|
|
|
vcpkg_download_distfile(ARCHIVE
|
|
|
|
URLS "http://plib.sourceforge.net/dist/plib-1.8.5.tar.gz"
|
|
|
|
FILENAME "plib-1.8.5.tar.gz"
|
|
|
|
SHA512 17154cc77243fe576c2bcbcb0285b98aef1a0634658f5473e95fe0ac8fa3ed477dbe5620e44ccf0b7cc616f812af0cd44d6fcbba0c563180d3b61c9d6f158e1d
|
|
|
|
)
|
2019-10-08 01:35:13 +08:00
|
|
|
|
2023-04-14 00:13:15 +08:00
|
|
|
vcpkg_extract_source_archive(
|
|
|
|
SOURCE_PATH
|
2022-10-28 10:23:00 +08:00
|
|
|
ARCHIVE "${ARCHIVE}"
|
2019-10-08 01:35:13 +08:00
|
|
|
)
|
2018-08-06 16:31:31 +08:00
|
|
|
|
2022-10-28 10:23:00 +08:00
|
|
|
file(COPY "${CMAKE_CURRENT_LIST_DIR}/CMakeLists.txt" DESTINATION "${SOURCE_PATH}")
|
2018-08-06 16:31:31 +08:00
|
|
|
|
2022-10-28 10:23:00 +08:00
|
|
|
vcpkg_cmake_configure(
|
|
|
|
SOURCE_PATH "${SOURCE_PATH}"
|
2018-08-06 16:31:31 +08:00
|
|
|
)
|
|
|
|
|
2022-10-28 10:23:00 +08:00
|
|
|
vcpkg_cmake_install()
|
2018-08-06 16:31:31 +08:00
|
|
|
|
2022-10-28 10:23:00 +08:00
|
|
|
file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
|
2018-08-06 16:31:31 +08:00
|
|
|
|
2022-10-28 10:23:00 +08:00
|
|
|
file(INSTALL "${SOURCE_PATH}/COPYING" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
|