Don't compile with net-snmp by default, instead create an "snmp" FLAVOR
for people who need snmp network scanner support.
This commit is contained in:
parent
5bc2e9b459
commit
2714dc9f0c
@ -1,10 +1,10 @@
|
||||
# $OpenBSD: Makefile,v 1.41 2011/03/09 13:05:20 ajacoutot Exp $
|
||||
# $OpenBSD: Makefile,v 1.42 2011/04/25 09:34:39 ajacoutot Exp $
|
||||
|
||||
COMMENT= API for accessing scanners, backends
|
||||
|
||||
DISTNAME= sane-backends-1.0.22
|
||||
|
||||
REVISION= 1
|
||||
REVISION= 2
|
||||
|
||||
SHARED_LIBS= sane 2.0 # .1.0
|
||||
CATEGORIES= graphics
|
||||
@ -19,19 +19,21 @@ PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
WANTLIB += avahi-client avahi-common c crypto dbus-1 exif gphoto2
|
||||
WANTLIB += gphoto2_port jpeg ltdl m netsnmp pthread tiff usb z
|
||||
WANTLIB += avahi-client avahi-common c dbus-1 exif gphoto2
|
||||
WANTLIB += gphoto2_port jpeg ltdl m pthread tiff usb z
|
||||
|
||||
MASTER_SITES= ftp://ftp.sane-project.org/pub/sane/${DISTNAME}/ \
|
||||
ftp://ftp.sane-project.org/pub/sane/old-versions/${DISTNAME}/
|
||||
|
||||
LIB_DEPENDS= graphics/tiff \
|
||||
graphics/libgphoto2 \
|
||||
net/avahi \
|
||||
net/net-snmp
|
||||
net/avahi
|
||||
|
||||
MODULES= devel/gettext
|
||||
|
||||
FLAVORS= snmp
|
||||
FLAVOR?=
|
||||
|
||||
USE_LIBTOOL= Yes
|
||||
USE_GMAKE= Yes
|
||||
USE_GROFF = Yes
|
||||
@ -51,6 +53,14 @@ CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
||||
--enable-avahi \
|
||||
--disable-latex
|
||||
|
||||
.if ${FLAVOR:L:Msnmp}
|
||||
LIB_DEPENDS += net/net-snmp
|
||||
WANTLIB += crypto netsnmp
|
||||
CONFIGURE_ARGS += --with-snmp
|
||||
.else
|
||||
CONFIGURE_ARGS += --without-snmp
|
||||
.endif
|
||||
|
||||
FAKE_FLAGS= configdir=${PREFIX}/share/examples/sane-backends/sane.d
|
||||
|
||||
post-install:
|
||||
|
12
graphics/sane-backends/patches/patch-backend_magicolor_c
Normal file
12
graphics/sane-backends/patches/patch-backend_magicolor_c
Normal file
@ -0,0 +1,12 @@
|
||||
$OpenBSD: patch-backend_magicolor_c,v 1.1 2011/04/25 09:34:39 ajacoutot Exp $
|
||||
--- backend/magicolor.c.orig Mon Apr 25 11:07:51 2011
|
||||
+++ backend/magicolor.c Mon Apr 25 11:08:15 2011
|
||||
@@ -53,6 +53,8 @@
|
||||
#include <math.h>
|
||||
#include <poll.h>
|
||||
|
||||
+#include <sys/socket.h>
|
||||
+
|
||||
|
||||
#if HAVE_LIBSNMP
|
||||
#include <net-snmp/net-snmp-config.h>
|
@ -22,3 +22,6 @@ and/or applications are added.
|
||||
SANE-BACKENDS comes complete with documentation, several backends,
|
||||
scanimage command line frontend, and networking support. For
|
||||
other/graphical frontends take a look at sane-frontends and XSane.
|
||||
|
||||
Available FLAVOR:
|
||||
snmp - build with net-snmp support (i.e. SNMP scanners support)
|
||||
|
Loading…
Reference in New Issue
Block a user