aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mysql-connector-c
diff options
context:
space:
mode:
authorgahr <gahr@FreeBSD.org>2014-04-16 17:21:11 +0800
committergahr <gahr@FreeBSD.org>2014-04-16 17:21:11 +0800
commit60adc7c733ba88629ff2520e377f723ab08039e5 (patch)
tree9dd208678231d6927d3fc22540b1af21a4f14c57 /databases/mysql-connector-c
parentc02dea5342a050b17d54163cd762c0555c6471cc (diff)
downloadfreebsd-ports-gnome-60adc7c733ba88629ff2520e377f723ab08039e5.tar.gz
freebsd-ports-gnome-60adc7c733ba88629ff2520e377f723ab08039e5.tar.zst
freebsd-ports-gnome-60adc7c733ba88629ff2520e377f723ab08039e5.zip
- Unbreak by depending on OpenSSL from ports
- Bump PORTREVISION (dependencies changed) Reported by: pkg-fallout
Diffstat (limited to 'databases/mysql-connector-c')
-rw-r--r--databases/mysql-connector-c/Makefile7
-rw-r--r--databases/mysql-connector-c/files/patch-CMakeLists.txt11
-rw-r--r--databases/mysql-connector-c/pkg-plist1
3 files changed, 18 insertions, 1 deletions
diff --git a/databases/mysql-connector-c/Makefile b/databases/mysql-connector-c/Makefile
index e61e3c941d7e..f383e47c282b 100644
--- a/databases/mysql-connector-c/Makefile
+++ b/databases/mysql-connector-c/Makefile
@@ -3,6 +3,7 @@
PORTNAME= mysql-connector-c
PORTVERSION= 6.1.3
+PORTREVISION= 1
CATEGORIES= databases
MASTER_SITES= ${MASTER_SITE_MYSQL}
MASTER_SITE_SUBDIR= Connector-C
@@ -14,7 +15,13 @@ COMMENT= MySQL database connector for C
LICENSE= GPLv2
USE_MYSQL= 51+
+USE_OPENSSL= yes
+WITH_OPENSSL_PORT=yes
USES= cmake:outsource
+CMAKE_ARGS+= -DWITH_SSL=system \
+ -DOPENSSL_INCLUDE_DIR=${LOCALBASE}/include \
+ -DOPENSSL_LIBRARY=${LOCALBASE}/lib/libssl.so \
+ -DCRYPTO_LIBRARY=${LOCALBASE}/lib/libcrypto.so
USE_LDCONFIG= ${PREFIX}/lib/${PORTNAME}
PLIST_SUB+= PORTVERSION=${PORTVERSION}
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..3085b8c10489
--- /dev/null
+++ b/databases/mysql-connector-c/files/patch-CMakeLists.txt
@@ -0,0 +1,11 @@
+--- CMakeLists.txt.orig 2014-01-31 15:10:13.000000000 +0100
++++ CMakeLists.txt 2014-01-31 15:10:39.000000000 +0100
+@@ -535,7 +535,7 @@
+ #
+ # RPM installs documentation directly from the source tree
+ #
+-IF(NOT INSTALL_LAYOUT MATCHES "RPM")
++IF(NOT INSTALL_LAYOUT MATCHES "RPM" AND 0)
+ INSTALL(FILES COPYING LICENSE.mysql
+ DESTINATION ${INSTALL_DOCREADMEDIR}
+ COMPONENT Readme
diff --git a/databases/mysql-connector-c/pkg-plist b/databases/mysql-connector-c/pkg-plist
index ab385981735e..c1a69825f8b2 100644
--- a/databases/mysql-connector-c/pkg-plist
+++ b/databases/mysql-connector-c/pkg-plist
@@ -66,7 +66,6 @@ lib/mysql-connector-c/libmysqlclient.so.18
lib/mysql-connector-c/libmysqlclient_r.a
lib/mysql-connector-c/libmysqlclient_r.so
lib/mysql-connector-c/libmysqlclient_r.so.18
-libdata/ldconfig/mysql-connector-c
@dirrm lib/mysql-connector-c
@dirrm bin/mysql-connector-c
@dirrm include/mysql-connector-c/mysql/psi