Tue May 15 13:19:50 2018 UTC ()
sane-backends: Work around broken configure tests on SunOS.


(jperkin)
diff -r1.68 -r1.69 pkgsrc/graphics/sane-backends/Makefile

cvs diff -r1.68 -r1.69 pkgsrc/graphics/sane-backends/Makefile (expand / switch to unified diff)

--- pkgsrc/graphics/sane-backends/Makefile 2018/02/25 21:22:07 1.68
+++ pkgsrc/graphics/sane-backends/Makefile 2018/05/15 13:19:50 1.69
@@ -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"
4COMMENT= API for access to scanners, digital cameras, frame grabbers, etc 4COMMENT= API for access to scanners, digital cameras, frame grabbers, etc
5 5
6DISTNAME= sane-backends-${SANE_VERSION} 6DISTNAME= sane-backends-${SANE_VERSION}
7DISTFILES= ${DISTNAME}${EXTRACT_SUFX} 7DISTFILES= ${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
13MAKE_JOBS_SAFE= NO 13MAKE_JOBS_SAFE= NO
14 14
15USE_TOOLS+= msgfmt msgmerge pkg-config 15USE_TOOLS+= msgfmt msgmerge pkg-config
16USE_PKGLOCALEDIR= YES 16USE_PKGLOCALEDIR= YES
17 17
18CONFIGURE_ARGS+= --with-gphoto2=no 18CONFIGURE_ARGS+= --with-gphoto2=no
19CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/sane-${SANE_VERSION} 19CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/sane-${SANE_VERSION}
20CONFIGURE_ARGS+= --without-snmp 20CONFIGURE_ARGS+= --without-snmp
21CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR} 21CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
22 22
 23CONFIGURE_ENV.SunOS+= ac_cv_func_inet_ntop=yes
 24CONFIGURE_ENV.SunOS+= ac_cv_func_inet_pton=yes
 25
23.include "../../mk/bsd.prefs.mk" 26.include "../../mk/bsd.prefs.mk"
24 27
25PLIST_VARS+= mustek pint sm3600 28PLIST_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")
28PLIST.sm3600= yes 31PLIST.sm3600= yes
29.elif (${OPSYS} == "Darwin") 32.elif (${OPSYS} == "Darwin")
30PLIST.mustek= yes 33PLIST.mustek= yes
31PLIST.sm3600= yes 34PLIST.sm3600= yes
32.else 35.else
33PLIST.pint= yes 36PLIST.pint= yes
34PLIST.sm3600= yes 37PLIST.sm3600= yes
35.endif 38.endif