1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-27 00:57:50 +00:00
freebsd-ports/databases/memcached/Makefile
Sergey Matveychuk 6e8a5cf1d4 - Update to 1.1.12
- rcNGfy

Submitted by:	glebius
Approved by:	maintainer timeout (1 month)
2005-07-11 09:01:50 +00:00

48 lines
1.2 KiB
Makefile

# New ports collection makefile for: memcached
# Date created: July 21, 2003
# Whom: Sean Chittenden <seanc@FreeBSD.org>
#
# $FreeBSD$
#
PORTNAME= memcached
PORTVERSION= 1.1.12
CATEGORIES= databases
MASTER_SITES= http://www.danga.com/memcached/dist/
MAINTAINER= seanc@FreeBSD.org
COMMENT= High-performance distributed memory object cache system
BUILD_DEPENDS+= ${LOCALBASE}/lib/libevent.a:${PORTSDIR}/devel/libevent
USE_REINPLACE= YES
GNU_CONFIGURE= YES
CONFIGURE_ARGS+= --with-libevent=${LOCALBASE} --program-prefix=
MAN1= memcached.1
DOCS_LIST= memory_management.txt protocol.txt
USE_RC_SUBR= yes
SED_SCRIPT= -e 's,%%PREFIX%%,${PREFIX},g' \
-e 's,%%RC_SUBR%%,${RC_SUBR},g'
post-configure:
@${REINPLACE_CMD} -e 's#doc/memcached.1##' ${WRKSRC}/Makefile
post-build:
@${SED} ${SED_SCRIPT} ${FILESDIR}/memcached.sh > ${WRKDIR}/memcached.sh
post-install:
${INSTALL_MAN} ${MAN1:S!^!${WRKSRC}/doc/!} ${MAN1PREFIX}/man/man1
${INSTALL_SCRIPT} ${WRKDIR}/memcached.sh ${PREFIX}/etc/rc.d/memcached.sh
.ifndef(NOPORTDOCS)
@${ECHO_MSG} "===> Installing documentation for ${PKGNAME}"
${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${DOCS_LIST:S!^!${WRKSRC}/doc/!} ${DOCSDIR}
.endif
.include <bsd.port.mk>