From fd2241a344b141fb5f1b8ec479dbb5783826f1ce Mon Sep 17 00:00:00 2001 From: Yuichiro NAITO Date: Tue, 22 May 2018 10:12:04 +0900 Subject: Fix diff command check for FreeBSD. FreeBSD's diff doesn't support --version option. Use hash command to check if diff is available or not. --- contrib/libvpx/P02-freebsd-configure.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 contrib/libvpx/P02-freebsd-configure.patch (limited to 'contrib') diff --git a/contrib/libvpx/P02-freebsd-configure.patch b/contrib/libvpx/P02-freebsd-configure.patch new file mode 100644 index 000000000..c5b38016f --- /dev/null +++ b/contrib/libvpx/P02-freebsd-configure.patch @@ -0,0 +1,11 @@ +--- libvpx-1.7.0/configure.orig 2018-01-25 07:25:44.000000000 +0900 ++++ libvpx-1.7.0/configure 2018-05-21 22:21:02.266701000 +0900 +@@ -170,7 +170,7 @@ + [ -f "${source_path}/${t}.mk" ] && enable_feature ${t} + done + +-if ! diff --version >/dev/null; then ++if ! hash diff 2>/dev/null; then + die "diff missing: Try installing diffutils via your package manager." + fi + -- cgit v1.2.3