From: Yuichiro NAITO Date: Tue, 22 May 2018 01:12:04 +0000 (+0900) Subject: Fix diff command check for FreeBSD. X-Git-Tag: 1.1.1~13 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c1e7a8e305d67cf54a58684fe1ce83213de37ec4;p=handbrake 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. (cherry picked from commit fd2241a344b141fb5f1b8ec479dbb5783826f1ce) --- 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 +