Index: head/graphics/xsane/Makefile =================================================================== --- head/graphics/xsane/Makefile (revision 442112) +++ head/graphics/xsane/Makefile (revision 442113) @@ -1,59 +1,54 @@ # Created by: Dominik Brettnacher # $FreeBSD$ PORTNAME= xsane PORTVERSION= 0.999 -PORTREVISION= 5 +PORTREVISION= 6 CATEGORIES= graphics MASTER_SITES= http://www.xsane.org/download/ MAINTAINER= koalative@gmail.com COMMENT= Gtk-based X11 frontend for SANE (Scanner Access Now Easy) -LICENSE= GPLv2 +LICENSE= GPLv2+ +LICENSE_FILE= ${WRKSRC}/xsane.COPYING LIB_DEPENDS= libpng.so:graphics/png \ libtiff.so:graphics/tiff \ libfreetype.so:print/freetype2 \ liblcms.so:graphics/lcms BUILD_DEPENDS= scanimage:graphics/sane-backends RUN_DEPENDS:= ${BUILD_DEPENDS} -USES= gmake jpeg pkgconfig +USES= gmake jpeg localbase:ldflags pkgconfig USE_GNOME= gtk20 gdkpixbuf2 GNU_CONFIGURE= yes -CPPFLAGS+= -I${LOCALBASE}/include -LDFLAGS+= -L${LOCALBASE}/lib - PORTDOCS= *.html *.jpg OPTIONS_DEFINE= DOCS GIMP NLS GIMP_DESC= GIMP plugin support OPTIONS_DEFAULT= GIMP OPTIONS_SUB= yes GIMP_LIB_DEPENDS= libgimp-2.0.so:graphics/gimp-app GIMP_CONFIGURE_ENABLE= gimp2 gimp +GIMP_SUB_FILES= pkg-message NLS_CONFIGURE_ENABLE= nls NLS_USES= gettext NLS_LIBS= -L${LOCALBASE}/lib -lintl -.include - -.if ${PORT_OPTIONS:MGIMP} -SUB_FILES+= pkg-message -.endif - post-patch: @${REINPLACE_CMD} -e 's| $$(DESTDIR)$$(sbindir)||' \ - -e 's|$$(DESTDIR)$$(xsanedocdir)||' ${WRKSRC}/src/Makefile.in + -e 's|$${datadir}/sane/xsane/doc|${DOCSDIR}|g' \ + -e 's|$$(DESTDIR)$$(xsanedocdir)||' \ + ${WRKSRC}/src/Makefile.in ${WRKSRC}/doc/Makefile.in @${REINPLACE_CMD} -e 's|@POSUB@ doc|@POSUB@|' ${WRKSRC}/Makefile.in post-install: ${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.man ${STAGEDIR}${MAN1PREFIX}/man/man1/${PORTNAME}.1 @${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${STAGEDIR}${DOCSDIR} .include Index: head/graphics/xsane/files/patch-xsane-save.c =================================================================== --- head/graphics/xsane/files/patch-xsane-save.c (revision 442112) +++ head/graphics/xsane/files/patch-xsane-save.c (nonexistent) @@ -1,20 +0,0 @@ ---- src/xsane-save.c.orig 2010-11-16 22:06:00.000000000 +0100 -+++ src/xsane-save.c 2012-05-04 07:37:59.000000000 +0200 -@@ -4910,7 +4910,7 @@ - return -1; /* error */ - } - -- if (setjmp(png_ptr->jmpbuf)) -+ if (setjmp(png_jmpbuf(png_ptr))) - { - snprintf(buf, sizeof(buf), "%s %s", ERR_DURING_SAVE, ERR_LIBPNG); - xsane_back_gtk_error(buf, TRUE); -@@ -5100,7 +5100,7 @@ - return -1; /* error */ - } - -- if (setjmp(png_ptr->jmpbuf)) -+ if (setjmp(png_jmpbuf(png_ptr))) - { - snprintf(buf, sizeof(buf), "%s %s", ERR_DURING_SAVE, ERR_LIBPNG); - xsane_back_gtk_error(buf, TRUE); Property changes on: head/graphics/xsane/files/patch-xsane-save.c ___________________________________________________________________ Deleted: fbsd:nokeywords ## -1 +0,0 ## -yes \ No newline at end of property Deleted: svn:eol-style ## -1 +0,0 ## -native \ No newline at end of property Deleted: svn:mime-type ## -1 +0,0 ## -text/plain \ No newline at end of property Index: head/graphics/xsane/files/patch-src_xsane-save.c =================================================================== --- head/graphics/xsane/files/patch-src_xsane-save.c (nonexistent) +++ head/graphics/xsane/files/patch-src_xsane-save.c (revision 442113) @@ -0,0 +1,20 @@ +--- src/xsane-save.c.orig 2010-11-16 21:06:00 UTC ++++ src/xsane-save.c +@@ -4910,7 +4910,7 @@ int xsane_save_png(FILE *outfile, int co + return -1; /* error */ + } + +- if (setjmp(png_ptr->jmpbuf)) ++ if (setjmp(png_jmpbuf(png_ptr))) + { + snprintf(buf, sizeof(buf), "%s %s", ERR_DURING_SAVE, ERR_LIBPNG); + xsane_back_gtk_error(buf, TRUE); +@@ -5100,7 +5100,7 @@ int xsane_save_png_16(FILE *outfile, int + return -1; /* error */ + } + +- if (setjmp(png_ptr->jmpbuf)) ++ if (setjmp(png_jmpbuf(png_ptr))) + { + snprintf(buf, sizeof(buf), "%s %s", ERR_DURING_SAVE, ERR_LIBPNG); + xsane_back_gtk_error(buf, TRUE); Property changes on: head/graphics/xsane/files/patch-src_xsane-save.c ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/graphics/xsane/files/patch-src_xsane.h =================================================================== --- head/graphics/xsane/files/patch-src_xsane.h (revision 442112) +++ head/graphics/xsane/files/patch-src_xsane.h (revision 442113) @@ -1,11 +1,11 @@ ---- src/xsane.h.o 2012-10-01 11:12:56.549589382 -0400 -+++ src/xsane.h 2012-10-01 11:12:40.660589178 -0400 +--- src/xsane.h.orig 2013-05-22 21:43:46 UTC ++++ src/xsane.h @@ -251,7 +251,7 @@ # elif defined(HAVE_OS2_H) # define DEFAULT_BROWSER "netscape" # else -# define DEFAULT_BROWSER "netscape" +# define DEFAULT_BROWSER "xdg-open" # endif #endif Index: head/graphics/xsane/files/pkg-message.in =================================================================== --- head/graphics/xsane/files/pkg-message.in (revision 442112) +++ head/graphics/xsane/files/pkg-message.in (revision 442113) @@ -1,14 +1,6 @@ -=============================================================================== - -XSane has been installed. - To install XSane as a GIMP plug-in, please type: 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. - -Have fun! - -=============================================================================== +"File -> Create" menu.