summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--graphics/sane-frontends/Makefile11
-rw-r--r--graphics/sane-frontends/distinfo2
2 files changed, 10 insertions, 3 deletions
diff --git a/graphics/sane-frontends/Makefile b/graphics/sane-frontends/Makefile
index f9f3dda3145c..028eb30c27fa 100644
--- a/graphics/sane-frontends/Makefile
+++ b/graphics/sane-frontends/Makefile
@@ -6,7 +6,7 @@
#
PORTNAME= sane-frontends
-PORTVERSION= 1.0.10
+PORTVERSION= 1.0.11
CATEGORIES= graphics
MASTER_SITES= ftp://ftp.mostang.com/pub/sane/%SUBDIR%/ \
ftp://ftp.de.mostang.com/pub/sane/%SUBDIR%/ \
@@ -18,7 +18,6 @@ COMMENT= Tools for access to scanners, digitals camera, frame grabbers etc
LIB_DEPENDS= sane.1:${PORTSDIR}/graphics/sane-backends
-USE_GNOME= gtk12
USE_GMAKE= yes
GNU_CONFIGURE= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
@@ -33,6 +32,14 @@ CONFIGURE_ARGS+= --enable-gimp
CONFIGURE_ARGS+= --disable-gimp
.endif
+.if defined(WITH_GTK2)
+.undef WITH_GIMP
+USE_GNOME= gtk20
+.else
+USE_GNOME= gtk12
+CONFIGURE_ARGS= --disable-gtk2
+.endif
+
pre-everything::
.if !defined(WITH_GIMP)
@${ECHO_MSG} "*** Note: xscanimage can be built with a standalone"
diff --git a/graphics/sane-frontends/distinfo b/graphics/sane-frontends/distinfo
index 16ddbfac5036..a3de306505be 100644
--- a/graphics/sane-frontends/distinfo
+++ b/graphics/sane-frontends/distinfo
@@ -1 +1 @@
-MD5 (sane-frontends-1.0.10.tar.gz) = a7de89c3e67495e8a38ca63b2ff693c4
+MD5 (sane-frontends-1.0.11.tar.gz) = 59b143e12c926726db16983d288aa1a1