freebsd-ports/net/beanstalkd/Makefile
Emanuel Haupt ba9cbb6ed5 - Support staging
- Define DOCS option
2014-02-28 08:32:07 +00:00

39 lines
850 B
Makefile

# $FreeBSD$
PORTNAME= beanstalkd
PORTVERSION= 1.8
CATEGORIES= net
MASTER_SITES= http://cloud.github.com/downloads/kr/beanstalkd/
MAINTAINER= vsevolod@FreeBSD.org
COMMENT= Fast, distributed, in-memory workqueue service
LICENSE= MIT
USES= gmake
USE_RC_SUBR= beanstalkd
MAKE_ARGS+= CC="${CC}" CFLAGS="${CFLAGS}"
PLIST_FILES= bin/beanstalkd man/man1/beanstalkd.1.gz
SUB_LIST+= RC_SUBR_SUFFIX=${RC_SUBR_SUFFIX}
PORTDOCS= protocol.txt
OPTIONS_DEFINE= DOCS
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/beanstalkd ${STAGEDIR}${PREFIX}/bin
${INSTALL_MAN} ${WRKSRC}/doc/${PORTNAME}.1 \
${STAGEDIR}${MANPREFIX}/man/man1
@${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in ${PORTDOCS}
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${STAGEDIR}${DOCSDIR}
.endfor
test: configure
@cd ${WRKSRC} && ${GMAKE} ${MAKE_ARGS} check
regression-test: test
.include <bsd.port.mk>