aboutsummaryrefslogtreecommitdiffstats
path: root/databases/memcached/Makefile
blob: d3cd5e612612d33b1ebb6509d719ab90b2f21cd4 (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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# New ports collection makefile for:    memcached
# Date created:     July 21, 2003
# Whom:         Sean Chittenden <seanc@FreeBSD.org>
#
# $FreeBSD$
#

PORTNAME=   memcached
PORTVERSION=    1.4.5
PORTREVISION=   2
CATEGORIES= databases
MASTER_SITES=   ${MASTER_SITE_GOOGLE_CODE} \
        ${MASTER_SITE_GENTOO}
MASTER_SITE_SUBDIR= distfiles

MAINTAINER= mnag@FreeBSD.org
COMMENT=    High-performance distributed memory object cache system

LIB_DEPENDS=    event-1.4:${PORTSDIR}/devel/libevent

CONFLICTS=  memcached-1.2*

USE_RC_SUBR=    memcached
GNU_CONFIGURE=  YES
CONFIGURE_ARGS= --with-libevent=${LOCALBASE} --program-prefix=

OPTIONS=    REPCACHED   "Enable data replication feature"   off \
        SASL        "Enable SASL support"           off

MAN1=       memcached.1

PLIST_FILES=    bin/memcached \
        bin/memcached-tool \
        include/memcached/protocol_binary.h
PLIST_DIRS= include/memcached

PORTDOCS=   protocol.txt threads.txt readme.txt

.include <bsd.port.pre.mk>

.if ${OSVERSION} >= 800000
CFLAGS+=    -fstack-protector
.endif

.if defined(WITH_REPCACHED)
# WWW: http://repcached.lab.klab.org/
PATCH_SITES+=       http://mdounin.ru/files/
PATCH_DIST_STRIP+=  -p1
PATCHFILES+=        repcached-2.3-${PORTVERSION}.patch.gz
CONFIGURE_ARGS+=    --enable-replication
.endif

.if defined(WITH_SASL) && !defined(WITHOUT_SASL)
LIB_DEPENDS+=       sasl2.2:${PORTSDIR}/security/cyrus-sasl2
CONFIGURE_ARGS+=    --enable-sasl
CFLAGS+=        -I${LOCALBASE}/include
CPPFLAGS=       ${CFLAGS}
LDFLAGS+=       -L${LOCALBASE}/lib
CONFIGURE_ENV+=     CPPFLAGS="${CPPFLAGS}" LDFLAGS="${LDFLAGS}"
.else
CONFIGURE_ARGS+=    --disable-sasl
.endif

post-configure:
    @${REINPLACE_CMD} -e 's#doc/memcached.1##' ${WRKSRC}/Makefile

post-install:
    ${INSTALL_SCRIPT} ${WRKSRC}/scripts/memcached-tool ${PREFIX}/bin
    ${INSTALL_MAN} ${WRKSRC}/doc/${MAN1} ${MAN1PREFIX}/man/man1
.if !defined(NOPORTDOCS)
    @${ECHO_MSG} "===>   Installing documentation for ${PKGNAME}"
    @${MKDIR} ${DOCSDIR}
.for i in ${PORTDOCS}
    ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${DOCSDIR}
.endfor
.endif

test:
    ${MAKE} -C ${WRKSRC} test

.include <bsd.port.post.mk>
rrect MASTERSITES.demon2001-02-221-3/+1 * Spaces -> tabs in ports/x11-fm.olgeni2001-02-061-1/+1 * Update to version 4.4.0.demon2001-01-076-12/+23 * Change MAINTAINER field.demon2000-11-131-1/+1 * Eliminate WRKSRC=${WRKDIR}/${PKGNAME} lines, as these will break whenasami2000-09-251-2/+1 * png library number has bumped from 3 to 4.alex2000-07-191-1/+1 * Reorder MASTER_SITES because distfile on MASTER_SITE_SUNSITE appears to besobomax2000-07-131-2/+2 * Use the jpeg and png libraries from the port's collection.steve2000-07-082-2/+62 * - Use MASTER_SITE_SUNSITE to MASTER_SITESsobomax2000-06-231-3/+3 * Update with the new PORTNAME/PORTVERSION variablescpiazza2000-04-101-3/+3 * Update port to 4.2.1jedgar2000-02-186-43/+67 * $Id$ -> $FreeBSD$peter1999-08-311-1/+1 * Too many WWW:'s in the world, too many WWW:'s take one down and pass itmharo1999-05-031-1/+1