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

(-)b/graphics/xsane/Makefile (-13 / +8 lines)
Lines 3-16 Link Here
3
3
4
PORTNAME=	xsane
4
PORTNAME=	xsane
5
PORTVERSION=	0.999
5
PORTVERSION=	0.999
6
PORTREVISION=	5
6
PORTREVISION=	6
7
CATEGORIES=	graphics
7
CATEGORIES=	graphics
8
MASTER_SITES=	http://www.xsane.org/download/
8
MASTER_SITES=	http://www.xsane.org/download/
9
9
10
MAINTAINER=	koalative@gmail.com
10
MAINTAINER=	koalative@gmail.com
11
COMMENT=	Gtk-based X11 frontend for SANE (Scanner Access Now Easy)
11
COMMENT=	Gtk-based X11 frontend for SANE (Scanner Access Now Easy)
12
12
13
LICENSE=	GPLv2
13
LICENSE=	GPLv2+
14
LICENSE_FILE=	${WRKSRC}/xsane.COPYING
14
15
15
LIB_DEPENDS=	libpng.so:graphics/png \
16
LIB_DEPENDS=	libpng.so:graphics/png \
16
		libtiff.so:graphics/tiff \
17
		libtiff.so:graphics/tiff \
Lines 19-31 LIB_DEPENDS= libpng.so:graphics/png \ Link Here
19
BUILD_DEPENDS=	scanimage:graphics/sane-backends
20
BUILD_DEPENDS=	scanimage:graphics/sane-backends
20
RUN_DEPENDS:=	${BUILD_DEPENDS}
21
RUN_DEPENDS:=	${BUILD_DEPENDS}
21
22
22
USES=		gmake jpeg pkgconfig
23
USES=		gmake jpeg localbase:ldflags pkgconfig
23
USE_GNOME=	gtk20 gdkpixbuf2
24
USE_GNOME=	gtk20 gdkpixbuf2
24
GNU_CONFIGURE=	yes
25
GNU_CONFIGURE=	yes
25
26
26
CPPFLAGS+=	-I${LOCALBASE}/include
27
LDFLAGS+=	-L${LOCALBASE}/lib
28
29
PORTDOCS=	*.html *.jpg
27
PORTDOCS=	*.html *.jpg
30
28
31
OPTIONS_DEFINE=	DOCS GIMP NLS
29
OPTIONS_DEFINE=	DOCS GIMP NLS
Lines 36-54 OPTIONS_SUB= yes Link Here
36
34
37
GIMP_LIB_DEPENDS=	libgimp-2.0.so:graphics/gimp-app
35
GIMP_LIB_DEPENDS=	libgimp-2.0.so:graphics/gimp-app
38
GIMP_CONFIGURE_ENABLE=	gimp2 gimp
36
GIMP_CONFIGURE_ENABLE=	gimp2 gimp
37
GIMP_SUB_FILES=		pkg-message
39
NLS_CONFIGURE_ENABLE=	nls
38
NLS_CONFIGURE_ENABLE=	nls
40
NLS_USES=		gettext
39
NLS_USES=		gettext
41
NLS_LIBS=		-L${LOCALBASE}/lib -lintl
40
NLS_LIBS=		-L${LOCALBASE}/lib -lintl
42
41
43
.include <bsd.port.options.mk>
44
45
.if ${PORT_OPTIONS:MGIMP}
46
SUB_FILES+=	pkg-message
47
.endif
48
49
post-patch:
42
post-patch:
50
	@${REINPLACE_CMD} -e 's| $$(DESTDIR)$$(sbindir)||' \
43
	@${REINPLACE_CMD} -e 's| $$(DESTDIR)$$(sbindir)||' \
51
		-e 's|$$(DESTDIR)$$(xsanedocdir)||' ${WRKSRC}/src/Makefile.in
44
		-e 's|$${datadir}/sane/xsane/doc|${DOCSDIR}|g' \
45
		-e 's|$$(DESTDIR)$$(xsanedocdir)||' \
46
		${WRKSRC}/src/Makefile.in ${WRKSRC}/doc/Makefile.in
52
	@${REINPLACE_CMD} -e 's|@POSUB@ doc|@POSUB@|' ${WRKSRC}/Makefile.in
47
	@${REINPLACE_CMD} -e 's|@POSUB@ doc|@POSUB@|' ${WRKSRC}/Makefile.in
53
48
54
post-install:
49
post-install:
(-)b/graphics/xsane/files/patch-src_xsane-save.c (-4 / +4 lines)
Lines 1-6 Link Here
1
--- src/xsane-save.c.orig	2010-11-16 22:06:00.000000000 +0100
1
--- src/xsane-save.c.orig	2010-11-16 21:06:00 UTC
2
+++ src/xsane-save.c	2012-05-04 07:37:59.000000000 +0200
2
+++ src/xsane-save.c
3
@@ -4910,7 +4910,7 @@
3
@@ -4910,7 +4910,7 @@ int xsane_save_png(FILE *outfile, int co
4
     return -1; /* error */
4
     return -1; /* error */
5
   }
5
   }
6
 
6
 
Lines 9-15 Link Here
9
   {
9
   {
10
     snprintf(buf, sizeof(buf), "%s %s", ERR_DURING_SAVE, ERR_LIBPNG);
10
     snprintf(buf, sizeof(buf), "%s %s", ERR_DURING_SAVE, ERR_LIBPNG);
11
     xsane_back_gtk_error(buf, TRUE);
11
     xsane_back_gtk_error(buf, TRUE);
12
@@ -5100,7 +5100,7 @@
12
@@ -5100,7 +5100,7 @@ int xsane_save_png_16(FILE *outfile, int
13
     return -1; /* error */
13
     return -1; /* error */
14
   }
14
   }
15
 
15
 
(-)b/graphics/xsane/files/patch-src_xsane.h (-2 / +2 lines)
Lines 1-5 Link Here
1
--- src/xsane.h.o	2012-10-01 11:12:56.549589382 -0400
1
--- src/xsane.h.orig	2013-05-22 21:43:46 UTC
2
+++ src/xsane.h	2012-10-01 11:12:40.660589178 -0400
2
+++ src/xsane.h
3
@@ -251,7 +251,7 @@
3
@@ -251,7 +251,7 @@
4
 # elif defined(HAVE_OS2_H)
4
 # elif defined(HAVE_OS2_H)
5
 #  define DEFAULT_BROWSER "netscape"
5
 #  define DEFAULT_BROWSER "netscape"
(-)b/graphics/xsane/files/pkg-message.in (-9 / +1 lines)
Lines 1-14 Link Here
1
===============================================================================
2
3
XSane has been installed.
4
5
To install XSane as a GIMP plug-in, please type:
1
To install XSane as a GIMP plug-in, please type:
6
2
7
    ln -sf %%LOCALBASE%%/bin/xsane ~/.gimp-*/plug-ins/xsane
3
    ln -sf %%LOCALBASE%%/bin/xsane ~/.gimp-*/plug-ins/xsane
8
4
9
Then run the GIMP, and a new "XSane" menu item should appear in the
5
Then run the GIMP, and a new "XSane" menu item should appear in the
10
"File -> Acquire" menu. Use this to access your scanner.
6
"File -> Create" menu.
11
12
Have fun!
13
14
===============================================================================

Return to bug 218989