rpe 9a8b5ccd06 Change the shebang line from /bin/sh to /bin/ksh in all ports rc.d
daemon scripts and bump subpackages that contain the *.rc scripts.

discussed with and OK aja@
OK tb
2018-01-11 19:27:01 +00:00

48 lines
1.1 KiB
Makefile

# $OpenBSD: Makefile,v 1.41 2018/01/11 19:27:04 rpe Exp $
COMMENT= distributed memory object caching system
DISTNAME= memcached-1.5.3
CATEGORIES= misc
REVISION= 0
HOMEPAGE= https://www.memcached.org/
MAINTAINER= Giovanni Bechis <giovanni@openbsd.org>
# BSD
PERMIT_PACKAGE_CDROM= Yes
# uses pledge()
WANTLIB += c event pthread
FLAVOR?=
FLAVORS= sasl
MASTER_SITES= http://memcached.org/files/
CONFIGURE_STYLE= gnu
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib"
CONFIGURE_ARGS= --with-libevent=/usr \
--disable-coverage \
--disable-docs
TEST_TARGET= test
TEST_DEPENDS= devel/p5-Test-MockSleep
.if ${FLAVOR:Msasl}
CONFIGURE_ARGS+= --enable-sasl
LIB_DEPENDS= security/cyrus-sasl2
WANTLIB+= sasl2
.else
CONFIGURE_ARGS+= --disable-sasl
.endif
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/memcached
${INSTALL_DATA} ${WRKSRC}/doc/*.txt ${PREFIX}/share/doc/memcached
${INSTALL_SCRIPT} ${WRKSRC}/scripts/memcached-tool ${PREFIX}/bin/memcached-tool
${INSTALL_DATA} ${WRKSRC}/scripts/memcached-tool.1 ${PREFIX}/man/man1/
.include <bsd.port.mk>