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//' \ |