summaryrefslogtreecommitdiff
path: root/databases/mysql-connector-c++
diff options
context:
space:
mode:
authorDmitry Marakasov <amdmi3@FreeBSD.org>2016-02-08 12:00:14 +0000
committerDmitry Marakasov <amdmi3@FreeBSD.org>2016-02-08 12:00:14 +0000
commitcaf79d223f3deaa11471d2a3f5f5b75495505011 (patch)
tree1e68c8e0952ac3402250f8a946315792365b0f0b /databases/mysql-connector-c++
parent- Add NO_ARCH (diff)
- Fix documentation installation
- Clarify LICENSE - Add LICENSE_FILE
Notes
Notes: svn path=/head/; revision=408481
Diffstat (limited to 'databases/mysql-connector-c++')
-rw-r--r--databases/mysql-connector-c++/Makefile14
-rw-r--r--databases/mysql-connector-c++/files/patch-CMakeLists.txt10
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()