Przeglądaj źródła

sane-backends: update to 1.2.1

Waldemar Brodkorb 2 lat temu
rodzic
commit
f1d974deda
23 zmienionych plików z 7 dodań i 331 usunięć
  1. 7 5
      package/sane-backends/Makefile
  2. 0 12
      package/sane-backends/patches/patch-Makefile_in
  3. 0 12
      package/sane-backends/patches/patch-backend_canon630u-common_c
  4. 0 10
      package/sane-backends/patches/patch-backend_epson2-commands_c
  5. 0 10
      package/sane-backends/patches/patch-backend_genesys_c
  6. 0 10
      package/sane-backends/patches/patch-backend_genesys_h
  7. 0 10
      package/sane-backends/patches/patch-backend_genesys_low_c
  8. 0 10
      package/sane-backends/patches/patch-backend_hp3900_rts8822_c
  9. 0 10
      package/sane-backends/patches/patch-backend_hp5400_sanei_c
  10. 0 10
      package/sane-backends/patches/patch-backend_hp5590_low_c
  11. 0 10
      package/sane-backends/patches/patch-backend_kvs20xx_opt_c
  12. 0 11
      package/sane-backends/patches/patch-backend_microtek_c
  13. 0 22
      package/sane-backends/patches/patch-backend_pixma_bjnp_c
  14. 0 13
      package/sane-backends/patches/patch-backend_pixma_common_h
  15. 0 12
      package/sane-backends/patches/patch-backend_pixma_imageclass_c
  16. 0 10
      package/sane-backends/patches/patch-backend_rts88xx_lib_c
  17. 0 11
      package/sane-backends/patches/patch-backend_sm3600-scanutil_c
  18. 0 12
      package/sane-backends/patches/patch-backend_umax1220u-common_c
  19. 0 10
      package/sane-backends/patches/patch-backend_xerox_mfp_c
  20. 0 90
      package/sane-backends/patches/patch-configure
  21. 0 11
      package/sane-backends/patches/patch-configure_in
  22. 0 10
      package/sane-backends/patches/patch-include_sane_sanei_tcp_h
  23. 0 10
      package/sane-backends/patches/patch-include_sane_sanei_udp_h

+ 7 - 5
package/sane-backends/Makefile

@@ -4,15 +4,15 @@
 include ${ADK_TOPDIR}/rules.mk
 
 PKG_NAME:=		sane-backends
-PKG_VERSION:=		1.0.22
-PKG_RELEASE:=		3
-PKG_HASH:=		9f84a16800497f0b79a278531bb1a0f438de6ce8cf509fefc65a252e29f90c54
+PKG_VERSION:=		1.2.1
+PKG_RELEASE:=		1
+PKG_HASH:=		f832395efcb90bb5ea8acd367a820c393dda7e0dd578b16f48928b8f5bdd0524
 PKG_DESCR:=		scanner access now easy
 PKG_SECTION:=		sys/misc
 PKG_BUILDDEP:=		libusb libusb-compat
 PKG_NEEDS:=		threads
 PKG_URL:=		http://www.sane-project.org/
-PKG_SITES:=		ftp://ftp2.sane-project.org/pub/sane/${PKG_NAME}-${PKG_VERSION}/
+PKG_SITES:=		https://gitlab.com/sane-project/backends/uploads/110fc43336d0fb5e514f1fdc7360dd87/
 
 DISTFILES:=		${PKG_NAME}-${PKG_VERSION}.tar.gz
 
@@ -226,7 +226,9 @@ $(eval $(call PKG_mod_template,SANE_BACKEND_UMAX_PP,umax_pp))
 $(eval $(call PKG_mod_template,SANE_BACKEND_UMAX,umax))
 
 TARGET_CFLAGS+=		-D_GNU_SOURCE
-CONFIGURE_ENV+=		ac_cv_func_ioperm=no have_libv4l1=no
+CONFIGURE_ENV+=		ac_cv_func_ioperm=no \
+			have_libv4l1=no \
+			ac_cv_func_mmap_fixed_mapped=yes
 CONFIGURE_ARGS+=	--disable-translations \
 			--without-gphoto2 \
 			--enable-libusb

+ 0 - 12
package/sane-backends/patches/patch-Makefile_in

@@ -1,12 +0,0 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- sane-backends-1.0.22.orig/Makefile.in	2011-01-30 19:50:56.000000000 +0100
-+++ sane-backends-1.0.22/Makefile.in	2011-10-01 19:26:02.309066938 +0200
-@@ -293,7 +293,7 @@ target_alias = @target_alias@
- top_build_prefix = @top_build_prefix@
- top_builddir = @top_builddir@
- top_srcdir = @top_srcdir@
--SUBDIRS = include lib sanei backend frontend tools doc po
-+SUBDIRS = include lib sanei backend frontend
- DIST_SUBDIRS = include lib sanei backend frontend tools doc po japi testsuite
- dist_doc_DATA = AUTHORS ChangeLog COPYING LICENSE NEWS PROBLEMS PROJECTS \
-  README README.aix README.beos README.darwin README.djpeg README.freebsd \

+ 0 - 12
package/sane-backends/patches/patch-backend_canon630u-common_c

@@ -1,12 +0,0 @@
---- sane-backends-1.0.22.orig/backend/canon630u-common.c	2010-12-02 00:49:58.000000000 +0100
-+++ sane-backends-1.0.22/backend/canon630u-common.c	2014-03-18 08:33:31.000000000 +0100
-@@ -58,9 +58,7 @@
- #include <unistd.h>		/* usleep */
- #include <time.h>
- #include <math.h>               /* exp() */
--#ifdef HAVE_OS2_H
- #include <sys/types.h> 		/* mode_t */
--#endif
- #include <sys/stat.h>
- #include "lm9830.h"
- 

+ 0 - 10
package/sane-backends/patches/patch-backend_epson2-commands_c

@@ -1,10 +0,0 @@
---- sane-backends-1.0.22.orig/backend/epson2-commands.c	2010-12-02 00:49:58.000000000 +0100
-+++ sane-backends-1.0.22/backend/epson2-commands.c	2014-03-18 08:34:27.000000000 +0100
-@@ -19,6 +19,7 @@
- 
- #include "sane/config.h"
- 
-+#include <sys/types.h>
- #include <byteorder.h>
- #include <math.h>
- 

+ 0 - 10
package/sane-backends/patches/patch-backend_genesys_c

@@ -1,10 +0,0 @@
---- sane-backends-1.0.22.orig/backend/genesys.c	2011-02-14 00:10:18.000000000 +0100
-+++ sane-backends-1.0.22/backend/genesys.c	2014-03-18 08:36:00.000000000 +0100
-@@ -65,6 +65,7 @@
- #include <errno.h>
- #include <string.h>
- #include <stdlib.h>
-+#include <sys/types.h>
- #include <unistd.h>
- #include <math.h>
- 

+ 0 - 10
package/sane-backends/patches/patch-backend_genesys_h

@@ -1,10 +0,0 @@
---- sane-backends-1.0.22.orig/backend/genesys.h	2011-01-16 02:01:28.000000000 +0100
-+++ sane-backends-1.0.22/backend/genesys.h	2014-03-18 08:36:42.000000000 +0100
-@@ -52,6 +52,7 @@
- */
- #undef UNIT_TESTING
- 
-+#include <sys/types.h>
- #include "genesys_low.h"
- 
- #define FREE_IFNOT_NULL(x)		if(x!=NULL) { free(x); x=NULL;}

+ 0 - 10
package/sane-backends/patches/patch-backend_genesys_low_c

@@ -1,10 +0,0 @@
---- sane-backends-1.0.22.orig/backend/genesys_low.c	2011-02-14 00:10:18.000000000 +0100
-+++ sane-backends-1.0.22/backend/genesys_low.c	2014-03-18 08:37:27.000000000 +0100
-@@ -46,6 +46,7 @@
- #include <errno.h>
- #include <string.h>
- #include <stdlib.h>
-+#include <sys/types.h>
- #include <unistd.h>
- #include <math.h>
- 

+ 0 - 10
package/sane-backends/patches/patch-backend_hp3900_rts8822_c

@@ -1,10 +0,0 @@
---- sane-backends-1.0.22.orig/backend/hp3900_rts8822.c	2010-12-02 00:49:58.000000000 +0100
-+++ sane-backends-1.0.22/backend/hp3900_rts8822.c	2014-03-18 08:38:21.000000000 +0100
-@@ -64,6 +64,7 @@
- #include <stdio.h>
- #include <stdlib.h>
- #include <string.h>		/* bzero()   */
-+#include <sys/types.h>
- #include <time.h>		/* clock()   */
- #include <math.h>		/* truncf()  */
- #include <ctype.h>		/* tolower() */

+ 0 - 10
package/sane-backends/patches/patch-backend_hp5400_sanei_c

@@ -1,10 +0,0 @@
---- sane-backends-1.0.22.orig/backend/hp5400_sanei.c	2010-12-02 00:49:58.000000000 +0100
-+++ sane-backends-1.0.22/backend/hp5400_sanei.c	2014-03-18 08:39:35.000000000 +0100
-@@ -56,6 +56,7 @@
- #include "hp5400_xfer.h"
- #include "hp5400_debug.h"
- #include <stdio.h>
-+#include <sys/types.h>
- #include "../include/sane/sanei_usb.h"
- 
- #define CMD_INITBULK1   0x0087	/* send 0x14 */

+ 0 - 10
package/sane-backends/patches/patch-backend_hp5590_low_c

@@ -1,10 +0,0 @@
---- sane-backends-1.0.22.orig/backend/hp5590_low.c	2010-12-02 00:49:58.000000000 +0100
-+++ sane-backends-1.0.22/backend/hp5590_low.c	2014-03-18 08:38:55.000000000 +0100
-@@ -46,6 +46,7 @@
- 
- #include <stdio.h>
- #include <string.h>
-+#include <sys/types.h>
- #include <errno.h>
- #ifdef HAVE_NETINET_IN_H
- # include <netinet/in.h>

+ 0 - 10
package/sane-backends/patches/patch-backend_kvs20xx_opt_c

@@ -1,10 +0,0 @@
---- sane-backends-1.0.22.orig/backend/kvs20xx_opt.c	2010-12-02 00:49:58.000000000 +0100
-+++ sane-backends-1.0.22/backend/kvs20xx_opt.c	2014-03-18 08:41:24.000000000 +0100
-@@ -8,6 +8,7 @@
- 
- #include "../include/sane/config.h"
- 
-+#include <sys/types.h>
- #include <string.h>
- 
- #define DEBUG_DECLARE_ONLY

+ 0 - 11
package/sane-backends/patches/patch-backend_microtek_c

@@ -1,11 +0,0 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- sane-backends-1.0.22.orig/backend/microtek.c	2010-12-02 00:49:58.000000000 +0100
-+++ sane-backends-1.0.22/backend/microtek.c	2011-10-01 19:26:01.659066938 +0200
-@@ -59,6 +59,7 @@
- 
- #include "../include/sane/config.h"
- 
-+#include <stdarg.h>
- #include <stdlib.h>
- #include <string.h>
- #include <unistd.h>

+ 0 - 22
package/sane-backends/patches/patch-backend_pixma_bjnp_c

@@ -1,22 +0,0 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- sane-backends-1.0.22.orig/backend/pixma_bjnp.c	2010-12-02 00:49:58.000000000 +0100
-+++ sane-backends-1.0.22/backend/pixma_bjnp.c	2011-10-01 19:26:01.699066938 +0200
-@@ -59,9 +59,6 @@
- #ifdef HAVE_SYS_TYPES_H
- #include <sys/types.h>
- #endif
--#ifdef HAVE_SYS_TIME_H
--#include <sys/timeb.h>
--#endif
- 
- /* 
-  * networking stuff
-@@ -196,7 +193,7 @@ truncate_hostname (char *hostname, char
-     {
-       /* this is a hostname, not an ip-address, so remove domain part of the name */
- 
--      if ((dot = index (short_hostname, '.')) != NULL)
-+      if ((dot = strchr(short_hostname, '.')) != NULL)
- 	*dot = '\0';
-     }
-   return short_hostname;

+ 0 - 13
package/sane-backends/patches/patch-backend_pixma_common_h

@@ -1,13 +0,0 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- sane-backends-1.0.20.orig/backend/pixma_common.h	2009-02-05 15:36:36.000000000 +0100
-+++ sane-backends-1.0.20/backend/pixma_common.h	2009-05-11 21:00:58.000000000 +0200
-@@ -220,8 +220,8 @@ void pixma_hexdump (int level, const voi
- void pixma_dump (int level, const char *type, const void *data, int len,
- 		 int size, int max);
- #  define DEBUG_DECLARE_ONLY
--#  include "../include/sane/sanei_debug.h"
- #endif /* NDEBUG */
- /** @} end of group debug */
-+#  include "../include/sane/sanei_debug.h"
- 
- #endif

+ 0 - 12
package/sane-backends/patches/patch-backend_pixma_imageclass_c

@@ -1,12 +0,0 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- sane-backends-1.0.22.orig/backend/pixma_imageclass.c	2010-12-02 00:49:58.000000000 +0100
-+++ sane-backends-1.0.22/backend/pixma_imageclass.c	2011-10-01 19:26:01.779066938 +0200
-@@ -161,8 +161,6 @@ query_status (pixma_t * s)
-   if (error >= 0)
-     {
-       memcpy (mf->current_status, data, 12);
--      DBG (3, "Current status: paper=%u cal=%u lamp=%u\n",
--	   data[1], data[8], data[7]);
-       PDBG (pixma_dbg (3, "Current status: paper=%u cal=%u lamp=%u\n",
- 		       data[1], data[8], data[7]));
-     }

+ 0 - 10
package/sane-backends/patches/patch-backend_rts88xx_lib_c

@@ -1,10 +0,0 @@
---- sane-backends-1.0.22.orig/backend/rts88xx_lib.c	2010-12-02 00:49:58.000000000 +0100
-+++ sane-backends-1.0.22/backend/rts88xx_lib.c	2014-03-18 08:42:41.000000000 +0100
-@@ -54,6 +54,7 @@
- 
- #include <stdio.h>
- #include <sys/time.h>
-+#include <sys/types.h>
- 
- #include "../include/_stdint.h"
- 

+ 0 - 11
package/sane-backends/patches/patch-backend_sm3600-scanutil_c

@@ -1,11 +0,0 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- sane-backends-1.0.22.orig/backend/sm3600-scanutil.c	2010-12-02 00:49:58.000000000 +0100
-+++ sane-backends-1.0.22/backend/sm3600-scanutil.c	2011-10-01 19:26:01.819066938 +0200
-@@ -47,6 +47,7 @@ $Id$
- 
- ====================================================================== */
- 
-+#include <stdarg.h>
- #include <unistd.h>
- #include "sm3600-scantool.h"
- 

+ 0 - 12
package/sane-backends/patches/patch-backend_umax1220u-common_c

@@ -1,12 +0,0 @@
-$Id: update-patches 24 2008-08-31 14:56:13Z wbx $
---- sane-backends-1.0.20.orig/backend/umax1220u-common.c	2006-04-17 14:46:41.000000000 +0200
-+++ sane-backends-1.0.20/backend/umax1220u-common.c	2009-05-11 21:17:47.000000000 +0200
-@@ -556,7 +556,7 @@ cwritev (UMAX_Handle * scan, UMAX_Cmd cm
-   /* Read the opcode back */
- 
-   CHK (cread (scan, cmd, len, buf, NULL));
--  if (bcmp (buf, data, len))
-+  if (memcmp (buf, data, len))
-     {
-       DBG (1, "cwritev: verification failed\n");
-       return SANE_STATUS_IO_ERROR;

+ 0 - 10
package/sane-backends/patches/patch-backend_xerox_mfp_c

@@ -1,10 +0,0 @@
---- sane-backends-1.0.22.orig/backend/xerox_mfp.c	2010-12-02 00:49:58.000000000 +0100
-+++ sane-backends-1.0.22/backend/xerox_mfp.c	2014-03-18 08:44:56.000000000 +0100
-@@ -22,6 +22,7 @@
- #include <math.h>
- #include <unistd.h>
- #include <sys/time.h>
-+#include <sys/types.h>
- #include "../include/sane/sane.h"
- #include "../include/sane/sanei.h"
- #include "../include/sane/saneopts.h"

+ 0 - 90
package/sane-backends/patches/patch-configure

@@ -1,90 +0,0 @@
---- sane-backends-1.0.22.orig/configure	2011-02-14 02:27:52.000000000 +0100
-+++ sane-backends-1.0.22/configure	2011-10-01 19:32:51.919066675 +0200
-@@ -7529,77 +7529,7 @@ done
- 
- 
- 
--
--
--
--pkg_failed=no
--{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBV4L" >&5
--$as_echo_n "checking for LIBV4L... " >&6; }
--
--if test -n "$LIBV4L_CFLAGS"; then
--    pkg_cv_LIBV4L_CFLAGS="$LIBV4L_CFLAGS"
-- elif test -n "$PKG_CONFIG"; then
--    if test -n "$PKG_CONFIG" && \
--    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libv4l1\""; } >&5
--  ($PKG_CONFIG --exists --print-errors "libv4l1") 2>&5
--  ac_status=$?
--  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
--  test $ac_status = 0; }; then
--  pkg_cv_LIBV4L_CFLAGS=`$PKG_CONFIG --cflags "libv4l1" 2>/dev/null`
--else
--  pkg_failed=yes
--fi
-- else
--    pkg_failed=untried
--fi
--if test -n "$LIBV4L_LIBS"; then
--    pkg_cv_LIBV4L_LIBS="$LIBV4L_LIBS"
-- elif test -n "$PKG_CONFIG"; then
--    if test -n "$PKG_CONFIG" && \
--    { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libv4l1\""; } >&5
--  ($PKG_CONFIG --exists --print-errors "libv4l1") 2>&5
--  ac_status=$?
--  $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
--  test $ac_status = 0; }; then
--  pkg_cv_LIBV4L_LIBS=`$PKG_CONFIG --libs "libv4l1" 2>/dev/null`
--else
--  pkg_failed=yes
--fi
-- else
--    pkg_failed=untried
--fi
--
--
--
--if test $pkg_failed = yes; then
--   	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
--$as_echo "no" >&6; }
--
--if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
--        _pkg_short_errors_supported=yes
--else
--        _pkg_short_errors_supported=no
--fi
--        if test $_pkg_short_errors_supported = yes; then
--	        LIBV4L_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "libv4l1" 2>&1`
--        else
--	        LIBV4L_PKG_ERRORS=`$PKG_CONFIG --print-errors "libv4l1" 2>&1`
--        fi
--	# Put the nasty error message in config.log where it belongs
--	echo "$LIBV4L_PKG_ERRORS" >&5
--
--	have_libv4l1=no
--elif test $pkg_failed = untried; then
--     	{ $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
--$as_echo "no" >&6; }
--	have_libv4l1=no
--else
--	LIBV4L_CFLAGS=$pkg_cv_LIBV4L_CFLAGS
--	LIBV4L_LIBS=$pkg_cv_LIBV4L_LIBS
--        { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
--$as_echo "yes" >&6; }
--	have_libv4l1=yes
--fi
-+have_libv4l1=no
- 
- 
- 
-@@ -16874,7 +16804,7 @@ ALL_BACKENDS="abaton agfafocus apple art
-         leo lexmark ma1509 magicolor \
-         matsushita microtek microtek2 mustek mustek_pp \
-         mustek_usb mustek_usb2 nec net niash pie pint \
--        pixma plustek plustek_pp qcam ricoh rts8891 s9036 \
-+        pixma plustek plustek_pp ricoh rts8891 s9036 \
-         sceptre sharp sm3600 sm3840 snapscan sp15c st400 \
-         stv680 tamarack teco1 teco2 teco3 test u12 umax
-         umax_pp umax1220u v4l xerox_mfp p5"

+ 0 - 11
package/sane-backends/patches/patch-configure_in

@@ -1,11 +0,0 @@
---- sane-backends-1.0.22.orig/configure.in	2011-02-14 00:27:15.000000000 +0100
-+++ sane-backends-1.0.22/configure.in	2011-10-01 19:26:02.249066938 +0200
-@@ -559,7 +559,7 @@ ALL_BACKENDS="abaton agfafocus apple art
-         leo lexmark ma1509 magicolor \
-         matsushita microtek microtek2 mustek mustek_pp \
-         mustek_usb mustek_usb2 nec net niash pie pint \
--        pixma plustek plustek_pp qcam ricoh rts8891 s9036 \
-+        pixma plustek plustek_pp ricoh rts8891 s9036 \
-         sceptre sharp sm3600 sm3840 snapscan sp15c st400 \
-         stv680 tamarack teco1 teco2 teco3 test u12 umax 
-         umax_pp umax1220u v4l xerox_mfp p5"

+ 0 - 10
package/sane-backends/patches/patch-include_sane_sanei_tcp_h

@@ -1,10 +0,0 @@
---- sane-backends-1.0.22.orig/include/sane/sanei_tcp.h	2010-12-02 00:49:58.000000000 +0100
-+++ sane-backends-1.0.22/include/sane/sanei_tcp.h	2014-03-18 08:31:07.000000000 +0100
-@@ -20,6 +20,7 @@
- 
- #include <sane/sane.h>
- 
-+#include <sys/types.h>
- #include <netinet/in.h>
- #include <netdb.h>
- 

+ 0 - 10
package/sane-backends/patches/patch-include_sane_sanei_udp_h

@@ -1,10 +0,0 @@
---- sane-backends-1.0.22.orig/include/sane/sanei_udp.h	2010-12-02 00:49:58.000000000 +0100
-+++ sane-backends-1.0.22/include/sane/sanei_udp.h	2014-03-18 08:31:40.000000000 +0100
-@@ -20,6 +20,7 @@
- 
- #include <sane/sane.h>
- 
-+#include <sys/types.h>
- #include <netinet/in.h>
- #include <netdb.h>
-