60d1a83c2a
- Replace ${MASTER_SITE_FOO} with FOO. - Merge MASTER_SITE_SUBDIR into MASTER_SITES when possible. (This means 99.9% of the time.) - Remove occurrences of MASTER_SITE_LOCAL when no subdirectory was present and no hint of what it should be was present. - Fix some logic. - And generally, make things more simple and easy to understand. While there, add magic values to the FESTIVAL, GENTOO, GIMP, GNUPG, QT and SAMBA macros. Also, replace some EXTRACT_SUFX occurences with USES=tar:*. Checked by: make fetch-urlall-list With hat: portmgr Sponsored by: Absolight
54 lines
1.6 KiB
Makefile
54 lines
1.6 KiB
Makefile
# Created by: gahr
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= mysql-connector-c++
|
|
PORTVERSION= 1.1.5
|
|
CATEGORIES= databases
|
|
MASTER_SITES= MYSQL/Connector-C++
|
|
|
|
MAINTAINER= ports@FreeBSD.org
|
|
COMMENT= MySQL database connector for C++
|
|
|
|
LICENSE= GPLv2
|
|
|
|
LIB_DEPENDS= libboost_regex.so:${PORTSDIR}/devel/boost-libs
|
|
|
|
USE_MYSQL= 51+
|
|
USES= cmake:outsource
|
|
USE_LDCONFIG= yes
|
|
|
|
PLIST_SUB+= PORTVERSION=${PORTVERSION}
|
|
|
|
.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.mk>
|