aboutsummaryrefslogtreecommitdiff
path: root/devel/libqb/Makefile
blob: e053b4159582d97e785cdff01a684343d7e1f3e6 (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
# Created by: David Shane Holden <dpejesh@yahoo.com>

PORTNAME=		libqb
DISTVERSIONPREFIX=	v
DISTVERSION=		2.0.3
CATEGORIES=		devel

MAINTAINER=		egypcio@FreeBSD.org
COMMENT=		High performance logging, tracing, ipc, and polling library

LICENSE=		LGPL21
LICENSE_FILE=		${WRKSRC}/COPYING

LIB_DEPENDS=		libxml2.so:textproc/libxml2
TEST_DEPENDS=		checkmk:devel/check

GROUPS=			haclient

QB_SOCKET_DIR?=		/var/run/qb
PLIST_SUB+=		QB_SOCKET_DIR=${QB_SOCKET_DIR}

USES=			autoreconf gmake libtool pathfix pkgconfig python
USE_BINUTILS=		yes
USE_GITHUB=		yes
USE_LDCONFIG=		yes

GH_ACCOUNT=		ClusterLabs

GNU_CONFIGURE=		yes
CONFIGURE_ARGS=		--with-socket-dir=${QB_SOCKET_DIR} \
			PACKAGE_STRING="${PORTNAME} ${PORTVERSION}" \
			PACKAGE_VERSION=${PORTVERSION}
LDFLAGS+=		-B${LOCALBASE}/bin
PATHFIX_MAKEFILEIN=	Makefile.am

INSTALL_TARGET=		install-strip
TEST_TARGET=		check

OPTIONS_DEFINE=		DOCS DOXYGEN
OPTIONS_SUB=		yes

DOXYGEN_IMPLIES=	DOCS
DOXYGEN_BUILD_DEPENDS=	doxygen:devel/doxygen

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

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

.include <bsd.port.mk>