freebsd-ports/databases/memcached/Makefile
Muhammad Moinur Rahman bbab7f59e9 */*: Sunset 12.4-RELEASE/12-STABLE from ports tree
- Remove all references to defunct ARCH arm
- Remove all references to defunct ARCH sparc64
- Remove x11-drivers/xf86-video-sunffb which requires defunct sparc64
  ARCH
- Remove sysutils/afbinit requires defunct sparc64 ARCH
- Remove all references to bktr driver
- Remove all references to defunct FreeBSD_12
- Remove all references to OSVERSION/OSREL corresponding to 12
- Remove conditionals in Mk/Uses/cabal.mk
- Remove sparc reference from Mk/Uses/qt-dist.mk
- Remove BROKEN_sparc64/NOT_FOR_ARCH=sparc64
- Remove BROKEN_FreeBSD_12* from:
- Remove OpenSSL patches from:
- Remove conditional flags for OSVERSION >= 1300000 to fixed flags.
  Also move conditional flags for non sparc64/arm ARCH to fixed flags.

Reviewed by:	brooks, jbeich, rene, salvadore
Differential Revision: https://reviews.freebsd.org/D42068
2023-12-31 01:37:05 +01:00

78 lines
1.8 KiB
Makefile

PORTNAME= memcached
PORTVERSION= 1.6.22
CATEGORIES= databases
MASTER_SITES= http://www.memcached.org/files/ \
GENTOO
MAINTAINER= bofh@FreeBSD.org
COMMENT= High-performance distributed memory object cache system
WWW= https://memcached.org/
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libevent.so:devel/libevent
USES= autoreconf cpe pkgconfig shebangfix
USE_CSTD= c99
USE_RC_SUBR= memcached
SHEBANG_FILES= scripts/memcached-tool
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --disable-coverage \
--program-prefix= \
--with-libevent=${LOCALBASE}
MAKE_JOBS_UNSAFE= yes
SUB_LIST+= RC_SUBR_SUFFIX=${RC_SUBR_SUFFIX}
# Dtrace option disabled until it is fixed upstream
OPTIONS_DEFINE= DOCS SASL
OPTIONS_DEFINE_amd64= DTRACE
OPTIONS_DEFINE_powerpc64= DTRACE
OPTIONS_DEFINE_powerpc64le= DTRACE
OPTIONS_DEFAULT= SASL
OPTIONS_DEFAULT_amd64= DTRACE
OPTIONS_DEFAULT_powerpc64= DTRACE
OPTIONS_DEFAULT_powerpc64le= DTRACE
DTRACE_DESC= Enable dtrace probes
SASL_DESC= Enable SASL Authentication
DOCS_BUILD_DEPENDS= xml2rfc:textproc/xml2rfc
DOCS_CONFIGURE_ENABLE= docs
DTRACE_CONFIGURE_ENABLE= dtrace
SASL_LIB_DEPENDS= libsasl2.so:security/cyrus-sasl2
SASL_CONFIGURE_ENABLE= sasl
SASL_CFLAGS= -I${LOCALBASE}/include
SASL_CPPFLAGS+= ${CFLAGS}
SASL_LDFLAGS= -L${LOCALBASE}/lib
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD
CONFIGURE_ARGS+= --enable-tls
USES+= ssl
.endif
.if ${ARCH} == amd64 || ${ARCH:Mpowerpc64*}
CONFIGURE_ARGS+= --enable-64bit
.endif
post-install:
${INSTALL_SCRIPT} ${WRKSRC}/scripts/memcached-tool ${STAGEDIR}${PREFIX}/bin
post-install-DOCS-on:
${MKDIR} ${STAGEDIR}${DOCSDIR}
.for i in protocol-binary-range.txt protocol-binary.txt protocol.txt \
readme.txt threads.txt
${INSTALL_DATA} ${WRKSRC}/doc/${i} ${STAGEDIR}${DOCSDIR}
.endfor
regression-test: test
test: build
${MAKE} -C ${WRKSRC} test
.include <bsd.port.post.mk>