Sat Jan 8 11:47:49 2022 UTC ()
sane-backends: this needs python 2.7 during build


(wiz)
diff -r1.77 -r1.78 pkgsrc/graphics/sane-backends/Makefile

cvs diff -r1.77 -r1.78 pkgsrc/graphics/sane-backends/Makefile (switch to unified diff)

--- pkgsrc/graphics/sane-backends/Makefile 2022/01/04 16:06:54 1.77
+++ pkgsrc/graphics/sane-backends/Makefile 2022/01/08 11:47:49 1.78
@@ -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"
4MASTER_SITES= https://gitlab.com/sane-project/backends/uploads/104f09c07d35519cc8e72e604f11643f/ 4MASTER_SITES= https://gitlab.com/sane-project/backends/uploads/104f09c07d35519cc8e72e604f11643f/
5COMMENT= API for access to scanners, digital cameras, frame grabbers, etc 5COMMENT= API for access to scanners, digital cameras, frame grabbers, etc
6 6
7DISTNAME= sane-backends-${SANE_VERSION} 7DISTNAME= sane-backends-${SANE_VERSION}
8DISTFILES= ${DISTNAME}${EXTRACT_SUFX} 8DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
9 9
10USE_TOOLS+= msgfmt msgmerge pkg-config 10USE_TOOLS+= msgfmt msgmerge pkg-config
11USE_PKGLOCALEDIR= YES 11USE_PKGLOCALEDIR= YES
12 12
 13PYTHON_VERSIONS_ACCEPTED= 27
 14
13# c++11 is needed for genesys backend 15# c++11 is needed for genesys backend
14USE_LANGUAGES= c c++11 16USE_LANGUAGES= c c++11
15 17
16# C++11 18# C++11
17GCC_REQD+= 4.8 19GCC_REQD+= 4.8
18 20
19CONFIGURE_ARGS+= --with-gphoto2=no 21CONFIGURE_ARGS+= --with-gphoto2=no
20CONFIGURE_ARGS+= --without-snmp 22CONFIGURE_ARGS+= --without-snmp
21CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} 23CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
22 24
23CONFIGURE_ENV.SunOS+= ac_cv_func_inet_ntop=yes 25CONFIGURE_ENV.SunOS+= ac_cv_func_inet_ntop=yes
24CONFIGURE_ENV.SunOS+= ac_cv_func_inet_pton=yes 26CONFIGURE_ENV.SunOS+= ac_cv_func_inet_pton=yes
25 27
26.include "../../mk/bsd.prefs.mk" 28.include "../../mk/bsd.prefs.mk"
27 29
28PLIST_VARS+= mustek pint sm3600 kvs40xx 30PLIST_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")
31PLIST.sm3600= yes 33PLIST.sm3600= yes
32.elif (${OPSYS} == "Darwin") 34.elif (${OPSYS} == "Darwin")
33PLIST.mustek= yes 35PLIST.mustek= yes
34PLIST.sm3600= yes 36PLIST.sm3600= yes
35PLIST.kvs40xx= yes 37PLIST.kvs40xx= yes
36.else 38.else
37PLIST.pint= yes 39PLIST.pint= yes
38PLIST.sm3600= yes 40PLIST.sm3600= yes
39.endif 41.endif
40 42
41LIBS.SunOS+= -lresolv -lnsl -lsocket 43LIBS.SunOS+= -lresolv -lnsl -lsocket
42 44
43OWN_DIRS+= ${PKG_SYSCONFDIR}/sane.d 45OWN_DIRS+= ${PKG_SYSCONFDIR}/sane.d
44EGDIR= ${PREFIX}/share/examples/sane 46EGDIR= ${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 \
46artec_eplus48u.conf avision.conf bh.conf canon.conf canon630u.conf \ 48artec_eplus48u.conf avision.conf bh.conf canon.conf canon630u.conf \
47canon_dr.conf cardscan.conf coolscan.conf coolscan2.conf coolscan3.conf \ 49canon_dr.conf cardscan.conf coolscan.conf coolscan2.conf coolscan3.conf \
48dc210.conf dc240.conf dc25.conf dell1600n_net.conf dll.conf dmc.conf \ 50dc210.conf dc240.conf dc25.conf dell1600n_net.conf dll.conf dmc.conf \
49epjitsu.conf epson.conf epson2.conf epsonds.conf fujitsu.conf \ 51epjitsu.conf epson.conf epson2.conf epsonds.conf fujitsu.conf \
50genesys.conf gt68xx.conf hp.conf hp3900.conf \ 52genesys.conf gt68xx.conf hp.conf hp3900.conf \
51hp4200.conf hp5400.conf hs2p.conf ibm.conf kodak.conf \ 53hp4200.conf hp5400.conf hs2p.conf ibm.conf kodak.conf \
52kvs1025.conf leo.conf lexmark.conf \ 54kvs1025.conf leo.conf lexmark.conf \
53ma1509.conf matsushita.conf \ 55ma1509.conf matsushita.conf \
54microtek.conf microtek2.conf mustek.conf mustek_usb.conf \ 56microtek.conf microtek2.conf mustek.conf mustek_usb.conf \
55nec.conf net.conf \ 57nec.conf net.conf \
56p5.conf pie.conf pieusb.conf pixma.conf plustek.conf plustek_pp.conf \ 58p5.conf pie.conf pieusb.conf pixma.conf plustek.conf plustek_pp.conf \
57ricoh.conf rts8891.conf \ 59ricoh.conf rts8891.conf \
58s9036.conf saned.conf sceptre.conf sharp.conf sm3840.conf snapscan.conf \ 60s9036.conf saned.conf sceptre.conf sharp.conf sm3840.conf snapscan.conf \
59sp15c.conf st400.conf stv680.conf \ 61sp15c.conf st400.conf stv680.conf \
60tamarack.conf teco1.conf teco2.conf teco3.conf \ 62tamarack.conf teco1.conf teco2.conf teco3.conf \
61test.conf u12.conf umax.conf umax1220u.conf umax_pp.conf xerox_mfp.conf 63test.conf u12.conf umax.conf umax1220u.conf umax_pp.conf xerox_mfp.conf
62CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/sane.d/${f} 64CONF_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
67CONF_FILES+= ${EGDIR}/${f} ${PKG_SYSCONFDIR}/sane.d/${f} 69CONF_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"