aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNancyLi1013 <lirui09@beyondsoft.com>2019-10-12 00:14:56 -0700
committerNancyLi1013 <lirui09@beyondsoft.com>2019-10-12 00:15:32 -0700
commitf34bf600685d1a219cfe8502e91874954be9f369 (patch)
tree546eb95ff1b665ff64a12c98bc5c5a1c92052d42
parent038e1c6bb3d63ae4ee6c4133a7baa82ed404b270 (diff)
downloadvcpkg-f34bf600685d1a219cfe8502e91874954be9f369.tar.gz
vcpkg-f34bf600685d1a219cfe8502e91874954be9f369.zip
Add build error patch
-rw-r--r--ports/libcrafter/fix-build-error.patch20
-rw-r--r--ports/libcrafter/portfile.cmake1
2 files changed, 21 insertions, 0 deletions
diff --git a/ports/libcrafter/fix-build-error.patch b/ports/libcrafter/fix-build-error.patch
new file mode 100644
index 000000000..cc97b4a63
--- /dev/null
+++ b/ports/libcrafter/fix-build-error.patch
@@ -0,0 +1,20 @@
+diff --git a/libcrafter/configure.ac b/libcrafter/configure.ac
+index 860d98b..b04ccce 100644
+--- a/libcrafter/configure.ac
++++ b/libcrafter/configure.ac
+@@ -35,14 +35,13 @@ AC_ARG_WITH(libpcap,
+ PCAPINC="-I$withval -I$withval/bpf"
+ PCAPLIB="-L$withval -lpcap"
+ elif test -f $withval/include/pcap.h -a \
+- -f $withval/include/net/bpf.h -a \
+ -f $withval/lib/libpcap.a; then
+ owd=`pwd`
+ if cd $withval; then withval=`pwd`; cd $owd; fi
+ PCAPINC="-I$withval/include"
+ PCAPLIB="-L$withval/lib -lpcap"
+ else
+- AC_ERROR(pcap.h, net/bpf.h, or libpcap.a not found in $withval)
++ AC_ERROR(pcap.h, or libpcap.a not found in $withval)
+ fi
+ ;;
+ esac ],
diff --git a/ports/libcrafter/portfile.cmake b/ports/libcrafter/portfile.cmake
index 2b00aa512..57427906b 100644
--- a/ports/libcrafter/portfile.cmake
+++ b/ports/libcrafter/portfile.cmake
@@ -6,6 +6,7 @@ vcpkg_from_github(
REF version-0.3
SHA512 7c396ba942b304dddfaa569adb44697f75568d3ef2ed48dda758e281f3b7c172439309033bbf5498069a4a61a952f93e41af99b129ce874ce76b5ec08da58116
HEAD_REF master
+ PATCHES fix-build-error.patch
)
vcpkg_configure_make(