Lines 2-56
Link Here
|
2 |
# $FreeBSD: head/graphics/zbar/Makefile 566155 2021-02-20 12:11:15Z tcberner $ |
2 |
# $FreeBSD: head/graphics/zbar/Makefile 566155 2021-02-20 12:11:15Z tcberner $ |
3 |
|
3 |
|
4 |
PORTNAME= zbar |
4 |
PORTNAME= zbar |
5 |
PORTVERSION= 0.10 |
5 |
DISTVERSION= 0.23.90 |
6 |
PORTREVISION= 20 |
|
|
7 |
CATEGORIES= graphics |
6 |
CATEGORIES= graphics |
8 |
MASTER_SITES= SF |
7 |
MASTER_SITES= https://linuxtv.org/downloads/zbar/ |
9 |
|
8 |
|
10 |
MAINTAINER= dev2@heesakkers.info |
9 |
MAINTAINER= dev2@heesakkers.info |
11 |
COMMENT= ZBar barcode reader |
10 |
COMMENT= ZBar barcode reader |
12 |
|
11 |
|
13 |
LICENSE= LGPL21 |
12 |
LICENSE= LGPL21 |
14 |
|
13 |
|
15 |
USES= iconv jpeg libtool localbase:ldflags gmake pathfix pkgconfig |
14 |
USES= autoreconf gmake iconv libtool localbase:ldflags pathfix pkgconfig |
16 |
USE_LDCONFIG= yes |
15 |
USE_LDCONFIG= yes |
17 |
|
16 |
|
18 |
GNU_CONFIGURE= yes |
17 |
GNU_CONFIGURE= yes |
19 |
INSTALL_TARGET= install-strip |
18 |
INSTALL_TARGET= install-strip |
20 |
CONFIGURE_ARGS= --with-jpeg=yes --with-python=no --with-qt=no |
19 |
CONFIGURE_ARGS= --without-java --without-npapi --without-python \ |
|
|
20 |
--enable-codes=ean,databar,code128,code93,code39,codabar,i25,qrcode,sqcode,pdf417 |
21 |
|
21 |
|
22 |
OPTIONS_DEFINE= DOCS GTK2 IMAGEMAGICK V4L X11 |
22 |
OPTIONS_DEFINE= DBUS DOCS GIR JPEG NLS QT5 V4L X11 |
23 |
OPTIONS_DEFAULT=IMAGEMAGICK X11 |
23 |
OPTIONS_DEFAULT= GTK_NONE IMAGEMAGICK JPEG NLS X11 |
24 |
OPTIONS_SUB= yes |
24 |
OPTIONS_RADIO= MAGICK |
25 |
V4L_DESC= Build zbarcam video scanner |
25 |
OPTIONS_RADIO_MAGICK= GRAPHICSMAGICK IMAGEMAGICK |
|
|
26 |
OPTIONS_SINGLE= GTK |
27 |
OPTIONS_SINGLE_GTK= GTK2 GTK3 GTK_NONE |
28 |
OPTIONS_SUB= yes |
26 |
|
29 |
|
27 |
X11_USES= xorg |
30 |
GIR_DESC= Build Gobject Introspection |
28 |
X11_USE= XORG=ice,sm,x11,xau,xcb,xdmcp,xext,xv |
31 |
GTK_DESC= GTK support |
29 |
X11_CONFIGURE_ON= --with-x=yes |
32 |
GTK_NONE_DESC= Build without GTK support |
30 |
X11_CONFIGURE_OFF= --with-x=no --without-xshm --without-xv |
33 |
GRAPHICSMAGICK_DESC= GraphicsMagick image processing support |
|
|
34 |
MAGICK_DESC= *Magick image processing support |
35 |
V4L_DESC= Build zbarcam video scanner |
31 |
|
36 |
|
32 |
IMAGEMAGICK_LIB_DEPENDS= libMagick++-${IMAGEMAGICK_DEFAULT}.so:graphics/ImageMagick${IMAGEMAGICK_DEFAULT} |
37 |
DBUS_LIB_DEPENDS= libdbus-1.so:devel/dbus |
33 |
IMAGEMAGICK_CONFIGURE_ON= --with-imagemagick=yes |
38 |
DBUS_CONFIGURE_WITH= dbus |
34 |
IMAGEMAGICK_CONFIGURE_OFF= --with-imagemagick=no |
|
|
35 |
|
39 |
|
36 |
# To avoid patching configure even more: |
40 |
DOCS_CONFIGURE_ENABLE= doc |
37 |
CONFIGURE_ENV+= ac_cv_header_wand_MagickWand_h=yes |
|
|
38 |
|
41 |
|
39 |
V4L_BUILD_DEPENDS= v4l_compat>=1.0.20101027:multimedia/v4l_compat |
42 |
GIR_USES= gnome |
40 |
V4L_CONFIGURE_ON= --enable-video=yes |
43 |
GIR_USE= GNOME=introspection:build |
41 |
V4L_CONFIGURE_OFF= --enable-video=no |
44 |
GIR_CONFIGURE_WITH= gir |
42 |
|
45 |
|
43 |
GTK2_USES= gnome |
46 |
GTK2_USES= gnome gettext-runtime |
44 |
GTK2_USE= GNOME=gtk20 |
47 |
GTK2_USE= GNOME=atk,cairo,gdkpixbuf2,glib20,gtk20,pango |
45 |
GTK2_CONFIGURE_ON= --with-gtk=yes |
48 |
GTK2_LIB_DEPENDS= libfreetype.so:print/freetype2 \ |
46 |
GTK2_CONFIGURE_OFF= --with-gtk=no |
49 |
libfontconfig.so:x11-fonts/fontconfig |
|
|
50 |
GTK2_CONFIGURE_ON= --with-gtk=gtk2 |
47 |
|
51 |
|
48 |
post-patch-DOCS-off: |
52 |
GTK3_USES= gnome gettext-runtime |
49 |
@${REINPLACE_CMD} '/^install-data-am: /s/install-dist_docDATA//' \ |
53 |
GTK3_USE= GNOME=atk,cairo,gdkpixbuf2,glib20,gtk30,pango |
50 |
${WRKSRC}/Makefile.in |
54 |
GTK3_CONFIGURE_ON= --with-gtk=gtk3 |
51 |
|
55 |
|
52 |
post-install: |
56 |
GTK_NONE_CONFIGURE_ON= --with-gtk=no |
53 |
# make check-plist happy |
57 |
|
54 |
${RMDIR} ${STAGEDIR}${DATADIR} |
58 |
GRAPHICSMAGICK_LIB_DEPENDS= libGraphicsMagickWand.so:graphics/GraphicsMagick |
|
|
59 |
GRAPHICSMAGICK_CONFIGURE_WITH= graphicsmagick |
60 |
|
61 |
IMAGEMAGICK_LIB_DEPENDS= libMagickWand-${IMAGEMAGICK_DEFAULT}.so:graphics/ImageMagick${IMAGEMAGICK_DEFAULT} |
62 |
IMAGEMAGICK_CONFIGURE_WITH= imagemagick |
63 |
|
64 |
JPEG_USES= jpeg |
65 |
JPEG_CONFIGURE_WITH= jpeg |
66 |
|
67 |
NLS_USES= gettext |
68 |
NLS_LDFLAGS= -lintl |
69 |
NLS_CONFIGURE_ENABLE= nls |
70 |
|
71 |
QT5_USES= qt:5 |
72 |
QT5_USE= QT=core,gui,widgets,x11extras |
73 |
QT5_CONFIGURE_WITH= qt qt5 |
74 |
QT5_IMPLIES= X11 |
75 |
|
76 |
V4L_BUILD_DEPENDS= v4l_compat>=1.0.20101027:multimedia/v4l_compat |
77 |
V4L_LIB_DEPENDS= libv4l2.so:multimedia/libv4l |
78 |
V4L_CONFIGURE_ENABLE= video |
79 |
|
80 |
X11_USES= xorg |
81 |
X11_USE= XORG=ice,sm,x11,xau,xcb,xdmcp,xext,xv |
82 |
X11_CONFIGURE_ON= --with-x --with-xv --with-xshm |
83 |
X11_CONFIGURE_OFF= --without-x --without-xshm --without-xv |
55 |
|
84 |
|
56 |
.include <bsd.port.mk> |
85 |
.include <bsd.port.mk> |