Update databases/postgresql12-server to version 12.2_2
[dports.git] / databases / memcached / Makefile
1 # Created by: Sean Chittenden <seanc@FreeBSD.org>
2 # $FreeBSD$
3
4 PORTNAME=       memcached
5 PORTVERSION=    1.6.2
6 CATEGORIES=     databases
7 MASTER_SITES=   http://www.memcached.org/files/ \
8                 GENTOO
9
10 MAINTAINER=     swills@FreeBSD.org
11 COMMENT=        High-performance distributed memory object cache system
12
13 LICENSE=        BSD3CLAUSE
14 LICENSE_FILE=   ${WRKSRC}/COPYING
15
16 BROKEN_mips=            fails to link: failed to merge target specific data of file /usr/lib/dtrace/drti.o
17 BROKEN_mips64=          fails to link: failed to merge target specific data of file /usr/lib/dtrace/drti.o
18
19 LIB_DEPENDS=    libevent.so:devel/libevent
20
21 CONFLICTS=      memcached-1.2*
22
23 USES=           cpe shebangfix autoreconf
24 SHEBANG_FILES=  scripts/memcached-tool
25
26 USE_RC_SUBR=    memcached
27 SUB_LIST+=      RC_SUBR_SUFFIX=${RC_SUBR_SUFFIX}
28
29 USE_CSTD=       c99
30 GNU_CONFIGURE=  yes
31 CONFIGURE_ARGS= --with-libevent=${LOCALBASE} \
32                 --program-prefix= \
33                 --disable-coverage
34
35 # Dtrace option disabled until it is fixed upstream
36 OPTIONS_DEFINE=         SASL DOCS DTRACE
37 OPTIONS_DEFAULT=        SASL DTRACE
38
39 .if !exists(/usr/sbin/dtrace)
40 OPTIONS_EXCLUDE+=       DTRACE
41 .endif
42
43 OPTIONS_EXCLUDE_i386=           DTRACE
44 # ld(1) fails to link probes: Relocations in generic ELF (EM: 0)
45 OPTIONS_EXCLUDE_aarch64=        DTRACE
46 OPTIONS_EXCLUDE_armv6=          DTRACE
47 OPTIONS_EXCLUDE_armv7=          DTRACE
48 # /tmp/conftest-4d18ad.s:2: Error: unknown pseudo-op: `.abiversion'
49 OPTIONS_EXCLUDE_powerpc64=      DTRACE
50
51 DTRACE_DESC=    Enable dtrace probes
52 SASL_DESC=      Enable SASL Authentication
53
54 DOCS_BUILD_DEPENDS=     xml2rfc:textproc/xml2rfc
55 DOCS_CONFIGURE_ENABLE=  docs
56
57 DTRACE_CONFIGURE_ENABLE=        dtrace
58
59 SASL_LIB_DEPENDS=       libsasl2.so:security/cyrus-sasl2
60 SASL_CONFIGURE_ENABLE=  sasl
61 SASL_CFLAGS=            -I${LOCALBASE}/include
62 SASL_CPPFLAGS+=         ${CFLAGS}
63 SASL_LDFLAGS=           -L${LOCALBASE}/lib
64
65 MAKE_JOBS_UNSAFE=       yes
66
67 .include <bsd.port.pre.mk>
68
69 .if ${ARCH} == x86_64
70 CONFIGURE_ARGS+=        --enable-64bit
71 .endif
72
73 # avoid triggering a bug in libdtrace, see illumos issue 6653
74 .if ${PORT_OPTIONS:MDTRACE}
75 CFLAGS+=                -no-integrated-as
76 .endif
77
78 post-install:
79         ${INSTALL_SCRIPT} ${WRKSRC}/scripts/memcached-tool ${STAGEDIR}${PREFIX}/bin
80
81 post-install-DOCS-on:
82         ${MKDIR} ${STAGEDIR}${DOCSDIR}
83 .for i in protocol-binary-range.txt protocol-binary.txt protocol.txt \
84                 readme.txt threads.txt
85         ${INSTALL_DATA} ${WRKSRC}/doc/${i} ${STAGEDIR}${DOCSDIR}
86 .endfor
87
88 regression-test: test
89 test: build
90         ${MAKE} -C ${WRKSRC} test
91
92 .include <bsd.port.post.mk>