summaryrefslogtreecommitdiff
path: root/devel/libsigrok/Makefile
blob: 0f527d46802b5a3722585dfb6678876f98071f09 (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
# Created by: Uffe Jakobsen <uffe@uffe.org>

PORTNAME=	libsigrok
PORTVERSION=	0.5.2
CATEGORIES=	devel
MASTER_SITES=	http://sigrok.org/download/source/libsigrok/

MAINTAINER=	bsam@FreeBSD.org
COMMENT=	Framework for hardware logic analyzers, core library

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

BUILD_DEPENDS=	doxygen:devel/doxygen
LIB_DEPENDS=	libftdi1.so:devel/libftdi1 \
		libserialport.so:devel/libserialport \
		libvisa.so:devel/librevisa \
		libzip.so:archivers/libzip

USES=		compiler:c11 gnome pathfix libtool pkgconfig

GNU_CONFIGURE=	yes
INSTALL_TARGET=	install-strip
MAKE_JOBS_UNSAFE=	yes
USE_LDCONFIG=	yes
USE_GNOME=	glibmm

post-patch:
# libusb can be disabled via src.conf(5), so detect via pkg-config
	@${REINPLACE_CMD} -e 's/\(libusb-1\.0\) >= 1\.0\.[0-9]*/\1/' \
		-e '/\*freebsd\*/,/;;/d' \
		${WRKSRC}/configure

.include <bsd.port.mk>