aboutsummaryrefslogtreecommitdiffstats
path: root/databases
diff options
context:
space:
mode:
authoramdmi3 <amdmi3@FreeBSD.org>2016-02-08 20:00:14 +0800
committeramdmi3 <amdmi3@FreeBSD.org>2016-02-08 20:00:14 +0800
commitcd5418d06154ac2583f3e71c00814e82786594f7 (patch)
tree1e68c8e0952ac3402250f8a946315792365b0f0b /databases
parent3e7ae565aec5ff72e6dcd1cbf050e2b9bc60da5f (diff)
downloadfreebsd-ports-gnome-cd5418d06154ac2583f3e71c00814e82786594f7.tar.gz
freebsd-ports-gnome-cd5418d06154ac2583f3e71c00814e82786594f7.tar.zst
freebsd-ports-gnome-cd5418d06154ac2583f3e71c00814e82786594f7.zip
- Fix documentation installation
- Clarify LICENSE - Add LICENSE_FILE
Diffstat (limited to 'databases')
-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()