blob: 5edfb371c1b82f8231d01452ea04308d5a5cb5c6 (
plain)
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
66
67
68
69
|
# Created by: gahr
# $FreeBSD$
PORTNAME= mysql-connector-c++
PORTVERSION= 1.1.7
PORTREVISION= 3
CATEGORIES= databases
MASTER_SITES= MYSQL/Connector-C++
MAINTAINER= bofh@FreeBSD.org
COMMENT= MySQL database connector for C++
LICENSE= GPLv2 # only
LICENSE_FILE= ${WRKSRC}/COPYING
LIB_DEPENDS= libboost_regex.so:devel/boost-libs
USES= cmake:outsource mysql
USE_LDCONFIG= yes
CMAKE_ARGS= -DDOC_DESTINATION="${DOCSDIR}"
PLIST_SUB= PORTVERSION=${PORTVERSION}
PORTDOCS= *
OPTIONS_DEFINE= DOCS
.include <bsd.port.pre.mk>
.if ${OPSYS} == FreeBSD && ${OSVERSION} > 1100000
CMAKE_ARGS+=-DCMAKE_ENABLE_C++11=ON
.endif
post-install:
@${RM} ${STAGEDIR}${DOCSDIR}/INSTALL \
${STAGEDIR}${DOCSDIR}/COPYING
.if defined(MAINTAINER_MODE)
CMAKE_ARGS+= -DMYSQLCPPCONN_TEST_NOT_IMPLEMENTED:BOOL=1 \
-DMYSQLCPPCONN_BUILD_EXAMPLES:BOOL=1
regression-test: build
# These tests assume that a database is running on localhost,
# with user:root and pass:root
(cd ${WRKDIR}/.build ; \
test/CJUnitTestsPort/CJUnitTestsPort --verbose ; \
test/driver_test --verbose ; \
test/static_test --verbose ; \
examples/connect --verbose ; \
examples/connection_meta_schemaobj --verbose ; \
examples/debug --verbose ; \
examples/dynamic_load --verbose ; \
examples/exceptions --verbose ; \
examples/prepared_statement --verbose ; \
examples/resultset --verbose ; \
examples/resultset_binary --verbose ; \
examples/resultset_meta --verbose ; \
examples/resultset_types --verbose ; \
examples/statement --verbose ; \
test/unit/classes/art_resultset --verbose ; \
test/unit/classes/connection --verbose ; \
test/unit/classes/databasemetadata --verbose ; \
test/unit/classes/parametermetadata --verbose ; \
test/unit/classes/preparedstatement --verbose ; \
test/unit/classes/resultset --verbose ; \
test/unit/classes/resultsetmetadata --verbose ; \
test/unit/classes/savepoint --verbose ; \
test/unit/classes/statement )
.endif
.include <bsd.port.post.mk>
|