Package: sane-backends Version: 1.2.1 Revision: 2 Description: Scanner Access Now Easy License: GPL Maintainer: None # the URL hash is the repo commit ID Source: https://gitlab.com/sane-project/backends/uploads/110fc43336d0fb5e514f1fdc7360dd87/sane-backends-%v.tar.gz Source-Checksum: SHA256(f832395efcb90bb5ea8acd367a820c393dda7e0dd578b16f48928b8f5bdd0524) Source2: ConfigureParams: << --without-avahi \ --without-poppler-glib \ --without-libcurl \ ac_cv_path_DVIPS=no << # includes https://gitlab.com/sane-project/backends/-/merge_requests/763 PatchFile: %n.patch PatchFile-MD5: a8a16d7daa63523f9cb76465259bf506 BuildDepends: << fig2dev, fink-package-precedence, gettext-tools, ghostscript, libexif12, libgettext8-dev, libgphoto2.6, libiconv-dev, libjpeg8.2-turbo, libnetsnmp40-dev, libpng16, libtiff6, libusb1, libxml2, openssl300-dev, pkgconfig, texlive-base << # needs jpeg_crop_scanline/jpeg_skip_scanlines BuildConflicts: libjpeg9 Depends: << libjpeg8.2-turbo-shlibs, libpng16-shlibs, libusb1-shlibs, libxml2-shlibs, %N-shlibs (= %v-%r) << DescDetail: << SANE stands for "Scanner Access Now Easy" and is an application programming interface (API) that provides standardized access to any raster image scanner hardware (flatbed scanner, hand-held scanner, video- and still-cameras, frame-grabbers, etc.). The SANE API is public domain and its discussion and development is open to everybody. << DescUsage: << Edit %p/etc/sane.d/dll.conf to enable only specific backends for a noticeable performance gain. << DescPackaging: << dvips can't seem to find its tex.pro, so disable it Back-end modules are loaded as libsane-FOO.V_MAJOR.so, so we need -version-info for the -bundle (using -avoid-version gives libsane-FOO.so only). Maybe should hack the target name to include V_MAJOR instead of relying on libtool SONAME games? See backend/dll.c:load() Loading is done by mach-o/dyld.h, so could probably scrap the unversioned .so and the .la files. << ### uses u_long everwhere but doesn't include sys/types.h SetCPPFLAGS: -include sys/types.h -I%p/lib/libjpeg8.2-turbo/include SetLDFLAGS: -L%p/lib/libjpeg8.2-turbo/lib CompileScript: << #!/bin/sh -ev # on macOS12+, /usr/bin/python was removed, so use python3 [ -x /usr/bin/python ] || pyversion=3 ./configure %c PYTHON=/usr/bin/python$pyversion # dell1600n_net module compile fails weirdly perl -pi -e 's/^(PRELOADABLE_BACKENDS.* )dell1600n_net/\1/' backend/Makefile # There's some race issue between sane.dvi and sane.ind in src/doc. So # we give the build 1 chance to fail and then restart to try again. # UseMaxBuildJobs: false does not fix the problem. It really # needs 2 attempts. make -w docdir=%p/share/doc/%N || make -w -j1 docdir=%p/share/doc/%N fink-package-precedence --prohibit-bdep=%n-dev . << InstallScript: << make install DESTDIR=%d docdir=%p/share/doc/%N << DocFiles: AUTHORS COPYING ChangeLog* LICENSE NEWS PROBLEMS PROJECTS SplitOff: << Package: saned Description: Network scanner deamon for sane DescDetail: << saned is the SANE (Scanner Access Now Easy) daemon that allows remote clients to access image acquisition devices available on the local host. << DescUsage: See the man page (man saned) for how to set up the daemon Depends: << libusb1-shlibs, libxml2-shlibs, %N-shlibs (= %v-%r) << Files: << etc/sane.d/saned.conf share/man/man8 sbin << ConfFiles: %p/etc/sane.d/saned.conf DocFiles: AUTHORS COPYING ChangeLog* LICENSE NEWS PROBLEMS PROJECTS << Splitoff2: << Package: %N-shlibs Depends: << libexif12-shlibs, libgphoto2.6-shlibs, libjpeg8.2-turbo-shlibs, libnetsnmp40-shlibs, libtiff6-shlibs, libusb1-shlibs, libxml2-shlibs << Description: Shared libraries for sane # can't just do *.conf because we don't want saned.conf in here Files: << lib/libsane.1*.dylib lib/sane/libsane-*.1*.so etc << Shlibs: %p/lib/libsane.1.dylib 4.0.0 %n (>= 1.2.1-1) ConfFiles: << %p/etc/sane.d/abaton.conf %p/etc/sane.d/agfafocus.conf %p/etc/sane.d/apple.conf %p/etc/sane.d/artec.conf %p/etc/sane.d/artec_eplus48u.conf %p/etc/sane.d/avision.conf %p/etc/sane.d/bh.conf %p/etc/sane.d/canon.conf %p/etc/sane.d/canon630u.conf %p/etc/sane.d/canon_dr.conf %p/etc/sane.d/cardscan.conf %p/etc/sane.d/coolscan.conf %p/etc/sane.d/coolscan2.conf %p/etc/sane.d/coolscan3.conf %p/etc/sane.d/dc210.conf %p/etc/sane.d/dc240.conf %p/etc/sane.d/dc25.conf %p/etc/sane.d/dell1600n_net.conf %p/etc/sane.d/dll.conf %p/etc/sane.d/dmc.conf %p/etc/sane.d/epjitsu.conf %p/etc/sane.d/epson.conf %p/etc/sane.d/epson2.conf %p/etc/sane.d/epsonds.conf %p/etc/sane.d/fujitsu.conf %p/etc/sane.d/genesys.conf %p/etc/sane.d/gphoto2.conf %p/etc/sane.d/gt68xx.conf %p/etc/sane.d/hp.conf %p/etc/sane.d/hp3900.conf %p/etc/sane.d/hp4200.conf %p/etc/sane.d/hp5400.conf %p/etc/sane.d/hs2p.conf %p/etc/sane.d/ibm.conf %p/etc/sane.d/kodak.conf %p/etc/sane.d/kodakaio.conf %p/etc/sane.d/kvs1025.conf %p/etc/sane.d/leo.conf %p/etc/sane.d/lexmark.conf %p/etc/sane.d/ma1509.conf %p/etc/sane.d/magicolor.conf %p/etc/sane.d/matsushita.conf %p/etc/sane.d/microtek.conf %p/etc/sane.d/microtek2.conf %p/etc/sane.d/mustek.conf %p/etc/sane.d/mustek_usb.conf %p/etc/sane.d/nec.conf %p/etc/sane.d/net.conf %p/etc/sane.d/p5.conf %p/etc/sane.d/pie.conf %p/etc/sane.d/pieusb.conf %p/etc/sane.d/pixma.conf %p/etc/sane.d/plustek.conf %p/etc/sane.d/plustek_pp.conf %p/etc/sane.d/ricoh.conf %p/etc/sane.d/rts8891.conf %p/etc/sane.d/s9036.conf %p/etc/sane.d/sceptre.conf %p/etc/sane.d/sharp.conf %p/etc/sane.d/sm3840.conf %p/etc/sane.d/snapscan.conf %p/etc/sane.d/sp15c.conf %p/etc/sane.d/st400.conf %p/etc/sane.d/stv680.conf %p/etc/sane.d/tamarack.conf %p/etc/sane.d/teco1.conf %p/etc/sane.d/teco2.conf %p/etc/sane.d/teco3.conf %p/etc/sane.d/test.conf %p/etc/sane.d/u12.conf %p/etc/sane.d/umax.conf %p/etc/sane.d/umax1220u.conf %p/etc/sane.d/umax_pp.conf %p/etc/sane.d/xerox_mfp.conf << DocFiles: AUTHORS COPYING ChangeLog* LICENSE NEWS PROBLEMS PROJECTS << SplitOff3: << Package: %N-dev Replaces: %N (<< 1.0.28-2) Depends: %N-shlibs (= %v-%r), %N (= %v-%r) BuildDependsOnly: true Description: Headers for shared libraries for sane Files: << bin/sane-config include lib share/man/man1/sane-config.1 << DocFiles: AUTHORS COPYING ChangeLog* LICENSE NEWS PROBLEMS PROJECTS << Homepage: http://www.sane-project.org