aboutsummaryrefslogtreecommitdiffstats
path: root/databases/flare/Makefile
blob: c6cd60266c1182fbd4056ad0cbd1a2140420522f (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
# New ports collection makefile for:    flare
# Date created:             2010-05-29
# Whom:                 Norikatsu Shigemura <nork@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   flare
PORTVERSION=    1.0.9
PORTREVISION=   3
CATEGORIES= databases
MASTER_SITES=   http://labs.gree.jp/data/source/
EXTRACT_SUFX=   .tgz

MAINTAINER= nork@FreeBSD.org
COMMENT=    Flare - distributed and persistent key-value storage

LIB_DEPENDS=    boost_program_options.4:${PORTSDIR}/devel/boost-libs \
        tokyocabinet.9:${PORTSDIR}/databases/tokyocabinet

LICENSE=    GPLv2
LICENSE_FILE=   ${WRKSRC}/COPYING

GNU_CONFIGURE=  yes
CPPFLAGS+=  -I${LOCALBASE}/include -DHAVE_KQUEUE
LDFLAGS+=   -L${LOCALBASE}/lib

USE_RC_SUBR=    flared flarei
SUB_FILES=  pkg-message
MAKE_JOBS_SAFE= yes

post-install:
    @${INSTALL} -d ${_BINOWNGRP} -m 0750 /var/db/flare
    @${INSTALL_DATA} ${WRKSRC}/etc/flared.conf ${PREFIX}/etc/flared.conf-dist
    @[ -f ${PREFIX}/etc/flared.conf ] || \
        ${CP} -p ${PREFIX}/etc/flared.conf-dist ${PREFIX}/etc/flared.conf
    @${INSTALL_DATA} ${WRKSRC}/etc/flarei.conf ${PREFIX}/etc/flarei.conf-dist
    @[ -f ${PREFIX}/etc/flarei.conf ] || \
        ${CP} -p ${PREFIX}/etc/flarei.conf-dist ${PREFIX}/etc/flarei.conf
    @${CAT} ${PKGMESSAGE}

.include <bsd.port.pre.mk>

.if ${ARCH} == "sparc64"
BROKEN=     Does not compile on sparc64
.endif

# NOT TESTED YET
#CONFIGURE_ARGS+=--enable-mysql-replication
#CONFIGURE_ARGS+=--enable-flarefs --with-fuse=${LOCALBASE}
#CONFIGURE_ARGS+=--enable-memory-allocation-check

.include <bsd.port.post.mk>