freebsd-ports/graphics/zbar/files/patch-configure
Kurt Jaeger ca05fbc6a8 graphics/zbar: make the ImageMagick an option, 7 the default
PR:		221391
Reported by:	vvd@unislabs.com
Approved by:	dev2@heesakkers.info (maintainer timeout)
2019-01-27 10:42:24 +00:00

18 lines
552 B
Text

--- configure.orig 2009-10-23 18:17:24 UTC
+++ configure
@@ -21369,6 +21369,7 @@ if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes;
#define HAVE_LIBJPEG 1
_ACEOF
+ have_jpeg="yes"
LIBS="-ljpeg $LIBS"
else
@@ -21735,6 +21736,7 @@ $as_echo "yes" >&6; }
:
fi
MAGICK_VERSION=`$PKG_CONFIG MagickWand --modversion`
+ MAGICK_CFLAGS="$MAGICK_CFLAGS -DMAGICK_MAJOR=${MAGICK_VERSION%%.*}"
{ $as_echo "$as_me:$LINENO: using ImageMagick version $MAGICK_VERSION" >&5
$as_echo "$as_me: using ImageMagick version $MAGICK_VERSION" >&6;}