aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/asyncplusplus/portfile.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/asyncplusplus/portfile.cmake')
-rw-r--r--vcpkg/ports/asyncplusplus/portfile.cmake21
1 files changed, 21 insertions, 0 deletions
diff --git a/vcpkg/ports/asyncplusplus/portfile.cmake b/vcpkg/ports/asyncplusplus/portfile.cmake
new file mode 100644
index 0000000..db287ce
--- /dev/null
+++ b/vcpkg/ports/asyncplusplus/portfile.cmake
@@ -0,0 +1,21 @@
+vcpkg_check_linkage(ONLY_STATIC_LIBRARY)
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO Amanieu/asyncplusplus
+ REF v1.2
+ SHA512 4b59ef805d4683631ef2ba51039deb210d9ba28b35021489560b0f2da6f75a68da8cb676807f9831047c997673556f69fdca0ae2081996274015e708fd6ff55e
+ HEAD_REF master
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+vcpkg_cmake_config_fixup(CONFIG_PATH cmake PACKAGE_NAME async++)
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include" "${CURRENT_PACKAGES_DIR}/debug/share")
+
+file(INSTALL "${SOURCE_PATH}/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)