aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libsigrok/Makefile
blob: 7831a45a9970e68b41282e78d7c28e66a64a522c (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
# Created by: Uffe Jakobsen <uffe@uffe.org>
# $FreeBSD$

PORTNAME=   libsigrok
PORTVERSION=    0.3.0
PORTREVISION=   1
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>