freebsd-ports/databases/libmemcached/Makefile
Mathieu Arnold cf118ccf87
One more small cleanup, forgotten yesterday.
Reported by:	lwhsu
2021-04-07 10:09:01 +02:00

57 lines
1.5 KiB
Makefile

PORTNAME= libmemcached
PORTVERSION= 1.0.18
PORTREVISION= 7
CATEGORIES= databases
MASTER_SITES= http://launchpad.net/${PORTNAME}/1.0/${PORTVERSION}/+download/
MAINTAINER= ports@FreeBSD.org
COMMENT= C and C++ client library to the memcached server
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libevent.so:devel/libevent
TEST_DEPENDS= memcached:databases/memcached
USES= autoreconf gmake libtool localbase pathfix pkgconfig
USE_LDCONFIG= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --without-memcached \
--without-sphinx-build \
--enable-libmemcachedprotocol
TEST_TARGET= check
LIBS+= -lexecinfo
CXXFLAGS+= -D__STDC_CONSTANT_MACROS -pthread
OPTIONS_DEFINE= DEBUG MEMASLAP SASL
OPTIONS_DEFAULT= MEMASLAP SASL MURMUR FNV64
OPTIONS_GROUP= HASH
OPTIONS_GROUP_HASH= FNV64 HSIEH MURMUR
MEMASLAP_DESC= Load generation and benchmark tool
FNV64_DESC= Enable fnv64 hashing
HSIEH_DESC= Enable hsieh hashing
MURMUR_DESC= Enable murmur hashing
DEBUG_CONFIGURE_ENABLE= debug
MEMASLAP_CONFIGURE_ENABLE= memaslap
FNV64_CONFIGURE_ENABLE= fnv64_hash
HSIEH_CONFIGURE_ENABLE= hsieh_hash
MURMUR_CONFIGURE_ENABLE= murmur_hash
SASL_CONFIGURE_ENABLE= sasl
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
PATHFIX_MAKEFILEIN= include.am
post-patch:
@${REINPLACE_CMD} -e '/^LDFLAGS *=/ s/$$/ $${LTLIBSASL2}/' \
${WRKSRC}/Makefile.in
@${REINPLACE_CMD} '/MAKE.*man/d' ${WRKSRC}/man/include.am
post-install:
@${STRIP_CMD} ${STAGEDIR}${PREFIX}/lib/*.so.*
.include <bsd.port.mk>