summaryrefslogtreecommitdiff
path: root/databases/kyototycoon/Makefile
blob: e97a14aa7e7528400a755ff437cf172f3095fd47 (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
52
53
54
# Created by: Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
# $FreeBSD$

PORTNAME=	kyototycoon
PORTVERSION=	0.9.56
CATEGORIES=	databases
MASTER_SITES=	http://fallabs.com/${PORTNAME}/pkg/ \
		LOCAL/sunpoet

MAINTAINER=	sunpoet@FreeBSD.org
COMMENT=	A handy cache/storage server

LICENSE=	GPLv3

LIB_DEPENDS=	kyotocabinet:${PORTSDIR}/databases/kyotocabinet

OPTIONS_DEFINE=	DOCS

CONFIGURE_ARGS=	--enable-profile --enable-uyield
GNU_CONFIGURE=	yes
MAKE_ARGS=	PCDIR="${PREFIX}/libdata/pkgconfig"
USE_GMAKE=	yes
USE_LDCONFIG=	yes

MAN1=		ktremotemgr.1 \
		ktremotetest.1 \
		ktserver.1 \
		kttimedmgr.1 \
		kttimedtest.1 \
		ktutilmgr.1 \
		ktutilserv.1 \
		ktutiltest.1

.include <bsd.port.options.mk>

post-patch:
.if empty(PORT_OPTIONS:MDOCS)
	@${REINPLACE_CMD} -e '/DOCDIR/d' ${WRKSRC}/Makefile.in
.endif

post-configure:
	@${REINPLACE_CMD} -e 's|-lpthread|${PTHREAD_LIBS}|' ${WRKSRC}/Makefile

post-install:
.if ${PORT_OPTIONS:MDOCS}
	${FIND} ${DOCSDIR}/ -type d -exec ${CHMOD} 755 '{}' \;
	${FIND} ${DOCSDIR}/ -type f -exec ${CHMOD} 444 '{}' \;
	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DOCSDIR}/
.endif

regression-test test: build
	cd ${WRKSRC}/ && ${SETENV} ${MAKE_ENV} ${MAKE} check

.include <bsd.port.mk>