openbsd-ports/graphics/sane-backends/Makefile
ajacoutot fcbe5f3ae2 Sync dependencies after move from libusb to libusb-compat and fix a
couple of fallouts. Note that these ports are only the ones that used to
have a direct dependency on devel/libusb so there may be some other
hidden ports that may break because of the switch. If that's the case,
no need to start ranting all over but instead tell me which one(s)
break. Thanks.

Note: sysutils/nut hasn't been fixed yet but will be today.
2011-11-13 13:54:04 +00:00

72 lines
1.6 KiB
Makefile
Executable File

# $OpenBSD: Makefile,v 1.48 2011/11/13 13:54:04 ajacoutot Exp $
COMMENT= API for accessing scanners, backends
DISTNAME= sane-backends-1.0.22
REVISION= 7
SHARED_LIBS= sane 2.0 # .1.0
CATEGORIES= graphics
HOMEPAGE= http://www.sane-project.org/
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
# GPLv2
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += c jpeg m tiff usb z pthread usb-1.0
MASTER_SITES= ftp://ftp.sane-project.org/pub/sane/${DISTNAME}/ \
ftp://ftp.sane-project.org/pub/sane/old-versions/${DISTNAME}/ \
ftp://ftp2.sane-project.org/pub/sane/${DISTNAME}/
LIB_DEPENDS= graphics/tiff \
devel/libusb-compat
FLAVORS= snmp
FLAVOR?=
USE_LIBTOOL= Yes
USE_GMAKE= Yes
USE_GROFF= Yes
NO_REGRESS= Yes
CONFIGURE_STYLE=gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib -pthread" \
ac_cv_path_MAKEDEPEND="no"
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--sbindir=${PREFIX}/libexec \
--with-docdir=${PREFIX}/share/doc/sane-backends \
--localstatedir=/var/spool \
--without-gphoto2 \
--with-group=553 \
--disable-latex
# XXX doesn't work
#CONFIGURE_ARGS+=--enable-avahi
.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:
# removing the microtek2 backend which needs a Linux kernel module
find ${PREFIX} -name \*microtek2\* | xargs rm
cp -R ${WRKSRC}/tools/openbsd/ \
${PREFIX}/share/examples/sane-backends/hotplug
.include <bsd.port.mk>