Fixed building on Mac OS X; fixed PLIST; added tiff dependency for dell1600ndiff -r1.47 -r1.48 pkgsrc/graphics/sane-backends/Makefile
(adam)
@@ -1,69 +1,74 @@ | @@ -1,69 +1,74 @@ | |||
1 | # $NetBSD: Makefile,v 1.47 2010/12/23 11:44:45 dsainty Exp $ | 1 | # $NetBSD: Makefile,v 1.48 2010/12/27 15:07:52 adam Exp $ | |
2 | 2 | |||
3 | PKG_DESTDIR_SUPPORT= user-destdir | 3 | PKG_DESTDIR_SUPPORT= user-destdir | |
4 | PKGREVISION= 1 | |||
4 | 5 | |||
5 | .include "Makefile.common" | 6 | .include "Makefile.common" | |
6 | COMMENT= API for access to scanners, digital cameras, frame grabbers etc. | 7 | COMMENT= API for access to scanners, digital cameras, frame grabbers etc. | |
7 | 8 | |||
8 | DISTNAME= sane-backends-${SANE_VERSION} | 9 | DISTNAME= sane-backends-${SANE_VERSION} | |
9 | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} | 10 | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} | |
10 | 11 | |||
11 | # lib/Makefile.in builds .o files and then .a, but rules for shlibs, | 12 | # lib/Makefile.in builds .o files and then .a, but rules for shlibs, | |
12 | # while apparently independent, cause libtool to create .o again, | 13 | # while apparently independent, cause libtool to create .o again, | |
13 | # making it possible for the ar step of the .a build to fail to find | 14 | # making it possible for the ar step of the .a build to fail to find | |
14 | # the .o | 15 | # the .o | |
15 | MAKE_JOBS_SAFE= NO | 16 | MAKE_JOBS_SAFE= NO | |
16 | 17 | |||
17 | USE_TOOLS+= msgfmt msgmerge | 18 | USE_TOOLS+= msgfmt msgmerge | |
18 | USE_PKGLOCALEDIR= YES | 19 | USE_PKGLOCALEDIR= YES | |
19 | 20 | |||
20 | CONFIGURE_ARGS+= --with-gphoto2=no | 21 | CONFIGURE_ARGS+= --with-gphoto2=no | |
21 | CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/sane-${SANE_VERSION} | 22 | CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/sane-${SANE_VERSION} | |
22 | 23 | |||
23 | .include "../../mk/bsd.prefs.mk" | 24 | .include "../../mk/bsd.prefs.mk" | |
24 | 25 | |||
25 | PLIST_VARS+= pint sm3600 | 26 | PLIST_VARS+= mustek pint sm3600 | |
26 | 27 | |||
27 | .if (${OPSYS} == "SunOS") | 28 | .if (${OPSYS} == "SunOS") | |
28 | # nothing | 29 | # nothing | |
29 | .elif (${OPSYS} == "Linux") || (${OPSYS} == "DragonFly") | 30 | .elif (${OPSYS} == "Linux") || (${OPSYS} == "DragonFly") | |
30 | PLIST.sm3600= yes | 31 | PLIST.sm3600= yes | |
32 | .elif (${OPSYS} == "Darwin") | |||
33 | PLIST.mustek= yes | |||
34 | PLIST.sm3600= yes | |||
31 | .else | 35 | .else | |
32 | PLIST.pint= yes | 36 | PLIST.pint= yes | |
33 | PLIST.sm3600= yes | 37 | PLIST.sm3600= yes | |
34 | .endif | 38 | .endif | |
35 | 39 | |||
36 | OWN_DIRS+= ${PKG_SYSCONFDIR}/sane.d | 40 | OWN_DIRS+= ${PKG_SYSCONFDIR}/sane.d | |
37 | EGDIR= ${PREFIX}/share/examples/sane | 41 | EGDIR= ${PREFIX}/share/examples/sane | |
38 | .for f in abaton.conf agfafocus.conf apple.conf artec.conf \ | 42 | .for f in abaton.conf agfafocus.conf apple.conf artec.conf \ | |
39 | artec_eplus48u.conf avision.conf bh.conf canon.conf canon630u.conf \ | 43 | artec_eplus48u.conf avision.conf bh.conf canon.conf canon630u.conf \ | |
40 | canon_dr.conf cardscan.conf coolscan.conf coolscan2.conf coolscan3.conf \ | 44 | canon_dr.conf cardscan.conf coolscan.conf coolscan2.conf coolscan3.conf \ | |
41 | dc210.conf dc240.conf dc25.conf dll.conf dmc.conf \ | 45 | dc210.conf dc240.conf dc25.conf dell1600n_net.conf dll.conf dmc.conf \ | |
42 | epson.conf epjitsu.conf epson2.conf fujitsu.conf \ | 46 | epson.conf epjitsu.conf epson2.conf fujitsu.conf \ | |
43 | genesys.conf gt68xx.conf hp.conf hp3900.conf \ | 47 | genesys.conf gt68xx.conf hp.conf hp3900.conf \ | |
44 | hp4200.conf hp5400.conf hs2p.conf ibm.conf kodak.conf leo.conf lexmark.conf \ | 48 | hp4200.conf hp5400.conf hs2p.conf ibm.conf kodak.conf leo.conf lexmark.conf \ | |
45 | ma1509.conf matsushita.conf \ | 49 | ma1509.conf matsushita.conf \ | |
46 | microtek.conf microtek2.conf mustek.conf mustek_usb.conf \ | 50 | microtek.conf microtek2.conf mustek.conf mustek_usb.conf \ | |
47 | nec.conf net.conf \ | 51 | nec.conf net.conf \ | |
48 | p5.conf pie.conf pixma.conf plustek.conf plustek_pp.conf \ | 52 | p5.conf pie.conf pixma.conf plustek.conf plustek_pp.conf \ | |
49 | ricoh.conf rts8891.conf \ | 53 | ricoh.conf rts8891.conf \ | |
50 | s9036.conf saned.conf sceptre.conf sharp.conf sm3840.conf snapscan.conf \ | 54 | s9036.conf saned.conf sceptre.conf sharp.conf sm3840.conf snapscan.conf \ | |
51 | sp15c.conf st400.conf stv680.conf \ | 55 | sp15c.conf st400.conf stv680.conf \ | |
52 | tamarack.conf teco1.conf teco2.conf teco3.conf \ | 56 | tamarack.conf teco1.conf teco2.conf teco3.conf \ | |
53 | test.conf u12.conf umax.conf umax1220u.conf umax_pp.conf xerox_mfp.conf | 57 | test.conf u12.conf umax.conf umax1220u.conf umax_pp.conf xerox_mfp.conf | |
54 | CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/sane.d/${f} | 58 | CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/sane.d/${f} | |
55 | .endfor | 59 | .endfor | |
56 | 60 | |||
57 | .if (${OPSYS} == "Linux") | 61 | .if (${OPSYS} == "Linux") | |
58 | .for f in qcam.conf v4l.conf | 62 | .for f in qcam.conf v4l.conf | |
59 | CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/sane.d/${f} | 63 | CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/sane.d/${f} | |
60 | .endfor | 64 | .endfor | |
61 | .endif | 65 | .endif | |
62 | 66 | |||
63 | .include "options.mk" | 67 | .include "options.mk" | |
64 | .if (${OPSYS} != "SunOS") | 68 | .if (${OPSYS} != "SunOS") | |
65 | . include "../../devel/libusb/buildlink3.mk" | 69 | . include "../../devel/libusb/buildlink3.mk" | |
66 | .endif | 70 | .endif | |
71 | .include "../../graphics/tiff/buildlink3.mk" | |||
67 | .include "../../mk/jpeg.buildlink3.mk" | 72 | .include "../../mk/jpeg.buildlink3.mk" | |
68 | .include "../../mk/pthread.buildlink3.mk" | 73 | .include "../../mk/pthread.buildlink3.mk" | |
69 | .include "../../mk/bsd.pkg.mk" | 74 | .include "../../mk/bsd.pkg.mk" |
@@ -1,39 +1,40 @@ | @@ -1,39 +1,40 @@ | |||
1 | @comment $NetBSD: PLIST,v 1.25 2010/09/19 15:06:18 wiz Exp $ | 1 | @comment $NetBSD: PLIST,v 1.26 2010/12/27 15:07:52 adam Exp $ | |
2 | bin/gamma4scanimage | 2 | bin/gamma4scanimage | |
3 | bin/sane-config | 3 | bin/sane-config | |
4 | bin/sane-find-scanner | 4 | bin/sane-find-scanner | |
5 | bin/scanimage | 5 | bin/scanimage | |
6 | include/sane/sane.h | 6 | include/sane/sane.h | |
7 | include/sane/saneopts.h | 7 | include/sane/saneopts.h | |
8 | lib/libsane.la | 8 | lib/libsane.la | |
9 | lib/sane/libsane-abaton.la | 9 | lib/sane/libsane-abaton.la | |
10 | lib/sane/libsane-agfafocus.la | 10 | lib/sane/libsane-agfafocus.la | |
11 | lib/sane/libsane-apple.la | 11 | lib/sane/libsane-apple.la | |
12 | lib/sane/libsane-artec.la | 12 | lib/sane/libsane-artec.la | |
13 | lib/sane/libsane-artec_eplus48u.la | 13 | lib/sane/libsane-artec_eplus48u.la | |
14 | lib/sane/libsane-as6e.la | 14 | lib/sane/libsane-as6e.la | |
15 | lib/sane/libsane-avision.la | 15 | lib/sane/libsane-avision.la | |
16 | lib/sane/libsane-bh.la | 16 | lib/sane/libsane-bh.la | |
17 | lib/sane/libsane-canon.la | 17 | lib/sane/libsane-canon.la | |
18 | lib/sane/libsane-canon630u.la | 18 | lib/sane/libsane-canon630u.la | |
19 | lib/sane/libsane-canon_dr.la | 19 | lib/sane/libsane-canon_dr.la | |
20 | lib/sane/libsane-cardscan.la | 20 | lib/sane/libsane-cardscan.la | |
21 | lib/sane/libsane-coolscan.la | 21 | lib/sane/libsane-coolscan.la | |
22 | lib/sane/libsane-coolscan2.la | 22 | lib/sane/libsane-coolscan2.la | |
23 | lib/sane/libsane-coolscan3.la | 23 | lib/sane/libsane-coolscan3.la | |
24 | lib/sane/libsane-dc210.la | 24 | lib/sane/libsane-dc210.la | |
25 | lib/sane/libsane-dc240.la | 25 | lib/sane/libsane-dc240.la | |
26 | lib/sane/libsane-dc25.la | 26 | lib/sane/libsane-dc25.la | |
27 | lib/sane/libsane-dell1600n_net.la | |||
27 | lib/sane/libsane-dll.la | 28 | lib/sane/libsane-dll.la | |
28 | lib/sane/libsane-dmc.la | 29 | lib/sane/libsane-dmc.la | |
29 | lib/sane/libsane-epjitsu.la | 30 | lib/sane/libsane-epjitsu.la | |
30 | lib/sane/libsane-epson.la | 31 | lib/sane/libsane-epson.la | |
31 | lib/sane/libsane-epson2.la | 32 | lib/sane/libsane-epson2.la | |
32 | lib/sane/libsane-fujitsu.la | 33 | lib/sane/libsane-fujitsu.la | |
33 | lib/sane/libsane-genesys.la | 34 | lib/sane/libsane-genesys.la | |
34 | lib/sane/libsane-gt68xx.la | 35 | lib/sane/libsane-gt68xx.la | |
35 | lib/sane/libsane-hp.la | 36 | lib/sane/libsane-hp.la | |
36 | lib/sane/libsane-hp3500.la | 37 | lib/sane/libsane-hp3500.la | |
37 | lib/sane/libsane-hp3900.la | 38 | lib/sane/libsane-hp3900.la | |
38 | lib/sane/libsane-hp4200.la | 39 | lib/sane/libsane-hp4200.la | |
39 | lib/sane/libsane-hp5400.la | 40 | lib/sane/libsane-hp5400.la | |
@@ -41,26 +42,27 @@ lib/sane/libsane-hp5590.la | @@ -41,26 +42,27 @@ lib/sane/libsane-hp5590.la | |||
41 | lib/sane/libsane-hpljm1005.la | 42 | lib/sane/libsane-hpljm1005.la | |
42 | lib/sane/libsane-hs2p.la | 43 | lib/sane/libsane-hs2p.la | |
43 | lib/sane/libsane-ibm.la | 44 | lib/sane/libsane-ibm.la | |
44 | lib/sane/libsane-kodak.la | 45 | lib/sane/libsane-kodak.la | |
45 | lib/sane/libsane-kvs1025.la | 46 | lib/sane/libsane-kvs1025.la | |
46 | lib/sane/libsane-leo.la | 47 | lib/sane/libsane-leo.la | |
47 | lib/sane/libsane-lexmark.la | 48 | lib/sane/libsane-lexmark.la | |
48 | lib/sane/libsane-ma1509.la | 49 | lib/sane/libsane-ma1509.la | |
49 | lib/sane/libsane-matsushita.la | 50 | lib/sane/libsane-matsushita.la | |
50 | lib/sane/libsane-microtek.la | 51 | lib/sane/libsane-microtek.la | |
51 | lib/sane/libsane-microtek2.la | 52 | lib/sane/libsane-microtek2.la | |
52 | lib/sane/libsane-mustek.la | 53 | lib/sane/libsane-mustek.la | |
53 | lib/sane/libsane-mustek_usb.la | 54 | lib/sane/libsane-mustek_usb.la | |
55 | ${PLIST.mustek}lib/sane/libsane-mustek_usb2.la | |||
54 | lib/sane/libsane-nec.la | 56 | lib/sane/libsane-nec.la | |
55 | lib/sane/libsane-net.la | 57 | lib/sane/libsane-net.la | |
56 | lib/sane/libsane-niash.la | 58 | lib/sane/libsane-niash.la | |
57 | lib/sane/libsane-p5.la | 59 | lib/sane/libsane-p5.la | |
58 | lib/sane/libsane-pie.la | 60 | lib/sane/libsane-pie.la | |
59 | ${PLIST.pint}lib/sane/libsane-pint.la | 61 | ${PLIST.pint}lib/sane/libsane-pint.la | |
60 | lib/sane/libsane-pixma.la | 62 | lib/sane/libsane-pixma.la | |
61 | lib/sane/libsane-plustek.la | 63 | lib/sane/libsane-plustek.la | |
62 | lib/sane/libsane-plustek_pp.la | 64 | lib/sane/libsane-plustek_pp.la | |
63 | lib/sane/libsane-ricoh.la | 65 | lib/sane/libsane-ricoh.la | |
64 | lib/sane/libsane-rts8891.la | 66 | lib/sane/libsane-rts8891.la | |
65 | lib/sane/libsane-s9036.la | 67 | lib/sane/libsane-s9036.la | |
66 | lib/sane/libsane-sceptre.la | 68 | lib/sane/libsane-sceptre.la | |
@@ -120,26 +122,27 @@ man/man5/sane-hp5590.5 | @@ -120,26 +122,27 @@ man/man5/sane-hp5590.5 | |||
120 | man/man5/sane-hpljm1005.5 | 122 | man/man5/sane-hpljm1005.5 | |
121 | man/man5/sane-hs2p.5 | 123 | man/man5/sane-hs2p.5 | |
122 | man/man5/sane-ibm.5 | 124 | man/man5/sane-ibm.5 | |
123 | man/man5/sane-kodak.5 | 125 | man/man5/sane-kodak.5 | |
124 | man/man5/sane-kvs1025.5 | 126 | man/man5/sane-kvs1025.5 | |
125 | man/man5/sane-leo.5 | 127 | man/man5/sane-leo.5 | |
126 | man/man5/sane-lexmark.5 | 128 | man/man5/sane-lexmark.5 | |
127 | man/man5/sane-ma1509.5 | 129 | man/man5/sane-ma1509.5 | |
128 | man/man5/sane-matsushita.5 | 130 | man/man5/sane-matsushita.5 | |
129 | man/man5/sane-microtek.5 | 131 | man/man5/sane-microtek.5 | |
130 | man/man5/sane-microtek2.5 | 132 | man/man5/sane-microtek2.5 | |
131 | man/man5/sane-mustek.5 | 133 | man/man5/sane-mustek.5 | |
132 | man/man5/sane-mustek_usb.5 | 134 | man/man5/sane-mustek_usb.5 | |
135 | ${PLIST.mustek}man/man5/sane-mustek_usb2.5 | |||
133 | man/man5/sane-nec.5 | 136 | man/man5/sane-nec.5 | |
134 | man/man5/sane-net.5 | 137 | man/man5/sane-net.5 | |
135 | man/man5/sane-niash.5 | 138 | man/man5/sane-niash.5 | |
136 | man/man5/sane-p5.5 | 139 | man/man5/sane-p5.5 | |
137 | man/man5/sane-pie.5 | 140 | man/man5/sane-pie.5 | |
138 | ${PLIST.pint}man/man5/sane-pint.5 | 141 | ${PLIST.pint}man/man5/sane-pint.5 | |
139 | man/man5/sane-pixma.5 | 142 | man/man5/sane-pixma.5 | |
140 | man/man5/sane-plustek.5 | 143 | man/man5/sane-plustek.5 | |
141 | man/man5/sane-plustek_pp.5 | 144 | man/man5/sane-plustek_pp.5 | |
142 | man/man5/sane-ricoh.5 | 145 | man/man5/sane-ricoh.5 | |
143 | man/man5/sane-rts8891.5 | 146 | man/man5/sane-rts8891.5 | |
144 | man/man5/sane-s9036.5 | 147 | man/man5/sane-s9036.5 | |
145 | man/man5/sane-sceptre.5 | 148 | man/man5/sane-sceptre.5 | |
@@ -255,26 +258,27 @@ share/examples/sane/artec.conf | @@ -255,26 +258,27 @@ share/examples/sane/artec.conf | |||
255 | share/examples/sane/artec_eplus48u.conf | 258 | share/examples/sane/artec_eplus48u.conf | |
256 | share/examples/sane/avision.conf | 259 | share/examples/sane/avision.conf | |
257 | share/examples/sane/bh.conf | 260 | share/examples/sane/bh.conf | |
258 | share/examples/sane/canon.conf | 261 | share/examples/sane/canon.conf | |
259 | share/examples/sane/canon630u.conf | 262 | share/examples/sane/canon630u.conf | |
260 | share/examples/sane/canon_dr.conf | 263 | share/examples/sane/canon_dr.conf | |
261 | share/examples/sane/cardscan.conf | 264 | share/examples/sane/cardscan.conf | |
262 | share/examples/sane/coolscan.conf | 265 | share/examples/sane/coolscan.conf | |
263 | share/examples/sane/coolscan2.conf | 266 | share/examples/sane/coolscan2.conf | |
264 | share/examples/sane/coolscan3.conf | 267 | share/examples/sane/coolscan3.conf | |
265 | share/examples/sane/dc210.conf | 268 | share/examples/sane/dc210.conf | |
266 | share/examples/sane/dc240.conf | 269 | share/examples/sane/dc240.conf | |
267 | share/examples/sane/dc25.conf | 270 | share/examples/sane/dc25.conf | |
271 | share/examples/sane/dell1600n_net.conf | |||
268 | share/examples/sane/dll.conf | 272 | share/examples/sane/dll.conf | |
269 | share/examples/sane/dmc.conf | 273 | share/examples/sane/dmc.conf | |
270 | share/examples/sane/epjitsu.conf | 274 | share/examples/sane/epjitsu.conf | |
271 | share/examples/sane/epson.conf | 275 | share/examples/sane/epson.conf | |
272 | share/examples/sane/epson2.conf | 276 | share/examples/sane/epson2.conf | |
273 | share/examples/sane/fujitsu.conf | 277 | share/examples/sane/fujitsu.conf | |
274 | share/examples/sane/genesys.conf | 278 | share/examples/sane/genesys.conf | |
275 | share/examples/sane/gt68xx.conf | 279 | share/examples/sane/gt68xx.conf | |
276 | share/examples/sane/hp.conf | 280 | share/examples/sane/hp.conf | |
277 | share/examples/sane/hp3900.conf | 281 | share/examples/sane/hp3900.conf | |
278 | share/examples/sane/hp4200.conf | 282 | share/examples/sane/hp4200.conf | |
279 | share/examples/sane/hp5400.conf | 283 | share/examples/sane/hp5400.conf | |
280 | share/examples/sane/hs2p.conf | 284 | share/examples/sane/hs2p.conf |
@@ -1,12 +1,16 @@ | @@ -1,12 +1,16 @@ | |||
1 | $NetBSD: distinfo,v 1.29 2010/12/08 09:35:29 wiz Exp $ | 1 | $NetBSD: distinfo,v 1.30 2010/12/27 15:07:52 adam Exp $ | |
2 | 2 | |||
3 | SHA1 (sane-backends-1.0.21.tar.gz) = 4a2789ea9dae1ece090d016abd14b0f2450d9bdb | 3 | SHA1 (sane-backends-1.0.21.tar.gz) = 4a2789ea9dae1ece090d016abd14b0f2450d9bdb | |
4 | RMD160 (sane-backends-1.0.21.tar.gz) = 000ae42ffd6484c54389a9468bdde1dcfc758dde | 4 | RMD160 (sane-backends-1.0.21.tar.gz) = 000ae42ffd6484c54389a9468bdde1dcfc758dde | |
5 | Size (sane-backends-1.0.21.tar.gz) = 5050344 bytes | 5 | Size (sane-backends-1.0.21.tar.gz) = 5050344 bytes | |
6 | SHA1 (patch-aa) = ff3439b060d6aa78f63d6acd09d87499a4d7f224 | 6 | SHA1 (patch-aa) = ff3439b060d6aa78f63d6acd09d87499a4d7f224 | |
7 | SHA1 (patch-ab) = ab1f77b2f6e7cb691fe4e97aa6d0c8d8e4f46bc9 | 7 | SHA1 (patch-ab) = ab1f77b2f6e7cb691fe4e97aa6d0c8d8e4f46bc9 | |
8 | SHA1 (patch-ac) = 900911de5cde4a6cdc35cbc2d13371b13c596474 | 8 | SHA1 (patch-ac) = 900911de5cde4a6cdc35cbc2d13371b13c596474 | |
9 | SHA1 (patch-ad) = ffd50b49305c05bda28de0536ca54171baff6892 | 9 | SHA1 (patch-ad) = ffd50b49305c05bda28de0536ca54171baff6892 | |
10 | SHA1 (patch-ae) = bf9b53fd5c9b74915769afe9e17bed292a8a9ed9 | 10 | SHA1 (patch-ae) = bf9b53fd5c9b74915769afe9e17bed292a8a9ed9 | |
11 | SHA1 (patch-af) = 7c7eeec5599062fba7bd0ad93dec8e976d5cce0d | 11 | SHA1 (patch-af) = 7c7eeec5599062fba7bd0ad93dec8e976d5cce0d | |
12 | SHA1 (patch-ag) = 8155659bce4e1ce569a8a4a74131f21670c0a834 | 12 | SHA1 (patch-ag) = 8155659bce4e1ce569a8a4a74131f21670c0a834 | |
13 | SHA1 (patch-ah) = 6e747c3b541c9ebb57db6477ac6b6e48b1df0248 | |||
14 | SHA1 (patch-ai) = d04bc976f02e755b107fca1a29b00596e6c1ef54 | |||
15 | SHA1 (patch-aj) = c2e0733796872f1b074d0491dea4cffa1891bccc | |||
16 | SHA1 (patch-ak) = f00d3773c14f9955565debc0d16231906a2bba76 |
$NetBSD: patch-ah,v 1.1 2010/12/27 15:07:52 adam Exp $
Avoid duplicate symbols in libepson and libepson2.
--- backend/epson_usb.h.orig 2010-12-27 14:39:24.000000000 +0000
+++ backend/epson_usb.h
@@ -3,8 +3,6 @@
#define SANE_EPSON_VENDOR_ID (0x4b8)
-extern SANE_Word sanei_epson_usb_product_ids[];
-extern int sanei_epson_getNumberOfUSBProductIds (void);
#endif
$NetBSD: patch-ai,v 1.1 2010/12/27 15:07:52 adam Exp $
Avoid duplicate symbols in libepson and libepson2.
--- backend/epson_usb.c.orig 2010-12-27 14:37:39.000000000 +0000
+++ backend/epson_usb.c
@@ -3,7 +3,7 @@
#include "epson_usb.h"
-SANE_Word sanei_epson_usb_product_ids[] = {
+static SANE_Word sanei_epson_usb_product_ids[] = {
0x101, /* GT-7000U, Perfection 636U */
0x103, /* GT-6600U, Perfection 610 */
0x104, /* GT-7600U, GT-7600UF, Perfection 1200U, Perfection 1200U PHOTO */
@@ -79,7 +79,7 @@ SANE_Word sanei_epson_usb_product_ids[]
in the config file as "usb <vendor> <product>" */
};
-int
+static int
sanei_epson_getNumberOfUSBProductIds (void)
{
return sizeof (sanei_epson_usb_product_ids) / sizeof (SANE_Word);
$NetBSD: patch-aj,v 1.1 2010/12/27 15:07:52 adam Exp $
Avoid duplicate symbols in libepson and libepson2.
--- backend/epson.c.orig 2010-12-27 14:36:16.000000000 +0000
+++ backend/epson.c
@@ -333,7 +333,7 @@
#include "epson.h"
#include "epson_scsi.h"
-#include "epson_usb.h"
+#include "epson_usb.c"
#define EPSON_CONFIG_FILE "epson.conf"
$NetBSD: patch-ak,v 1.1 2010/12/27 15:07:52 adam Exp $
Avoid duplicate symbols in libepson and libepson2.
--- backend/epson2.c.orig 2010-12-27 14:36:45.000000000 +0000
+++ backend/epson2.c
@@ -72,7 +72,7 @@
#include "epson2-ops.h"
#include "epson2_scsi.h"
-#include "epson_usb.h"
+#include "epson_usb.c"
#include "epson2_net.h"
/*