aboutsummaryrefslogtreecommitdiff
path: root/devel/libqb/Makefile
blob: 886818ad2d40a994048421042249efd97f669bf7 (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
45
46
47
48
49
50
51
PORTNAME=		libqb
DISTVERSION=		2.0.8
CATEGORIES=		devel
MASTER_SITES=		https://github.com/ClusterLabs/${PORTNAME}/releases/download/v${DISTVERSION}/

MAINTAINER=		alster@vinterdalen.se
COMMENT=		High performance logging, tracing, ipc, and polling library
WWW=			https://github.com/ClusterLabs/libqb/wiki

LICENSE=		LGPL21
LICENSE_FILE=		${WRKSRC}/COPYING

TEST_DEPENDS=		checkmk:devel/check

USES=			cpe gmake gnome libtool pkgconfig python tar:xz
CPE_VENDOR=		clusterlabs
USE_GNOME=		libxml2
USE_LDCONFIG=		yes

GNU_CONFIGURE=		yes
CONFIGURE_ARGS=		--with-socket-dir=${QB_SOCKET_DIR} \
			PACKAGE_STRING="${PORTNAME} ${DISTVERSION}" \
			PACKAGE_VERSION=${DISTVERSION}

INSTALL_TARGET=		install-strip
TEST_TARGET=		check

LDFLAGS+=		-B${LOCALBASE}/bin

GROUPS=			haclient

PLIST_SUB+=		QB_SOCKET_DIR=${QB_SOCKET_DIR}

OPTIONS_DEFINE=		DOCS DOXYGEN
OPTIONS_SUB=		yes

DOXYGEN_IMPLIES=	DOCS
DOXYGEN_BUILD_DEPENDS=	doxygen:devel/doxygen

QB_SOCKET_DIR?=		/var/run/qb

post-configure:
	${REINPLACE_CMD} -e 's/install: install-am/install:/g' ${WRKSRC}/doxygen2man/Makefile

post-configure-DOXYGEN-off:
	${REINPLACE_CMD} -e 's/doxygen2man docs//g' ${WRKSRC}/Makefile

post-install:
	${MKDIR} ${STAGEDIR}${QB_SOCKET_DIR}

.include <bsd.port.mk>