aboutsummaryrefslogtreecommitdiff
path: root/graphics/simple-scan/Makefile
blob: 79f519221c000b397033382667168becf4a229ad (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
PORTNAME=	simple-scan
PORTVERSION=	46.0
CATEGORIES=	graphics gnome
MASTER_SITES=	GNOME/sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+)\..*/\1/}
DIST_SUBDIR=	gnome

MAINTAINER=	gnome@FreeBSD.org
COMMENT=	Simple scanning utility
WWW=		https://gitlab.gnome.org/GNOME/simple-scan

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

BUILD_DEPENDS=	itstool:textproc/itstool
LIB_DEPENDS=	libgusb.so:devel/libgusb \
		libsane.so:graphics/sane-backends

USES=		gettext gnome meson pkgconfig python:build shebangfix tar:xz vala:build
USE_GNOME=	cairo gdkpixbuf2 gtk40 libadwaita
SHEBANG_FILES=	data/meson_compile_gschema.py
GLIB_SCHEMAS=	org.gnome.SimpleScan.gschema.xml

OPTIONS_DEFINE=	COLORD PACKAGEKIT WEBP
OPTIONS_DEFAULT=COLORD WEBP

COLORD_LIB_DEPENDS=	libcolord.so:graphics/colord

PACKAGEKIT_DESC=	Driver installation via PackageKit
PACKAGEKIT_LIB_DEPENDS=	libpackagekit-glib2.so:ports-mgmt/packagekit

WEBP_LIB_DEPENDS=	libwebp.so:graphics/webp

.for opt in COLORD PACKAGEKIT WEBP
post-patch-${opt}-off:
	@${REINPLACE_CMD} 's/^if ${opt:tl}_dep.*/if false/' \
		${WRKSRC}/src/meson.build
.endfor

.include <bsd.port.mk>