Tue Aug 30 01:30:01 2011 UTC ()
Forcibly disable compiling with SNMP.

On systems with netsnmp, configure sort of finds SNMP, and adds
-lnetsnmp.  This is wrong because the package doesn't depend on
netsnmp, and problematic because then looking for getenv() fails.

No PKGREVISION++ because this doesn't change the behavior in cases
that previously resulted in a successful build.


(gdt)
diff -r1.52 -r1.53 pkgsrc/graphics/sane-backends/Makefile

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

--- pkgsrc/graphics/sane-backends/Makefile 2011/07/31 20:05:58 1.52
+++ pkgsrc/graphics/sane-backends/Makefile 2011/08/30 01:30:01 1.53
@@ -1,35 +1,36 @@ @@ -1,35 +1,36 @@
1# $NetBSD: Makefile,v 1.52 2011/07/31 20:05:58 gls Exp $ 1# $NetBSD: Makefile,v 1.53 2011/08/30 01:30:01 gdt Exp $
2 2
3PKG_DESTDIR_SUPPORT= user-destdir 3PKG_DESTDIR_SUPPORT= user-destdir
4PKGREVISION= 1 4PKGREVISION= 1
5 5
6.include "Makefile.common" 6.include "Makefile.common"
7COMMENT= API for access to scanners, digital cameras, frame grabbers etc. 7COMMENT= API for access to scanners, digital cameras, frame grabbers etc.
8 8
9DISTNAME= sane-backends-${SANE_VERSION} 9DISTNAME= sane-backends-${SANE_VERSION}
10DISTFILES= ${DISTNAME}${EXTRACT_SUFX} 10DISTFILES= ${DISTNAME}${EXTRACT_SUFX}
11 11
12# 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,
13# while apparently independent, cause libtool to create .o again, 13# while apparently independent, cause libtool to create .o again,
14# 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
15# the .o 15# the .o
16MAKE_JOBS_SAFE= NO 16MAKE_JOBS_SAFE= NO
17 17
18USE_TOOLS+= msgfmt msgmerge 18USE_TOOLS+= msgfmt msgmerge
19USE_PKGLOCALEDIR= YES 19USE_PKGLOCALEDIR= YES
20 20
21CONFIGURE_ARGS+= --with-gphoto2=no 21CONFIGURE_ARGS+= --with-gphoto2=no
22CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/sane-${SANE_VERSION} 22CONFIGURE_ARGS+= --with-docdir=${PREFIX}/share/doc/sane-${SANE_VERSION}
 23CONFIGURE_ARGS+= --without-snmp
23 24
24.include "../../mk/bsd.prefs.mk" 25.include "../../mk/bsd.prefs.mk"
25 26
26PLIST_VARS+= mustek pint sm3600 27PLIST_VARS+= mustek pint sm3600
27 28
28.if (${OPSYS} == "SunOS") 29.if (${OPSYS} == "SunOS")
29# nothing 30# nothing
30.elif (${OPSYS} == "Linux") || (${OPSYS} == "DragonFly") 31.elif (${OPSYS} == "Linux") || (${OPSYS} == "DragonFly")
31PLIST.sm3600= yes 32PLIST.sm3600= yes
32.elif (${OPSYS} == "Darwin") 33.elif (${OPSYS} == "Darwin")
33PLIST.mustek= yes 34PLIST.mustek= yes
34PLIST.sm3600= yes 35PLIST.sm3600= yes
35.else 36.else