aboutsummaryrefslogtreecommitdiffstats
path: root/devel/libslave/Makefile
blob: f2d627ca778bdf6875d72594cb5435c4ac810f33 (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
# Created by: Veniamin Gvozdikov <vg@FreeBSD.org>
# $FreeBSD$

PORTNAME=   libslave
PORTVERSION=    0.0.${DATE}
PORTREVISION=   2
CATEGORIES= devel databases
MASTER_SITES=   GH GHC

MAINTAINER= ports@FreeBSD.org
COMMENT=    Mysql replication client library, embeddable into your C++ application

LICENSE=    GPLv3

LIB_DEPENDS=    libboost_thread.so:${PORTSDIR}/devel/boost-libs

DATE=       20121210
USES=       cmake
USE_LDCONFIG=   yes
USE_MYSQL=  client
USE_GITHUB= yes
GH_ACCOUNT= Begun
GH_COMMIT=  64d548b
GH_TAGNAME= ${GH_COMMIT}
PORTEXAMPLES=   *

OPTIONS_DEFINE= STATIC TEST EXAMPLES
STATIC_DESC=    Build static lib
TEST_DESC=  Build test binary

OPTIONS_DEFAULT=STATIC

NO_STAGE=   yes
.include <bsd.port.options.mk>

.if ${PORT_OPTIONS:MSTATIC}
PLIST_SUB+= STATIC=""
CMAKE_ARGS+=    -DENABLE_STATIC=ON
.else
CMAKE_ARGS+=    -DENABLE_STATIC=OFF
PLIST_SUB+= STATIC="@comment "
.endif

.if ${PORT_OPTIONS:MTEST}
PLIST_SUB+= TEST=""
CMAKE_ARGS+=    -DENABLE_TEST=ON
.else
CMAKE_ARGS+=    -DENABLE_TEST=OFF
PLIST_SUB+= TEST="@comment "
.endif

post-install:
.if ${PORT_OPTIONS:MEXAMPLES}
    @${MKDIR} ${EXAMPLESDIR}
    @cd ${WRKSRC} && ${COPYTREE_SHARE} test ${EXAMPLESDIR}
.endif

.include <bsd.port.mk>