aboutsummaryrefslogtreecommitdiff
path: root/graphics/xsane
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2013-02-04 02:58:12 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2013-02-04 02:58:12 +0000
commit33013f4ceee04dd634b278830612db05d65d47c4 (patch)
tree9ffcda6c5da52120c499b95fd7b1adba6b611192 /graphics/xsane
parente330157ba8077c233888fe665f2da16e5a746f43 (diff)
Notes
Diffstat (limited to 'graphics/xsane')
-rw-r--r--graphics/xsane/Makefile25
-rw-r--r--graphics/xsane/files/pkg-message.in10
2 files changed, 20 insertions, 15 deletions
diff --git a/graphics/xsane/Makefile b/graphics/xsane/Makefile
index 5570d5b89b10..159e0966a5ec 100644
--- a/graphics/xsane/Makefile
+++ b/graphics/xsane/Makefile
@@ -3,50 +3,49 @@
PORTNAME= xsane
PORTVERSION= 0.998
-PORTREVISION= 2
+PORTREVISION= 3
CATEGORIES= graphics
MASTER_SITES= http://www.xsane.org/download/ \
http://gd.tuwien.ac.at/hci/sane/xsane/ \
ftp://ftp.mostang.com/pub/sane/xsane/
-MAINTAINER= ports@FreeBSD.org
+MAINTAINER= nemysis@gmx.ch
COMMENT= Gtk-based X11 frontend for SANE (Scanner Access Now Easy)
LIB_DEPENDS= jpeg:${PORTSDIR}/graphics/jpeg \
png15:${PORTSDIR}/graphics/png \
- tiff:${PORTSDIR}/graphics/tiff \
- sane:${PORTSDIR}/graphics/sane-backends
+ tiff:${PORTSDIR}/graphics/tiff
+BUILD_DEPENDS= scanimage:${PORTSDIR}/graphics/sane-backends
+RUN_DEPENDS:= ${BUILD_DEPENDS}
USE_GMAKE= yes
GNU_CONFIGURE= yes
-WANT_GNOME= yes
USE_GNOME= gtk20
CPPFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
MAN1= xsane.1
-#SUB_FILES+= pkg-message
-
OPTIONS_DEFINE= GIMP NLS
GIMP_DESC= GIMP plugin support
.include <bsd.port.options.mk>
.if ${PORT_OPTIONS:MNLS}
-CONFIGURE_ARGS+=--disable-nls
-PLIST_SUB+= NLS="@comment "
-.else
USE_GETTEXT= yes
-PLIST_SUB+= NLS=""
CONFIGURE_ENV+= LIBS="-L${LOCALBASE}/lib -lintl"
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
.endif
.if ${PORT_OPTIONS:MGIMP}
SUB_FILES+= pkg-message
LIB_DEPENDS+= gimp:${PORTSDIR}/graphics/gimp-app
+CONFIGURE_ARGS+=--enable-gimp2
.else
-CONFIGURE_ARGS+= --disable-gimp
+CONFIGURE_ARGS+=--disable-gimp
.endif
pre-patch:
@@ -55,7 +54,9 @@ pre-patch:
post-install:
.if ${PORT_OPTIONS:MGIMP}
+ @${ECHO_CMD}
@${CAT} ${PKGMESSAGE}
+ @${ECHO_CMD}
.endif
.include <bsd.port.mk>
diff --git a/graphics/xsane/files/pkg-message.in b/graphics/xsane/files/pkg-message.in
index 031ded4cb223..f6b35d87037e 100644
--- a/graphics/xsane/files/pkg-message.in
+++ b/graphics/xsane/files/pkg-message.in
@@ -1,10 +1,14 @@
-Congratulations, XSane is now installed.
+===============================================================================
+
+XSane has been installed.
To install XSane as a GIMP plug-in, please type:
-ln -sf ${LOCALBASE}/bin/xsane ~/.gimp-n.n/plug-ins/xsane
+ ln -sf %%LOCALBASE%%/bin/xsane ~/.gimp-*/plug-ins/xsane
Then run the GIMP, and a new "XSane" menu item should appear in the
-"File->Acquire" menu. Use this to access your scanner.
+"File->Acquire" menu. Use this to access your scanner.
Have fun!
+
+===============================================================================