blob: c35617f953c4082d8ff6d3240adeaba3569f8ff4 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
|
# Created by: Alex Samorukov <samm@freebsd.org>
# $FreeBSD$
PORTNAME= xtrabackup
PORTVERSION= 8.0.14
CATEGORIES= databases
MASTER_SITES= https://www.percona.com/downloads/Percona-XtraBackup-${PORTVERSION:R}/Percona-XtraBackup-${PORTVERSION}/source/tarball/ \
https://github.com/percona/percona-xtrabackup/archive/
PKGNAMESUFFIX= 8
DISTNAME= percona-${PORTNAME}-${PORTVERSION}
MAINTAINER= eugene@zhegan.in
COMMENT= Open-source backup tool for InnoDB and XtraDB
LICENSE= GPLv2
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= xxd:editors/vim-console \
boost-libs>=1.72.0:devel/boost-libs \
protobuf>=3.0:devel/protobuf \
rapidjson>=1.1.0:devel/rapidjson \
libevent>=2.1:devel/libevent
LIB_DEPENDS= libcurl.so:ftp/curl \
libev.so:devel/libev \
libgcrypt.so:security/libgcrypt \
libgpg-error.so:security/libgpg-error \
libicudata.so:devel/icu \
libunwind.so:devel/libunwind \
libzstd.so:archivers/zstd
RUN_DEPENDS= qpress:archivers/qpress
USES= bison cmake compiler:c++14-lang cpe pkgconfig ssl
CPE_VENDOR= percona
CMAKE_ARGS= -DBUILD_CONFIG:STRING=xtrabackup_release
.for component in EDITLINE ICU LIBEVENT PROTOBUF RAPIDJSON ZSTD
CMAKE_ARGS+= -DWITH_${component}:STRING=system
.endfor
post-patch:
# Delete bundled components so we won't accidentally use them, except LZ4
# which cannot be removed just yet
@${MV} ${WRKSRC}/extra/lz4 ${WRKSRC}
@${RM} -r ${WRKSRC}/extra/*
@${MV} ${WRKSRC}/lz4 ${WRKSRC}/extra
post-stage:
@${RM} -r ${STAGEDIR}${PREFIX}/docs \
${STAGEDIR}${PREFIX}/lib/plugin/debug
.include <bsd.port.mk>
|