| @@ -1,35 +1,38 @@ | | | @@ -1,35 +1,38 @@ |
1 | # $NetBSD: Makefile,v 1.68 2018/02/25 21:22:07 wiz Exp $ | | 1 | # $NetBSD: Makefile,v 1.69 2018/05/15 13:19:50 jperkin Exp $ |
2 | | | 2 | |
3 | .include "Makefile.common" | | 3 | .include "Makefile.common" |
4 | COMMENT= API for access to scanners, digital cameras, frame grabbers, etc | | 4 | COMMENT= API for access to scanners, digital cameras, frame grabbers, etc |
5 | | | 5 | |
6 | DISTNAME= sane-backends-${SANE_VERSION} | | 6 | DISTNAME= sane-backends-${SANE_VERSION} |
7 | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} | | 7 | DISTFILES= ${DISTNAME}${EXTRACT_SUFX} |
8 | | | 8 | |
9 | # lib/Makefile.in builds .o files and then .a, but rules for shlibs, | | 9 | # lib/Makefile.in builds .o files and then .a, but rules for shlibs, |
10 | # while apparently independent, cause libtool to create .o again, | | 10 | # while apparently independent, cause libtool to create .o again, |
11 | # making it possible for the ar step of the .a build to fail to find | | 11 | # making it possible for the ar step of the .a build to fail to find |
12 | # the .o | | 12 | # the .o |
13 | MAKE_JOBS_SAFE= NO | | 13 | MAKE_JOBS_SAFE= NO |
14 | | | 14 | |
15 | USE_TOOLS+= msgfmt msgmerge pkg-config | | 15 | USE_TOOLS+= msgfmt msgmerge pkg-config |
16 | USE_PKGLOCALEDIR= YES | | 16 | USE_PKGLOCALEDIR= YES |
17 | | | 17 | |
18 | CONFIGURE_ARGS+= --with-gphoto2=no | | 18 | CONFIGURE_ARGS+= --with-gphoto2=no |
19 | CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/sane-${SANE_VERSION} | | 19 | CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/sane-${SANE_VERSION} |
20 | CONFIGURE_ARGS+= --without-snmp | | 20 | CONFIGURE_ARGS+= --without-snmp |
21 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} | | 21 | CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} |
22 | | | 22 | |
| | | 23 | CONFIGURE_ENV.SunOS+= ac_cv_func_inet_ntop=yes |
| | | 24 | CONFIGURE_ENV.SunOS+= ac_cv_func_inet_pton=yes |
| | | 25 | |
23 | .include "../../mk/bsd.prefs.mk" | | 26 | .include "../../mk/bsd.prefs.mk" |
24 | | | 27 | |
25 | PLIST_VARS+= mustek pint sm3600 | | 28 | PLIST_VARS+= mustek pint sm3600 |
26 | | | 29 | |
27 | .if (${OPSYS} == "SunOS") || (${OPSYS} == "Linux") || (${OPSYS} == "DragonFly") || (${OPSYS} == "FreeBSD") | | 30 | .if (${OPSYS} == "SunOS") || (${OPSYS} == "Linux") || (${OPSYS} == "DragonFly") || (${OPSYS} == "FreeBSD") |
28 | PLIST.sm3600= yes | | 31 | PLIST.sm3600= yes |
29 | .elif (${OPSYS} == "Darwin") | | 32 | .elif (${OPSYS} == "Darwin") |
30 | PLIST.mustek= yes | | 33 | PLIST.mustek= yes |
31 | PLIST.sm3600= yes | | 34 | PLIST.sm3600= yes |
32 | .else | | 35 | .else |
33 | PLIST.pint= yes | | 36 | PLIST.pint= yes |
34 | PLIST.sm3600= yes | | 37 | PLIST.sm3600= yes |
35 | .endif | | 38 | .endif |