1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00
freebsd-ports/databases/memcached/Makefile
Marcus Alves Grando c9e35e557f - Update to 1.2.5
- Add option to compile with repcached patch

PR:		122681
Submitted by:	Tomoyuki Sakurai <cherry___trombik.org>
2008-04-13 03:00:55 +00:00

63 lines
1.5 KiB
Makefile

# New ports collection makefile for: memcached
# Date created: July 21, 2003
# Whom: Sean Chittenden <seanc@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= memcached
PORTVERSION= 1.2.5
CATEGORIES= databases
MASTER_SITES= http://www.danga.com/memcached/dist/ \
${MASTER_SITE_GENTOO}
MASTER_SITE_SUBDIR= distfiles
MAINTAINER= mnag@FreeBSD.org
COMMENT= High-performance distributed memory object cache system
LIB_DEPENDS= event-1.3e:${PORTSDIR}/devel/libevent
USE_RC_SUBR= memcached
GNU_CONFIGURE= YES
CONFIGURE_ARGS= --with-libevent=${LOCALBASE} --program-prefix=
CONFIGURE_TARGET= --build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
OPTIONS= REPCACHED "Enable data replication feature" off
MAN1= memcached.1
PLIST_FILES= bin/memcached \
bin/memcached-debug
PORTDOCS= memory_management.txt protocol.txt
.include <bsd.port.pre.mk>
.if defined(WITH_REPCACHED)
# WWW: http://repcached.lab.klab.org/
PATCH_SITES+= ${MASTER_SITE_SOURCEFORGE}
PATCH_SITE_SUBDIR= repcached
PATCH_DIST_STRIP+= -p1
REPCACHED_VERSION= 2.0
PATCHFILES+= repcached-${REPCACHED_VERSION}-${PORTVERSION}.patch.gz
CONFIGURE_ARGS+= --enable-replication --disable-threads
.endif
post-configure:
@${REINPLACE_CMD} -e 's#doc/memcached.1##' ${WRKSRC}/Makefile
post-install:
${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>