aboutsummaryrefslogtreecommitdiff
path: root/multimedia/aravis/Makefile
blob: f86ab6d7d4babac4736c80c93f8deec43f526559 (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
PORTNAME=	aravis
DISTVERSION=	0.8.34
CATEGORIES=	multimedia

MAINTAINER=	ports@FreeBSD.org
COMMENT=	Camera control and image acquisition viewer
WWW=		https://github.com/AravisProject/aravis/

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

LIB_DEPENDS=	libaravis-0.8.so:devel/libaravis \
		libnotify.so:devel/libnotify

USES=		gettext gnome gstreamer meson pkgconfig
USE_GITHUB=	yes
GH_ACCOUNT=	AravisProject
USE_GNOME=	cairo glib20 gtk30 intltool introspection:build

MESON_ARGS=	-Ddocumentation=disabled \
		-Dgst-plugin=disabled \
		-Dintrospection=enabled \
		-Dpacket-socket=disabled \
		-Dtests=false \
		-Dusb=disabled \
		-Dviewer=enabled

post-patch:
	@${REINPLACE_CMD} -e "s|subdir ('src')|aravis_dependencies += dependency ('aravis-0.8', version: '>=0.8', required: true)|g" \
		-e 's|meson.override_dependency.*||g' \
		${WRKSRC}/meson.build
	@${REINPLACE_CMD} -e "s|.*aravis_library.*||g" \
		-e "s|library_inc|include_directories('../src')|g" \
		${WRKSRC}/viewer/meson.build

.include <bsd.port.mk>