summaryrefslogtreecommitdiff
path: root/misc/ola/Makefile
blob: b62a7e2b874b4258e6236e3020d20d264380ae93 (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
40
41
42
43
44
PORTNAME=	ola
DISTVERSION=	0.10.9
PORTREVISION=	10
CATEGORIES=	misc
MASTER_SITES=	https://github.com/OpenLightingProject/ola/releases/download/${DISTVERSION}/

PATCH_SITES=	https://github.com/OpenLightingProject/${PORTNAME}/commit/
PATCHFILES+=	321731ce73be4ea79adb2174591ce94695d3e85b.patch:-p1
PATCHFILES+=	4006f2129f0a6061d59fe5892a2a17c53699a31a.patch:-p1

MAINTAINER=	yuri@FreeBSD.org
COMMENT=	Open Lighting Architecture: framework for lighting control information
WWW=		https://www.openlighting.org/ola/ \
		https://github.com/OpenLightingProject/ola

LICENSE=	GPLv2+

LIB_DEPENDS=	libavahi-common.so:net/avahi-app \
		libftdi1.so:devel/libftdi1 \
		libmicrohttpd.so:www/libmicrohttpd \
		libprotobuf.so:devel/protobuf3 \
		libuuid.so:misc/libuuid
TEST_DEPENDS=	cppunit>0:devel/cppunit

USES=		bison gmake libtool localbase pkgconfig
USE_LDCONFIG=	yes

LDFLAGS+=	-lprotobuf # workaround for https://github.com/OpenLightingProject/ola/issues/1871

GNU_CONFIGURE=	yes

CONFIGURE_ARGS=		--disable-unittests --disable-examples
CONFIGURE_ARGS+=	--disable-fatal-warnings # see https://github.com/OpenLightingProject/ola/issues/1962

TEST_TARGET=	check
INSTALL_TARGET=	install-strip
TESTING_UNSAFE=	1 test fails, see https://github.com/OpenLightingProject/ola/issues/1872

do-test:
	@cd ${WRKSRC} && \
		${SETENV} ${MAKE_ENV} ./configure ${CONFIGURE_ARGS} --enable-unittests && \
		${SETENV} ${MAKE_ENV} ${GMAKE} ${TEST_TARGET}

.include <bsd.port.mk>