aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mydumper/Makefile
blob: a5f190fb8375fd2c19ad6b9f880cd39630f5860c (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
# Created by: Gea-Suan Lin <gslin@gslin.org>
# $FreeBSD$

PORTNAME=   mydumper
PORTVERSION=    0.6.1
CATEGORIES= databases
MASTER_SITES=   http://code.launchpad.net/mydumper/${PORTVERSION:R}/${PORTVERSION}/+download/

MAINTAINER= sunpoet@FreeBSD.org
COMMENT=    MySQL Data Dumper

LICENSE=    GPLv3

LIB_DEPENDS=    libpcre.so:${PORTSDIR}/devel/pcre

USE_GNOME=  glib20
USE_MYSQL=  yes
USES=       cmake pkgconfig

PLIST_FILES=    sbin/mydumper sbin/myloader

post-patch:
    @${REINPLACE_CMD} \
        -e '/link_libraries(mydumper/s/)$$/ -lm)/' \
        -e 's|-Werror||' ${WRKSRC}/CMakeLists.txt

do-install:
    ${INSTALL_PROGRAM} ${WRKSRC}/mydumper ${WRKSRC}/myloader ${STAGEDIR}${PREFIX}/sbin/

.include <bsd.port.mk>