aboutsummaryrefslogtreecommitdiff
path: root/comms/openzwave/Makefile
blob: 001c75e8ed4c4efdef6ad296431414f8624a4030 (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
# Created by: Johan Strom <johan@stromnet.se>

PORTNAME=	openzwave
PORTVERSION=	1.4.3254
CATEGORIES=	comms

MAINTAINER=	johan@stromnet.se
COMMENT=	Open-source interface to Z-Wave networks

LICENSE=	LGPL20
LICENSE_FILE=	${WRKSRC}/license/license.txt

USES=		gmake iconv pkgconfig
USE_GITHUB=	yes
USE_LDCONFIG=	yes

GH_ACCOUNT=	OpenZWave
GH_PROJECT=	open-zwave
GH_TAGNAME=	f339aa6

CFLAGS+=	-Wno-error
MAKE_ARGS=	VERSION_REV=${PORTVERSION:E} LIBDIR=${WRKSRC}

OPTIONS_DEFINE=	DOCS DOXYGEN
OPTIONS_SUB=	yes

DOXYGEN_BUILD_DEPENDS=	doxygen:devel/doxygen
DOXYGEN_IMPLIES=	DOCS
DOXYGEN_MAKE_ARGS=	ENABLE_DOCS=1 docdir=${DOCSDIR}
DOXYGEN_PORTDOCS=	*

post-install:
	${MV} ${STAGEDIR}${ETCDIR} ${STAGEDIR}${DATADIR}
	${STRIP_CMD} ${STAGEDIR}${LOCALBASE}/lib/libopenzwave.so.1.4
	${STRIP_CMD} ${STAGEDIR}${LOCALBASE}/bin/MinOZW

post-install-DOXYGEN-on:
	${RM} ${STAGEDIR}${DOCSDIR}/Doxyfile.in

.include <bsd.port.mk>