summaryrefslogtreecommitdiffstats
path: root/devel/libsigrok/Makefile
blob: 60b06086f278ec91732b251d02bfb8955e343dbe (plain)
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
# Created by: Uffe Jakobsen <uffe@uffe.org>
# $FreeBSD$

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

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

LICENSE=	GPLv3

LIB_DEPENDS=	libserialport.so:${PORTSDIR}/devel/libserialport \
		libzip.so:${PORTSDIR}/archivers/libzip

GNU_CONFIGURE=	yes
USES=		gmake pathfix libtool pkgconfig
USE_GNOME=	glib20
INSTALL_TARGET=	install-strip
MAKE_JOBS_UNSAFE=	yes
LDFLAGS+=	-L/usr/lib -lusb
USE_LDCONFIG=	yes

.include <bsd.port.pre.mk>

# Workaround for libusb not knowing LIBUSB_CLASS_APPLICATION
.if (${OSVERSION} >= 1100000 && ${OSVERSION} < 1100029) || (${OSVERSION} < 1000715)
CFLAGS+=	-DLIBUSB_CLASS_APPLICATION=0xfe
.endif

.include <bsd.port.post.mk>
OpenPOWER on IntegriCloud