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

(-)xsane/Makefile (-18 / +20 lines)
Lines 24-67 Link Here
24
USE_GMAKE=	yes
24
USE_GMAKE=	yes
25
USE_X_PREFIX=	yes
25
USE_X_PREFIX=	yes
26
GNU_CONFIGURE=	yes
26
GNU_CONFIGURE=	yes
27
WANT_GNOME=	yes
27
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
28
CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
28
		LIBS="-L${LOCALBASE}/lib -lintl"
29
		LIBS="-L${LOCALBASE}/lib -lintl"
29
30
30
MAN1=		xsane.1
31
MAN1=		xsane.1
31
32
32
.if defined(WITH_GIMP)
33
OPTIONS=	GTK2 "Enable GTK2 support (use GTK1 if turned off)" on \
33
LIB_DEPENDS+=	gimp:${PORTSDIR}/graphics/gimp1
34
		GIMP "Enable GIMP plugin support" off
34
CONFIGURE_ARGS+=	--enable-gimp
35
.else
36
CONFIGURE_ARGS+=	--disable-gimp
37
.endif
38
35
39
.if defined(WITH_GTK2)
36
.include <bsd.port.pre.mk>
40
USE_GNOME=	gtk20
37
41
.else
38
.if defined(WITHOUT_GTK2)
42
USE_GNOME=	gtk12
39
USE_GNOME=	gtk12
43
CONFIGURE_ARGS+=	--disable-gtk2
40
CONFIGURE_ARGS+=	--disable-gtk2
41
.else
42
USE_GNOME=	gtk20
44
.endif
43
.endif
45
44
46
.include <bsd.port.pre.mk>
45
.if defined(WITH_GIMP)
46
.if defined(WITHOUT_GTK2)
47
LIB_DEPENDS+=	gimp:${PORTSDIR}/graphics/gimp1
48
CONFIGURE_ARGS+=	--disable-gimp2
49
.else
50
LIB_DEPENDS+=	gimp:${PORTSDIR}/graphics/gimp
51
.endif # WITHOUT_GTK2
52
.else
53
CONFIGURE_ARGS+=	--disable-gimp
54
.endif 
47
55
48
.if ${OSVERSION} < 500035
56
.if ${OSVERSION} < 500035
49
CONFIGURE_ENV+=	CFLAGS="${CFLAGS:C/-O[0-9]*//g}"
57
CONFIGURE_ENV+=	CFLAGS="${CFLAGS:C/-O[0-9]*//g}"
50
.endif
58
.endif
51
59
52
pre-everything::
53
.if !defined(WITH_GIMP)
54
	@${ECHO_MSG} "*** Note: XSane can be built with a standalone"
55
	@${ECHO_MSG} "*** X scanner interface as well as a GIMP plug-in."
56
	@${ECHO_MSG} "*** If you wish to do this, hit Ctrl-C now and use"
57
	@${ECHO_MSG} "*** \"WITH_GIMP=yes\""
58
.endif
59
60
pre-patch:
60
pre-patch:
61
	@${FIND} ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} \
61
	@${FIND} ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} \
62
		-i "" -e 's|\$$(sbindir)||g'
62
		-i "" -e 's|\$$(sbindir)||g'
63
63
64
post-install:
64
post-install:
65
.if defined(WITH_GIMP)
65
	@${SED} 's:/usr/X11R6:${PREFIX}:' ${PKGMESSAGE}
66
	@${SED} 's:/usr/X11R6:${PREFIX}:' ${PKGMESSAGE}
67
.endif
66
68
67
.include <bsd.port.post.mk>
69
.include <bsd.port.post.mk>
(-)xsane/pkg-message (-3 / +2 lines)
Lines 1-9 Link Here
1
Congratulations, XSane is now installed.
1
Congratulations, XSane is now installed.
2
2
3
If you built it with WITH_GIMP set to yes, you can use
3
To install XSane as a GIMP plug-in, please type:
4
XSane as a GIMP plug-in. To do this, type:
5
4
6
ln -sf /usr/X11R6/bin/xsane ~/.gimp-1.2/plug-ins/xsane
5
ln -sf /usr/X11R6/bin/xsane ~/.gimp-n.n/plug-ins/xsane
7
6
8
Then run the GIMP, and a new "XSane" menu item should appear in the
7
Then run the GIMP, and a new "XSane" menu item should appear in the
9
"File->Acquire" menu.  Use this to access your scanner.
8
"File->Acquire" menu.  Use this to access your scanner.

Return to bug 97556