openbsd-ports/graphics/ffmpeg/patches/patch-tests_regression_sh

23 lines
801 B
Plaintext
Raw Normal View History

$OpenBSD: patch-tests_regression_sh,v 1.3 2007/09/24 07:51:24 jakemsr Exp $
--- tests/regression.sh.orig Mon Sep 10 19:18:02 2007
+++ tests/regression.sh Mon Sep 10 19:56:00 2007
@@ -92,7 +92,8 @@ fi
# various files
-ffmpeg="./ffmpeg_g"
+# ffmpeg="./ffmpeg_g"
+ffmpeg="env LD_LIBRARY_PATH=./libavcodec:./libavutil:./libavformat:./libswscale ./ffmpeg_g"
tiny_psnr="tests/tiny_psnr"
reffile="$2"
benchfile="$datadir/ffmpeg.bench"
@@ -108,6 +109,8 @@ if [ X"`echo | md5sum 2> /dev/null`" != X ]; then
do_md5sum() { md5sum -b $1; }
elif [ -x /sbin/md5 ]; then
do_md5sum() { /sbin/md5 -r $1 | sed 's# \**\./# *./#'; }
+elif [ -x /bin/md5 ]; then
+ do_md5sum() { /bin/md5 $1 | sed 's/[)(]//g' | awk '{print $NF " *"$2}'; }
else
do_md5sum() { echo No md5sum program found; }
fi