aboutsummaryrefslogtreecommitdiff
path: root/databases/xtrabackup/Makefile
blob: 1f8f1d45968a3c11d9b520a04a2830c53cc6dcce (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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Created by: Alex Samorukov <samm@os2.kiev.ua>
# $FreeBSD$

PORTNAME=	xtrabackup
PORTVERSION=	2.1.4
CATEGORIES=	databases
MASTER_SITES=	http://www.percona.com/downloads/%SUBDIR%/
DISTNAME=	percona-${PORTNAME}-${DISTVERSIONPREFIX}${DISTVERSION}${DISTVERSIONSUFFIX}
DISTFILES=	percona-xtrabackup-${PORTVERSION}.tar.gz
EXTRACT_ONLY=	percona-xtrabackup-${PORTVERSION}.tar.gz

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

LICENSE=	GPLv2

# quilt is requiered by build.sh
BUILD_DEPENDS=	bash:${PORTSDIR}/shells/bash \
		quilt:${PORTSDIR}/devel/quilt \
		bison:${PORTSDIR}/devel/bison
LIB_DEPENDS=	gcrypt:${PORTSDIR}/security/libgcrypt \
		gpg-error:${PORTSDIR}/security/libgpg-error
RUN_DEPENDS=	p5-DBD-mysql>=0:${PORTSDIR}/databases/p5-DBD-mysql \
		qpress:${PORTSDIR}/archivers/qpress

# autotool is in use for 5.1 builds
USE_AUTOTOOLS=	automake autoheader autoconf libtool aclocal
# MySQL 5.5 using CMAKE
USES=		cmake iconv gettext gmake perl5

MASTER_SITE_SUBDIR=	XtraBackup/XtraBackup-${PORTVERSION}/source/

PLIST_FILES=	bin/xtrabackup bin/xtrabackup_55 bin/xtrabackup_56 bin/xbstream \
	bin/innobackupex bin/xbcrypt

pre-build:
	${CP} ${DISTDIR}/percona-xtrabackup-${PORTVERSION}.tar.gz ${WRKSRC}

do-build:
	cd ${WRKSRC} && ./utils/build.sh xtradb55
	${CP} ${WRKSRC}/src/xtrabackup_55 ${WRKSRC}
	cd ${WRKSRC} && ./utils/build.sh innodb56
	${CP} ${WRKSRC}/src/xtrabackup_56 ${WRKSRC}
	cd ${WRKSRC} && ./utils/build.sh xtradb
	${CP} ${WRKSRC}/src/xtrabackup ${WRKSRC}

do-install:
	${INSTALL_PROGRAM} ${WRKSRC}/xtrabackup ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/xtrabackup_55 ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/xtrabackup_56 ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/src/xbstream ${PREFIX}/bin
	${INSTALL_PROGRAM} ${WRKSRC}/src/xbcrypt ${PREFIX}/bin
	${INSTALL_SCRIPT} ${WRKSRC}/innobackupex ${PREFIX}/bin

# autoconf is running by build.sh
do-configure:
run-autotools-aclocal:
run-autotools-automake:
run-autotools-autoconf:
run-autotools-autoheader:
run-autotools-libtoolize:
patch-autotools-libtool:
	@${TRUE}

.include <bsd.port.mk>