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

(-)./Makefile (-28 / +28 lines)
Lines 3-21 Link Here
3
3
4
PORTNAME=	xsane
4
PORTNAME=	xsane
5
PORTVERSION=	0.998
5
PORTVERSION=	0.998
6
PORTREVISION=	2
6
PORTREVISION=	3
7
CATEGORIES=	graphics
7
CATEGORIES=	graphics
8
MASTER_SITES=	http://www.xsane.org/download/ \
8
MASTER_SITES=	http://www.xsane.org/download/ \
9
		http://gd.tuwien.ac.at/hci/sane/xsane/ \
9
		http://gd.tuwien.ac.at/hci/sane/xsane/ \
10
		ftp://ftp.mostang.com/pub/sane/xsane/
10
		ftp://ftp.mostang.com/pub/sane/xsane/
11
11
12
MAINTAINER=	ports@FreeBSD.org
12
MAINTAINER=	nemysis@gmx.ch
13
COMMENT=	Gtk-based X11 frontend for SANE (Scanner Access Now Easy)
13
COMMENT=	Gtk-based X11 frontend for SANE (Scanner Access Now Easy)
14
14
15
LIB_DEPENDS=	jpeg.11:${PORTSDIR}/graphics/jpeg \
15
LIB_DEPENDS=	jpeg:${PORTSDIR}/graphics/jpeg \
16
		png15:${PORTSDIR}/graphics/png \
16
		png15:${PORTSDIR}/graphics/png \
17
		tiff.4:${PORTSDIR}/graphics/tiff \
17
		tiff:${PORTSDIR}/graphics/tiff
18
		sane.1:${PORTSDIR}/graphics/sane-backends
18
BUILD_DEPENDS=	scanimage:${PORTSDIR}/graphics/sane-backends
19
RUN_DEPENDS:=	${BUILD_DEPENDS}
19
20
20
USE_GMAKE=	yes
21
USE_GMAKE=	yes
21
GNU_CONFIGURE=	yes
22
GNU_CONFIGURE=	yes
Lines 25-64 Link Here
25
26
26
MAN1=		xsane.1
27
MAN1=		xsane.1
27
28
28
#SUB_FILES+=	pkg-message
29
OPTIONS_DEFINE=	GTK2 GIMP
29
30
30
OPTIONS=	GTK2 "Enable GTK2 support (use GTK1 if turned off)" on \
31
OPTIONS_DEFAULT=	GTK2
31
		GIMP "Enable GIMP plugin support" off \
32
		NLS "Enable Native Language Support" on
33
32
34
.include <bsd.port.pre.mk>
33
GIMP_DESC=	Enable GIMP plugin support
35
34
36
.if defined(WITHOUT_NLS)
35
.include <bsd.port.options.mk>
37
CONFIGURE_ARGS+=--disable-nls
36
38
PLIST_SUB+=	NLS="@comment "
37
.if ${PORT_OPTIONS:MNLS}
39
.else
40
USE_GETTEXT=	yes
38
USE_GETTEXT=	yes
41
PLIST_SUB+=	NLS=""
42
CONFIGURE_ENV+=	LIBS="-L${LOCALBASE}/lib -lintl"
39
CONFIGURE_ENV+=	LIBS="-L${LOCALBASE}/lib -lintl"
40
PLIST_SUB+=	NLS=""
41
.else
42
CONFIGURE_ARGS+=--disable-nls
43
PLIST_SUB+=	NLS="@comment "
43
.endif
44
.endif
44
45
45
.if defined(WITHOUT_GTK2)
46
.if ${PORT_OPTIONS:MGTK2}
46
USE_GNOME=	gtk12
47
CONFIGURE_ARGS+=	--disable-gtk2
48
.else
49
USE_GNOME=	gtk20
47
USE_GNOME=	gtk20
48
CONFIGURE_ARGS+=--enable-gtk2
49
.else
50
USE_GNOME=	gtk12
51
CONFIGURE_ARGS+=--disable-gtk2
50
.endif
52
.endif
51
53
52
.if defined(WITH_GIMP)
54
.if ${PORT_OPTIONS:MGIMP}
53
SUB_FILES+=	pkg-message
55
SUB_FILES+=	pkg-message
54
.if defined(WITHOUT_GTK2)
55
LIB_DEPENDS+=	gimp:${PORTSDIR}/graphics/gimp1
56
CONFIGURE_ARGS+=	--disable-gimp2
57
.else
58
LIB_DEPENDS+=	gimp:${PORTSDIR}/graphics/gimp-app
56
LIB_DEPENDS+=	gimp:${PORTSDIR}/graphics/gimp-app
59
.endif # WITHOUT_GTK2
57
CONFIGURE_ARGS+=--enable-gimp2
60
.else
58
.else
61
CONFIGURE_ARGS+=	--disable-gimp
59
CONFIGURE_ARGS+=--disable-gimp
62
.endif
60
.endif
63
61
64
pre-patch:
62
pre-patch:
Lines 66-73 Link Here
66
		-i "" -e 's|\$$(DESTDIR)\$$(sbindir)||g'
64
		-i "" -e 's|\$$(DESTDIR)\$$(sbindir)||g'
67
65
68
post-install:
66
post-install:
69
.if defined(WITH_GIMP)
67
.if ${PORT_OPTIONS:MGIMP}
68
	@${ECHO_CMD}
70
	@${CAT} ${PKGMESSAGE}
69
	@${CAT} ${PKGMESSAGE}
70
	@${ECHO_CMD}
71
.endif
71
.endif
72
72
73
.include <bsd.port.post.mk>
73
.include <bsd.port.mk>
(-)./files/pkg-message.in (-3 / +7 lines)
Lines 1-10 Link Here
1
Congratulations, XSane is now installed.
1
===============================================================================
2
3
XSane has been installed.
2
4
3
To install XSane as a GIMP plug-in, please type:
5
To install XSane as a GIMP plug-in, please type:
4
6
5
ln -sf ${LOCALBASE}/bin/xsane ~/.gimp-n.n/plug-ins/xsane
7
    ln -sf ${LOCALBASE}/bin/xsane ~/.gimp-*/plug-ins/xsane
6
8
7
Then run the GIMP, and a new "XSane" menu item should appear in the
9
Then run the GIMP, and a new "XSane" menu item should appear in the
8
"File->Acquire" menu.  Use this to access your scanner.
10
"File->Acquire" menu. Use this to access your scanner.
9
11
10
Have fun!
12
Have fun!
13
14
===============================================================================

Return to bug 175007