# Created by: Alex Samorukov <samm@os2.kiev.ua>
# $FreeBSD: tags/RELEASE_11_0_0/databases/xtrabackup/Makefile 414935 2016-05-10 10:58:36Z robak $

PORTNAME=	xtrabackup
PORTVERSION=	2.3.4
CATEGORIES=	databases
MASTER_SITES=	https://www.percona.com/downloads/XtraBackup/Percona-XtraBackup-${PORTVERSION}/source/tarball/
DISTNAME=	percona-${PORTNAME}-${PORTVERSION}

MAINTAINER=	aleksandr.kuzminsky@percona.com
COMMENT=	OpenSource version of InnoDB backup with support of Percona extensions

LICENSE=	GPLv2
LICENSE_FILE=	${WRKSRC}/COPYING

BROKEN_powerpc64=	Does not build

# quilt is required by build.sh
BUILD_DEPENDS=	bash:shells/bash \
		cmake:devel/cmake \
		bison:devel/bison \
		xxd:editors/vim-lite
LIB_DEPENDS=	libev.so:devel/libev \
		libgcrypt.so:security/libgcrypt \
		libgpg-error.so:security/libgpg-error
RUN_DEPENDS=	p5-DBD-mysql>=0:databases/p5-DBD-mysql \
		qpress:archivers/qpress

# autotool is in use for 5.1 builds
USES=		alias autoreconf:build cpe gettext cmake libtool perl5 shebangfix
CPE_VENDOR=	percona
SHEBANG_FILES=	storage/innobase/xtrabackup/xbcloud_osenv.sh

PLIST_FILES=	bin/xtrabackup bin/xbstream bin/innobackupex bin/xbcrypt \
		bin/xbcloud bin/xbcloud_osenv

.include <bsd.port.mk>
