diff options
Diffstat (limited to 'databases/mysql-connector-c++')
-rw-r--r-- | databases/mysql-connector-c++/Makefile | 14 | ||||
-rw-r--r-- | databases/mysql-connector-c++/files/patch-CMakeLists.txt | 10 |
2 files changed, 22 insertions, 2 deletions
diff --git a/databases/mysql-connector-c++/Makefile b/databases/mysql-connector-c++/Makefile index 4f49244d8ff5..97d8a933e192 100644 --- a/databases/mysql-connector-c++/Makefile +++ b/databases/mysql-connector-c++/Makefile @@ -3,21 +3,31 @@ PORTNAME= mysql-connector-c++ PORTVERSION= 1.1.7 +PORTREVISION= 1 CATEGORIES= databases MASTER_SITES= MYSQL/Connector-C++ MAINTAINER= ports@FreeBSD.org COMMENT= MySQL database connector for C++ -LICENSE= GPLv2 +LICENSE= GPLv2 # only +LICENSE_FILE= ${WRKSRC}/COPYING LIB_DEPENDS= libboost_regex.so:${PORTSDIR}/devel/boost-libs USE_MYSQL= 51+ USES= cmake:outsource USE_LDCONFIG= yes +CMAKE_ARGS= -DDOC_DESTINATION="${DOCSDIR}" -PLIST_SUB+= PORTVERSION=${PORTVERSION} +PLIST_SUB= PORTVERSION=${PORTVERSION} + +PORTDOCS= * +OPTIONS_DEFINE= DOCS + +post-install: + @${RM} -f ${STAGEDIR}${DOCSDIR}/INSTALL \ + ${STAGEDIR}${DOCSDIR}/COPYING .if defined(MAINTAINER_MODE) CMAKE_ARGS+= -DMYSQLCPPCONN_TEST_NOT_IMPLEMENTED:BOOL=1 \ diff --git a/databases/mysql-connector-c++/files/patch-CMakeLists.txt b/databases/mysql-connector-c++/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..5dfa0b0b7bcd --- /dev/null +++ b/databases/mysql-connector-c++/files/patch-CMakeLists.txt @@ -0,0 +1,10 @@ +--- CMakeLists.txt.orig 2016-01-12 18:42:38 UTC ++++ CMakeLists.txt +@@ -316,7 +316,6 @@ ELSE(WIN32) + SET(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_INSTALL_DIRECTORY}") + ENDIF(WIN32) + +-SET(DOC_DESTINATION ".") + IF(RPM_LAYOUT) + SET(DOC_DESTINATION "share/doc/${CPACK_PACKAGE_NAME}-${MYSQLCPPCONN_VERSION}") + ENDIF() |