View | Details | Raw Unified | Return to bug 253444
Collapse All | Expand All

(-)graphics/zbar/Makefile (-19 / +6 lines)
Lines 12-28 Link Here
12
12
13
LICENSE=	LGPL21
13
LICENSE=	LGPL21
14
14
15
USES=		iconv jpeg libtool gmake pathfix pkgconfig
15
USES=		iconv jpeg libtool localbase:ldflags gmake pathfix pkgconfig
16
USE_LDCONFIG=	yes
16
USE_LDCONFIG=	yes
17
17
18
GNU_CONFIGURE=	yes
18
GNU_CONFIGURE=	yes
19
INSTALL_TARGET=	install-strip
19
INSTALL_TARGET=	install-strip
20
CONFIGURE_ARGS=	--with-jpeg=yes --with-python=no --with-qt=no
20
CONFIGURE_ARGS=	--with-jpeg=yes --with-python=no --with-qt=no
21
21
22
OPTIONS_DEFINE=	X11 V4L GTK2 DOCS
22
OPTIONS_DEFINE=	DOCS GTK2 IMAGEMAGICK V4L X11
23
OPTIONS_DEFAULT=X11 V7
23
OPTIONS_DEFAULT=IMAGEMAGICK X11
24
OPTIONS_RADIO=	IMAGEMAGICK
25
OPTIONS_RADIO_IMAGEMAGICK=	V6 V7
26
OPTIONS_SUB=	yes
24
OPTIONS_SUB=	yes
27
V4L_DESC=	Build zbarcam video scanner
25
V4L_DESC=	Build zbarcam video scanner
28
26
Lines 31-48 Link Here
31
X11_CONFIGURE_ON=	--with-x=yes
29
X11_CONFIGURE_ON=	--with-x=yes
32
X11_CONFIGURE_OFF=	--with-x=no --without-xshm --without-xv
30
X11_CONFIGURE_OFF=	--with-x=no --without-xshm --without-xv
33
31
34
V6_DESC=	With ImageMagick6
32
IMAGEMAGICK_LIB_DEPENDS=	libMagick++-${IMAGEMAGICK_DEFAULT}.so:graphics/ImageMagick${IMAGEMAGICK_DEFAULT}
35
V6_LIB_DEPENDS=	libMagick++-6.so:graphics/ImageMagick6
33
IMAGEMAGICK_CONFIGURE_ON=	--with-imagemagick=yes
36
V6_CONFIGURE_ON=	--with-imagemagick=yes
34
IMAGEMAGICK_CONFIGURE_OFF=	--with-imagemagick=no
37
35
38
V7_DESC=	With ImageMagick7
39
V7_LIB_DEPENDS=	libMagick++-7.so:graphics/ImageMagick7
40
V7_CONFIGURE_ON=	--with-imagemagick=yes
41
42
.if empty(VARIABLE:MV6) && empty(VARIABLE:MV7)
43
CONFIGURE_ARGS+=	--with-imagemagick=no
44
.endif
45
46
# To avoid patching configure even more:
36
# To avoid patching configure even more:
47
CONFIGURE_ENV+=			ac_cv_header_wand_MagickWand_h=yes
37
CONFIGURE_ENV+=			ac_cv_header_wand_MagickWand_h=yes
48
38
Lines 54-62 Link Here
54
GTK2_USE=	GNOME=gtk20
44
GTK2_USE=	GNOME=gtk20
55
GTK2_CONFIGURE_ON=	--with-gtk=yes
45
GTK2_CONFIGURE_ON=	--with-gtk=yes
56
GTK2_CONFIGURE_OFF=	--with-gtk=no
46
GTK2_CONFIGURE_OFF=	--with-gtk=no
57
58
CPPFLAGS+=	-I${LOCALBASE}/include
59
LDFLAGS+=	-L${LOCALBASE}/lib
60
47
61
post-patch-DOCS-off:
48
post-patch-DOCS-off:
62
	@${REINPLACE_CMD} '/^install-data-am: /s/install-dist_docDATA//' \
49
	@${REINPLACE_CMD} '/^install-data-am: /s/install-dist_docDATA//' \
(-)graphics/zbar/pkg-plist (-4 / +2 lines)
Lines 1-6 Link Here
1
%%V4L%%bin/zbarcam
1
%%V4L%%bin/zbarcam
2
%%V6%%bin/zbarimg
2
%%IMAGEMAGICK%%bin/zbarimg
3
%%V7%%bin/zbarimg
4
include/zbar.h
3
include/zbar.h
5
include/zbar/Decoder.h
4
include/zbar/Decoder.h
6
include/zbar/Exception.h
5
include/zbar/Exception.h
Lines 23-30 Link Here
23
%%GTK2%%libdata/pkgconfig/zbar-gtk.pc
22
%%GTK2%%libdata/pkgconfig/zbar-gtk.pc
24
libdata/pkgconfig/zbar.pc
23
libdata/pkgconfig/zbar.pc
25
%%V4L%%man/man1/zbarcam.1.gz
24
%%V4L%%man/man1/zbarcam.1.gz
26
%%V6%%man/man1/zbarimg.1.gz
25
%%IMAGEMAGICK%%man/man1/zbarimg.1.gz
27
%%V7%%man/man1/zbarimg.1.gz
28
%%PORTDOCS%%%%DOCSDIR%%/HACKING
26
%%PORTDOCS%%%%DOCSDIR%%/HACKING
29
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
27
%%PORTDOCS%%%%DOCSDIR%%/INSTALL
30
%%PORTDOCS%%%%DOCSDIR%%/NEWS
28
%%PORTDOCS%%%%DOCSDIR%%/NEWS

Return to bug 253444