aboutsummaryrefslogtreecommitdiff
path: root/graphics/sane-backends/Makefile
blob: fb9c50d5b18b415dea8010274fa56333d49fded8 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
# Created by: gary@hotlava.com

PORTNAME=	sane-backends
DISTVERSION=	1.0.32
PORTREVISION=	2
CATEGORIES=	graphics
MASTER_SITES=	https://gitlab.com/sane-project/backends/uploads/104f09c07d35519cc8e72e604f11643f/

MAINTAINER=	vvd@unislabs.com
COMMENT=	API for accessing scanners, digital cameras, frame grabbers, etc

LICENSE=	GPLv2+
LICENSE_FILE=	${WRKSRC}/COPYING

LIB_DEPENDS=	libpng.so:graphics/png \
		libtiff.so:graphics/tiff

USES=		compiler:c++11-lang gmake gnome jpeg libtool localbase:ldflags \
		pathfix pkgconfig python:build
USE_GNOME=	libxml2
USE_LDCONFIG=	yes
USE_RC_SUBR=	saned

GNU_CONFIGURE=	yes
CONFIGURE_ARGS=	--disable-locking \
		--enable-pthread \
		--without-systemd
INSTALL_TARGET=	install-strip

SUB_FILES=	pkg-message

USERS=		saned
GROUPS=		saned

PLIST_SUB=	SOVERSION=${DISTVERSION}

OPTIONS_DEFINE=		AVAHI DOCS GPHOTO IEEE1284 IPV6 NLS SNMP USB V4L
OPTIONS_DEFAULT=	AVAHI GPHOTO USB
OPTIONS_SUB=		yes

IEEE1284_DESC=	Parallel port support via libieee1284
USB_DESC=	USB support

AVAHI_LIB_DEPENDS=		libavahi-client.so:net/avahi-app \
				libcurl.so:ftp/curl \
				libpoppler-glib.so:graphics/poppler-glib
AVAHI_USE=			GNOME=cairo,glib20
AVAHI_CONFIGURE_WITH=		avahi libcurl
GPHOTO_LIB_DEPENDS=		libgphoto2.so:graphics/libgphoto2
GPHOTO_CONFIGURE_WITH=		gphoto2
IEEE1284_LIB_DEPENDS=		libieee1284.so:sysutils/libieee1284
IEEE1284_CONFIGURE_ENV_OFF=	sane_cv_use_libieee1284=no
IPV6_CONFIGURE_ENABLE=		ipv6
NLS_USES=			gettext
NLS_CONFIGURE_ENABLE=		nls
SNMP_LIB_DEPENDS=		libnetsnmp.so:net-mgmt/net-snmp
SNMP_CONFIGURE_WITH=		snmp
USB_CONFIGURE_WITH=		usb
V4L_LIB_DEPENDS=		libv4l1.so:multimedia/libv4l
V4L_CONFIGURE_WITH=		v4l

.include <bsd.port.mk>