| @@ -1,81 +1,84 @@ | | | @@ -1,81 +1,84 @@ |
1 | # $NetBSD: Makefile,v 1.77 2022/01/04 16:06:54 triaxx Exp $ | | 1 | # $NetBSD: Makefile,v 1.78 2022/01/08 11:47:49 wiz Exp $ |
2 | | | 2 | |
3 | .include "Makefile.common" | | 3 | .include "Makefile.common" |
4 | MASTER_SITES= https://gitlab.com/sane-project/backends/uploads/104f09c07d35519cc8e72e604f11643f/ | | 4 | MASTER_SITES= https://gitlab.com/sane-project/backends/uploads/104f09c07d35519cc8e72e604f11643f/ |
5 | COMMENT= API for access to scanners, digital cameras, frame grabbers, etc | | 5 | COMMENT= API for access to scanners, digital cameras, frame grabbers, etc |
6 | | | 6 | |
7 | DISTNAME= sane-backends-${SANE_VERSION} | | 7 | DISTNAME= sane-backends-${SANE_VERSION} |
8 | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} | | 8 | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} |
9 | | | 9 | |
10 | USE_TOOLS+= msgfmt msgmerge pkg-config | | 10 | USE_TOOLS+= msgfmt msgmerge pkg-config |
11 | USE_PKGLOCALEDIR= YES | | 11 | USE_PKGLOCALEDIR= YES |
12 | | | 12 | |
| | | 13 | PYTHON_VERSIONS_ACCEPTED= 27 |
| | | 14 | |
13 | # c++11 is needed for genesys backend | | 15 | # c++11 is needed for genesys backend |
14 | USE_LANGUAGES= c c++11 | | 16 | USE_LANGUAGES= c c++11 |
15 | | | 17 | |
16 | # C++11 | | 18 | # C++11 |
17 | GCC_REQD+= 4.8 | | 19 | GCC_REQD+= 4.8 |
18 | | | 20 | |
19 | CONFIGURE_ARGS+= --with-gphoto2=no | | 21 | CONFIGURE_ARGS+= --with-gphoto2=no |
20 | CONFIGURE_ARGS+= --without-snmp | | 22 | CONFIGURE_ARGS+= --without-snmp |
21 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | | 23 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} |
22 | | | 24 | |
23 | CONFIGURE_ENV.SunOS+= ac_cv_func_inet_ntop=yes | | 25 | CONFIGURE_ENV.SunOS+= ac_cv_func_inet_ntop=yes |
24 | CONFIGURE_ENV.SunOS+= ac_cv_func_inet_pton=yes | | 26 | CONFIGURE_ENV.SunOS+= ac_cv_func_inet_pton=yes |
25 | | | 27 | |
26 | .include "../../mk/bsd.prefs.mk" | | 28 | .include "../../mk/bsd.prefs.mk" |
27 | | | 29 | |
28 | PLIST_VARS+= mustek pint sm3600 kvs40xx | | 30 | PLIST_VARS+= mustek pint sm3600 kvs40xx |
29 | | | 31 | |
30 | .if (${OPSYS} == "SunOS") || (${OPSYS} == "Linux") || (${OPSYS} == "DragonFly") || (${OPSYS} == "FreeBSD") | | 32 | .if (${OPSYS} == "SunOS") || (${OPSYS} == "Linux") || (${OPSYS} == "DragonFly") || (${OPSYS} == "FreeBSD") |
31 | PLIST.sm3600= yes | | 33 | PLIST.sm3600= yes |
32 | .elif (${OPSYS} == "Darwin") | | 34 | .elif (${OPSYS} == "Darwin") |
33 | PLIST.mustek= yes | | 35 | PLIST.mustek= yes |
34 | PLIST.sm3600= yes | | 36 | PLIST.sm3600= yes |
35 | PLIST.kvs40xx= yes | | 37 | PLIST.kvs40xx= yes |
36 | .else | | 38 | .else |
37 | PLIST.pint= yes | | 39 | PLIST.pint= yes |
38 | PLIST.sm3600= yes | | 40 | PLIST.sm3600= yes |
39 | .endif | | 41 | .endif |
40 | | | 42 | |
41 | LIBS.SunOS+= -lresolv -lnsl -lsocket | | 43 | LIBS.SunOS+= -lresolv -lnsl -lsocket |
42 | | | 44 | |
43 | OWN_DIRS+= ${PKG_SYSCONFDIR}/sane.d | | 45 | OWN_DIRS+= ${PKG_SYSCONFDIR}/sane.d |
44 | EGDIR= ${PREFIX}/share/examples/sane | | 46 | EGDIR= ${PREFIX}/share/examples/sane |
45 | .for f in abaton.conf agfafocus.conf apple.conf artec.conf \ | | 47 | .for f in abaton.conf agfafocus.conf apple.conf artec.conf \ |
46 | artec_eplus48u.conf avision.conf bh.conf canon.conf canon630u.conf \ | | 48 | artec_eplus48u.conf avision.conf bh.conf canon.conf canon630u.conf \ |
47 | canon_dr.conf cardscan.conf coolscan.conf coolscan2.conf coolscan3.conf \ | | 49 | canon_dr.conf cardscan.conf coolscan.conf coolscan2.conf coolscan3.conf \ |
48 | dc210.conf dc240.conf dc25.conf dell1600n_net.conf dll.conf dmc.conf \ | | 50 | dc210.conf dc240.conf dc25.conf dell1600n_net.conf dll.conf dmc.conf \ |
49 | epjitsu.conf epson.conf epson2.conf epsonds.conf fujitsu.conf \ | | 51 | epjitsu.conf epson.conf epson2.conf epsonds.conf fujitsu.conf \ |
50 | genesys.conf gt68xx.conf hp.conf hp3900.conf \ | | 52 | genesys.conf gt68xx.conf hp.conf hp3900.conf \ |
51 | hp4200.conf hp5400.conf hs2p.conf ibm.conf kodak.conf \ | | 53 | hp4200.conf hp5400.conf hs2p.conf ibm.conf kodak.conf \ |
52 | kvs1025.conf leo.conf lexmark.conf \ | | 54 | kvs1025.conf leo.conf lexmark.conf \ |
53 | ma1509.conf matsushita.conf \ | | 55 | ma1509.conf matsushita.conf \ |
54 | microtek.conf microtek2.conf mustek.conf mustek_usb.conf \ | | 56 | microtek.conf microtek2.conf mustek.conf mustek_usb.conf \ |
55 | nec.conf net.conf \ | | 57 | nec.conf net.conf \ |
56 | p5.conf pie.conf pieusb.conf pixma.conf plustek.conf plustek_pp.conf \ | | 58 | p5.conf pie.conf pieusb.conf pixma.conf plustek.conf plustek_pp.conf \ |
57 | ricoh.conf rts8891.conf \ | | 59 | ricoh.conf rts8891.conf \ |
58 | s9036.conf saned.conf sceptre.conf sharp.conf sm3840.conf snapscan.conf \ | | 60 | s9036.conf saned.conf sceptre.conf sharp.conf sm3840.conf snapscan.conf \ |
59 | sp15c.conf st400.conf stv680.conf \ | | 61 | sp15c.conf st400.conf stv680.conf \ |
60 | tamarack.conf teco1.conf teco2.conf teco3.conf \ | | 62 | tamarack.conf teco1.conf teco2.conf teco3.conf \ |
61 | test.conf u12.conf umax.conf umax1220u.conf umax_pp.conf xerox_mfp.conf | | 63 | test.conf u12.conf umax.conf umax1220u.conf umax_pp.conf xerox_mfp.conf |
62 | CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/sane.d/${f} | | 64 | CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/sane.d/${f} |
63 | .endfor | | 65 | .endfor |
64 | | | 66 | |
65 | .if (${OPSYS} == "Linux") | | 67 | .if (${OPSYS} == "Linux") |
66 | . for f in qcam.conf v4l.conf | | 68 | . for f in qcam.conf v4l.conf |
67 | CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/sane.d/${f} | | 69 | CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/sane.d/${f} |
68 | . endfor | | 70 | . endfor |
69 | .endif | | 71 | .endif |
70 | | | 72 | |
71 | .include "options.mk" | | 73 | .include "options.mk" |
72 | .include "../../devel/libusb1/buildlink3.mk" | | 74 | .include "../../devel/libusb1/buildlink3.mk" |
73 | .if (${OPSYS} == "Linux") | | 75 | .if (${OPSYS} == "Linux") |
74 | .include "../../graphics/libv4l/buildlink3.mk" | | 76 | .include "../../graphics/libv4l/buildlink3.mk" |
75 | .endif | | 77 | .endif |
76 | .include "../../graphics/tiff/buildlink3.mk" | | 78 | .include "../../graphics/tiff/buildlink3.mk" |
77 | .include "../../mk/jpeg.buildlink3.mk" | | 79 | .include "../../mk/jpeg.buildlink3.mk" |
78 | .include "../../mk/pthread.buildlink3.mk" | | 80 | .include "../../mk/pthread.buildlink3.mk" |
79 | .include "../../textproc/libxml2/buildlink3.mk" | | 81 | .include "../../textproc/libxml2/buildlink3.mk" |
| | | 82 | .include "../../lang/python/tool.mk" |
80 | | | 83 | |
81 | .include "../../mk/bsd.pkg.mk" | | 84 | .include "../../mk/bsd.pkg.mk" |