aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/michaelmiller-sec21/portfile.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/michaelmiller-sec21/portfile.cmake')
-rw-r--r--vcpkg/ports/michaelmiller-sec21/portfile.cmake23
1 files changed, 23 insertions, 0 deletions
diff --git a/vcpkg/ports/michaelmiller-sec21/portfile.cmake b/vcpkg/ports/michaelmiller-sec21/portfile.cmake
new file mode 100644
index 0000000..ce86cb4
--- /dev/null
+++ b/vcpkg/ports/michaelmiller-sec21/portfile.cmake
@@ -0,0 +1,23 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO MichaelMiller-/sec21
+ REF "v${VERSION}"
+ SHA512 b9aab9d305e435db066f413a8e49d5622e83dc02d8e0ff0150a0edabf1b1dfd286f7aa5a3593b34c6f616fdd79caa3edbfeb09ff3b66aab80c0138aa2ca5950c
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+ OPTIONS -DBUILD_TESTING=OFF
+)
+
+vcpkg_cmake_install()
+vcpkg_cmake_config_fixup(PACKAGE_NAME "sec21" CONFIG_PATH lib/cmake/sec21)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/lib")
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+configure_file("${CMAKE_CURRENT_LIST_DIR}/usage" "${CURRENT_PACKAGES_DIR}/share/${PORT}/usage" COPYONLY)