diff options
author | pi <pi@FreeBSD.org> | 2019-01-27 18:42:24 +0800 |
---|---|---|
committer | pi <pi@FreeBSD.org> | 2019-01-27 18:42:24 +0800 |
commit | 2399b1c57bf68c472a812b9708d8217966315757 (patch) | |
tree | a50a0de25ea81edfd4b24a1942153b6e125139c8 /graphics | |
parent | 6994fd53b8b3b0b08c5ff96038c5ca5c88cf673b (diff) | |
download | freebsd-ports-gnome-2399b1c57bf68c472a812b9708d8217966315757.tar.gz freebsd-ports-gnome-2399b1c57bf68c472a812b9708d8217966315757.tar.zst freebsd-ports-gnome-2399b1c57bf68c472a812b9708d8217966315757.zip |
graphics/zbar: make the ImageMagick an option, 7 the default
PR: 221391
Reported by: vvd@unislabs.com
Approved by: dev2@heesakkers.info (maintainer timeout)
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/zbar/Makefile | 28 | ||||
-rw-r--r-- | graphics/zbar/files/patch-Makefile.in | 8 | ||||
-rw-r--r-- | graphics/zbar/files/patch-configure | 8 | ||||
-rw-r--r-- | graphics/zbar/files/patch-zbarimg_zbarimg.c (renamed from graphics/zbar/files/patch-zbarimg.c) | 8 | ||||
-rw-r--r-- | graphics/zbar/pkg-plist | 6 |
5 files changed, 37 insertions, 21 deletions
diff --git a/graphics/zbar/Makefile b/graphics/zbar/Makefile index f8774e982a7f..1f4b63b2d0b1 100644 --- a/graphics/zbar/Makefile +++ b/graphics/zbar/Makefile @@ -3,7 +3,7 @@ PORTNAME= zbar PORTVERSION= 0.10 -PORTREVISION= 16 +PORTREVISION= 17 CATEGORIES= graphics MASTER_SITES= SF @@ -12,15 +12,17 @@ COMMENT= ZBar barcode reader LICENSE= LGPL21 -GNU_CONFIGURE= yes -USE_LDCONFIG= yes USES= iconv jpeg libtool gmake pathfix pkgconfig -INSTALL_TARGET= install-strip +USE_LDCONFIG= yes +GNU_CONFIGURE= yes +INSTALL_TARGET= install-strip CONFIGURE_ARGS= --with-jpeg=yes -OPTIONS_DEFINE= X11 IMAGEMAGICK V4L PYTHON GTK2 QT4 DOCS -OPTIONS_DEFAULT=X11 IMAGEMAGICK +OPTIONS_DEFINE= X11 V4L PYTHON GTK2 QT4 DOCS +OPTIONS_DEFAULT=X11 V7 +OPTIONS_RADIO= IMAGEMAGICK +OPTIONS_RADIO_IMAGEMAGICK= V6 V7 OPTIONS_SUB= yes V4L_DESC= Build zbarcam video scanner @@ -28,9 +30,17 @@ X11_USE= XORG=ice,sm,x11,xau,xcb,xdmcp,xext,xv X11_CONFIGURE_ON= --with-x=yes X11_CONFIGURE_OFF= --with-x=no --without-xshm --without-xv -IMAGEMAGICK_LIB_DEPENDS= libMagick++-7.so:graphics/ImageMagick7 -IMAGEMAGICK_CONFIGURE_ON= --with-imagemagick=yes -IMAGEMAGICK_CONFIGURE_OFF= --with-imagemagick=no +V6_DESC= With ImageMagick6 +V6_LIB_DEPENDS= libMagick++-6.so:graphics/ImageMagick6 +V6_CONFIGURE_ON= --with-imagemagick=yes + +V7_DESC= With ImageMagick7 +V7_LIB_DEPENDS= libMagick++-7.so:graphics/ImageMagick7 +V7_CONFIGURE_ON= --with-imagemagick=yes + +.if empty(VARIABLE:MV6) && empty(VARIABLE:MV7) +CONFIGURE_ARGS+= --with-imagemagick=no +.endif # To avoid patching configure even more: CONFIGURE_ENV+= ac_cv_header_wand_MagickWand_h=yes diff --git a/graphics/zbar/files/patch-Makefile.in b/graphics/zbar/files/patch-Makefile.in index 6c0ab69972af..c8ded00089bf 100644 --- a/graphics/zbar/files/patch-Makefile.in +++ b/graphics/zbar/files/patch-Makefile.in @@ -1,8 +1,8 @@ ---- Makefile.in.orig 2010-12-09 17:52:23.862954369 +0000 -+++ Makefile.in 2010-12-09 17:53:00.865045766 +0000 -@@ -697,7 +697,7 @@ +--- Makefile.in.orig 2019-01-09 19:05:01 UTC ++++ Makefile.in +@@ -697,7 +697,7 @@ EXTRA_DIST = $(am__append_33) $(am__append_39) $(am__a perl/t/Scanner.t perl/t/pod.t perl/t/pod-coverage.t - pkgconfigdir = $(libdir)/pkgconfig + pkgconfigdir = $(prefix)/libdata/pkgconfig pkgconfig_DATA = zbar.pc $(am__append_44) $(am__append_52) -dist_doc_DATA = COPYING HACKING INSTALL LICENSE NEWS README TODO \ +dist_doc_DATA = HACKING INSTALL NEWS README TODO \ diff --git a/graphics/zbar/files/patch-configure b/graphics/zbar/files/patch-configure index ea821508055f..816d61bd31a9 100644 --- a/graphics/zbar/files/patch-configure +++ b/graphics/zbar/files/patch-configure @@ -1,6 +1,6 @@ ---- configure.orig 2009-10-23 18:17:24.000000000 +0000 +--- configure.orig 2009-10-23 18:17:24 UTC +++ configure -@@ -21369,6 +21369,7 @@ if test "x$ac_cv_lib_jpeg_jpeg_read_head +@@ -21369,6 +21369,7 @@ if test "x$ac_cv_lib_jpeg_jpeg_read_header" = x""yes; #define HAVE_LIBJPEG 1 _ACEOF @@ -8,9 +8,11 @@ LIBS="-ljpeg $LIBS" else -@@ -21736,4 +21737,5 @@ +@@ -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;} + diff --git a/graphics/zbar/files/patch-zbarimg.c b/graphics/zbar/files/patch-zbarimg_zbarimg.c index 0f69dda184b1..2938d1effe05 100644 --- a/graphics/zbar/files/patch-zbarimg.c +++ b/graphics/zbar/files/patch-zbarimg_zbarimg.c @@ -1,6 +1,7 @@ ---- zbarimg/zbarimg.c 2009-10-23 14:16:44.000000000 -0400 -+++ zbarimg/zbarimg.c 2017-08-10 10:22:08.707599000 -0400 -@@ -39,5 +39,9 @@ +--- zbarimg/zbarimg.c.orig 2009-10-23 18:16:44 UTC ++++ zbarimg/zbarimg.c +@@ -38,7 +38,11 @@ + #include <assert.h> #include <zbar.h> +#if MAGICK_MAJOR < 7 @@ -10,3 +11,4 @@ +#endif /* in 6.4.5.4 MagickGetImagePixels changed to MagickExportImagePixels. + * (still not sure this check is quite right... diff --git a/graphics/zbar/pkg-plist b/graphics/zbar/pkg-plist index 98f41053c4e8..f8b726f193ba 100644 --- a/graphics/zbar/pkg-plist +++ b/graphics/zbar/pkg-plist @@ -1,5 +1,6 @@ %%V4L%%bin/zbarcam -%%IMAGEMAGICK%%bin/zbarimg +%%V6%%bin/zbarimg +%%V7%%bin/zbarimg include/zbar.h include/zbar/Decoder.h include/zbar/Exception.h @@ -29,7 +30,8 @@ lib/libzbar.so.0.2.0 %%QT4%%libdata/pkgconfig/zbar-qt.pc libdata/pkgconfig/zbar.pc %%V4L%%man/man1/zbarcam.1.gz -%%IMAGEMAGICK%%man/man1/zbarimg.1.gz +%%V6%%man/man1/zbarimg.1.gz +%%V7%%man/man1/zbarimg.1.gz %%PYTHON%%%%PYTHON_SITELIBDIR%%/zbar.so %%PYTHON%%%%GTK2%%%%PYTHON_SITELIBDIR%%/zbarpygtk.so %%PORTDOCS%%%%DOCSDIR%%/HACKING |