aboutsummaryrefslogtreecommitdiff
path: root/ports/libcrafter
diff options
context:
space:
mode:
authorNancyLi1013 <46708020+NancyLi1013@users.noreply.github.com>2021-09-08 22:45:37 +0800
committerGitHub <noreply@github.com>2021-09-08 07:45:37 -0700
commit5b2ac1fed8943460726163946ed13154ab81c9ea (patch)
tree74f1d106b76b152ac6dd7bc9f4b29b198e4f93e1 /ports/libcrafter
parent615547c1d5b363d3586d2012c4cd7d075a0516b8 (diff)
downloadvcpkg-5b2ac1fed8943460726163946ed13154ab81c9ea.tar.gz
vcpkg-5b2ac1fed8943460726163946ed13154ab81c9ea.zip
[libhsplasma/libpcap/lv2/libcrafter] Update to the latest version (#19965)
* [libhsplasma/libpcap/lv2] Update to the latest version * [libpcap] Remove unused comments * Update version files * [lv2] Fix usage [libpcap] Update ci.baseline.txt * [libhsplasma] Remove x64-windows-static=fail from ci.baseline.txt * [libcrafter] Update to 1.0 * [libcrafter] Add vcpkg.json * Update version files * Add CRT check for libpcap and update version as versin-semver for libpcap * Update version files Co-authored-by: Billy Robert O'Neal III <bion@microsoft.com>
Diffstat (limited to 'ports/libcrafter')
-rw-r--r--ports/libcrafter/CONTROL6
-rw-r--r--ports/libcrafter/portfile.cmake12
-rw-r--r--ports/libcrafter/vcpkg.json10
3 files changed, 17 insertions, 11 deletions
diff --git a/ports/libcrafter/CONTROL b/ports/libcrafter/CONTROL
deleted file mode 100644
index 47538dae9..000000000
--- a/ports/libcrafter/CONTROL
+++ /dev/null
@@ -1,6 +0,0 @@
-Source: libcrafter
-Version: 0.3
-Port-Version: 2
-Homepage: https://github.com/pellegre/libcrafter
-Description: Libcrafter is a high level library for C++ designed to create and decode network packets.
-Build-Depends: libpcap
diff --git a/ports/libcrafter/portfile.cmake b/ports/libcrafter/portfile.cmake
index 565a0c346..3b78eadf9 100644
--- a/ports/libcrafter/portfile.cmake
+++ b/ports/libcrafter/portfile.cmake
@@ -1,15 +1,17 @@
+vcpkg_fail_port_install(ON_TARGET "windows")
+
vcpkg_from_github(
OUT_SOURCE_PATH SOURCE_PATH
REPO pellegre/libcrafter
- REF version-0.3
- SHA512 7c396ba942b304dddfaa569adb44697f75568d3ef2ed48dda758e281f3b7c172439309033bbf5498069a4a61a952f93e41af99b129ce874ce76b5ec08da58116
+ REF 86f81f101b5e3051ed04563b3ad3dd7a823afb21 #version-1.0
+ SHA512 bd0eac06896df63f0fff0ed3cf7ca5176e56615476c8134bd26f035692ab9e583f58f1f57daa7673771a710d6921c0c6a6473ab181982ad57727584f2cde56d0
HEAD_REF master
PATCHES fix-build-error.patch
)
vcpkg_configure_make(
AUTOCONFIG
- SOURCE_PATH ${SOURCE_PATH}
+ SOURCE_PATH "${SOURCE_PATH}"
PROJECT_SUBPATH libcrafter
OPTIONS
"--with-libpcap=${CURRENT_INSTALLED_DIR}"
@@ -17,9 +19,9 @@ vcpkg_configure_make(
vcpkg_install_make()
-file(REMOVE_RECURSE ${CURRENT_PACKAGES_DIR}/debug/include)
+file(REMOVE_RECURSE "${CURRENT_PACKAGES_DIR}/debug/include")
vcpkg_copy_pdbs()
# Handle copyright
-file(INSTALL ${SOURCE_PATH}/libcrafter/LICENSE DESTINATION ${CURRENT_PACKAGES_DIR}/share/${PORT}/copyright) \ No newline at end of file
+file(INSTALL "${SOURCE_PATH}/libcrafter/LICENSE" DESTINATION "${CURRENT_PACKAGES_DIR}/share/${PORT}" RENAME copyright) \ No newline at end of file
diff --git a/ports/libcrafter/vcpkg.json b/ports/libcrafter/vcpkg.json
new file mode 100644
index 000000000..0f774a171
--- /dev/null
+++ b/ports/libcrafter/vcpkg.json
@@ -0,0 +1,10 @@
+{
+ "name": "libcrafter",
+ "version": "1.0",
+ "description": "Libcrafter is a high level library for C++ designed to create and decode network packets.",
+ "homepage": "https://github.com/pellegre/libcrafter",
+ "supports": "!windows",
+ "dependencies": [
+ "libpcap"
+ ]
+}