aboutsummaryrefslogtreecommitdiff
path: root/ports/libbacktrace
diff options
context:
space:
mode:
authorautoantwort <41973254+autoantwort@users.noreply.github.com>2021-03-17 23:04:33 +0100
committerGitHub <noreply@github.com>2021-03-17 15:04:33 -0700
commit9f6aaaccb70d6f114a967f0ab83eff42840614ed (patch)
tree2d3be9acfc2c42f534d67ab0c819d7b0f2ad448d /ports/libbacktrace
parent9ab3bafca4de5dec5a5a8b60f1d654cae7ad95aa (diff)
downloadvcpkg-9f6aaaccb70d6f114a967f0ab83eff42840614ed.tar.gz
vcpkg-9f6aaaccb70d6f114a967f0ab83eff42840614ed.zip
[libbacktrace] new port (#16693)
* [libbacktrace] add new port * add version files * Update ports/libbacktrace/portfile.cmake: Apply suggestion Co-authored-by: Robert Schumacher <roschuma@microsoft.com> * add version files Co-authored-by: Robert Schumacher <roschuma@microsoft.com>
Diffstat (limited to 'ports/libbacktrace')
-rw-r--r--ports/libbacktrace/portfile.cmake19
-rw-r--r--ports/libbacktrace/vcpkg.json6
2 files changed, 25 insertions, 0 deletions
diff --git a/ports/libbacktrace/portfile.cmake b/ports/libbacktrace/portfile.cmake
new file mode 100644
index 000000000..1931568fc
--- /dev/null
+++ b/ports/libbacktrace/portfile.cmake
@@ -0,0 +1,19 @@
+if(VCPKG_TARGET_IS_WINDOWS)
+ message("libbacktrace cannot be built using MSVC on Windows due to relying on the C++ unwind API https://itanium-cxx-abi.github.io/cxx-abi/abi-eh.html")
+endif()
+
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO ianlancetaylor/libbacktrace
+ REF 4f57c999716847e45505b3df170150876b545088
+ SHA512 1df2c9d3c119a2ec7b8b8940bff7ba6d28fe99587f565066ae25c216021431d3c26c8b336c38dd0490165244c66d68f9cba20dfc7836042b62f9d588946be4b5
+)
+
+vcpkg_configure_make(
+ SOURCE_PATH ${SOURCE_PATH}
+)
+
+vcpkg_install_make()
+vcpkg_fixup_pkgconfig()
+
+file(INSTALL ${SOURCE_PATH}/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT} RENAME copyright)
diff --git a/ports/libbacktrace/vcpkg.json b/ports/libbacktrace/vcpkg.json
new file mode 100644
index 000000000..7b6b32b53
--- /dev/null
+++ b/ports/libbacktrace/vcpkg.json
@@ -0,0 +1,6 @@
+{
+ "name": "libbacktrace",
+ "version-date": "2021-03-14",
+ "description": "The libbacktrace library may be linked into a program or library and used to produce symbolic backtraces.",
+ "homepage": "https://github.com/ianlancetaylor/libbacktrace"
+}