openbsd-ports/graphics/zxing/patches/patch-cpp_blackboxtest_sh
bentley 214c5d4658 Import zxing-2.0.
ZXing (pronounced "zebra crossing") is an open-source, multi-format
1D/2D barcode image processing library. It currently supports these
formats:

 - UPC-A and UPC-E
 - EAN-8 and EAN-13
 - Data Matrix
 - Code 39
 - Code 93
 - Code 128
 - ITF
 - Codabar
 - RSS-14 (all variants)
 - QR Code
 - Data Matrix
 - Aztec
 - PDF 417

ok landry@
2012-04-04 03:38:45 +00:00

21 lines
616 B
Plaintext

$OpenBSD: patch-cpp_blackboxtest_sh,v 1.1.1.1 2012/04/04 03:38:45 bentley Exp $
--- cpp/blackboxtest.sh.orig Mon Jul 19 22:20:20 2010
+++ cpp/blackboxtest.sh Sun Feb 26 17:35:08 2012
@@ -1,6 +1,6 @@
#!/bin/sh
-blackboxpath="../core/test/data/blackbox"
+blackboxpath="${WRKDIST}/core/test/data/blackbox"
if [ "$*" != "" ]; then
formats="$*"
@@ -32,7 +32,7 @@ for format in $formats; do
tmp="${tmp%PNG}";
txt="${tmp}txt";
expected=`cat "$txt"`;
- actual=`build/zxing $pic`;
+ actual=`${WRKSRC}/build/zxing $pic`;
if [ "$expected" == "$actual" ]; then
echo "passed."
passed=$((passed+1));