aboutsummaryrefslogtreecommitdiff
path: root/vcpkg/ports/trantor/portfile.cmake
diff options
context:
space:
mode:
Diffstat (limited to 'vcpkg/ports/trantor/portfile.cmake')
-rw-r--r--vcpkg/ports/trantor/portfile.cmake27
1 files changed, 27 insertions, 0 deletions
diff --git a/vcpkg/ports/trantor/portfile.cmake b/vcpkg/ports/trantor/portfile.cmake
new file mode 100644
index 0000000..7724cba
--- /dev/null
+++ b/vcpkg/ports/trantor/portfile.cmake
@@ -0,0 +1,27 @@
+vcpkg_from_github(
+ OUT_SOURCE_PATH SOURCE_PATH
+ REPO an-tao/trantor
+ REF "v${VERSION}"
+ SHA512 a875e5bf8c8d871d1a3ddeeb79891773eed4f13772aa8c09ce6bdd60fa7af621eed6986935c0b70b58e790618934ca82a7ebd4ba5faf2b534b8ecb6f74d6bad1
+ HEAD_REF master
+ PATCHES
+ 000-fix-deps.patch
+ 001-disable-werror.patch
+)
+
+vcpkg_cmake_configure(
+ SOURCE_PATH "${SOURCE_PATH}"
+)
+
+vcpkg_cmake_install()
+
+# Fix CMake files
+vcpkg_cmake_config_fixup(CONFIG_PATH lib/cmake/Trantor)
+
+vcpkg_fixup_pkgconfig()
+
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
+
+file(INSTALL "${SOURCE_PATH}/License" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright)
+
+vcpkg_copy_pdbs()