aboutsummaryrefslogtreecommitdiffstats
path: root/databases/mysql++
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2003-12-15 00:47:40 +0800
committerpav <pav@FreeBSD.org>2003-12-15 00:47:40 +0800
commit88fadc2bc3ac128280a7641c8be0772201ea0bfd (patch)
tree52bcc5a28c33141934f235a48227c2c1e30fba4c /databases/mysql++
parent5068ffe228631af27d31c3a7cbbac85613f34008 (diff)
downloadfreebsd-ports-gnome-88fadc2bc3ac128280a7641c8be0772201ea0bfd.tar.gz
freebsd-ports-gnome-88fadc2bc3ac128280a7641c8be0772201ea0bfd.tar.zst
freebsd-ports-gnome-88fadc2bc3ac128280a7641c8be0772201ea0bfd.zip
- Fix build on 4.x
- Silence portlint PR: ports/59547 Submitted by: Sergey Matveychuk <sem@ciam.ru>
Diffstat (limited to 'databases/mysql++')
-rw-r--r--databases/mysql++/Makefile8
-rw-r--r--databases/mysql++/files/extra-patch-sqlplusint-connection.cc11
2 files changed, 16 insertions, 3 deletions
diff --git a/databases/mysql++/Makefile b/databases/mysql++/Makefile
index 6dcffc090ad8..1694b5b06444 100644
--- a/databases/mysql++/Makefile
+++ b/databases/mysql++/Makefile
@@ -31,6 +31,8 @@ INSTALLS_SHLIB= yes
PATCHFILES= patch_gcc_3.3.gz
PATCH_SITES= ${MASTER_SITES}
PATCH_DIST_STRIP=-p1
+.else
+EXTRA_PATCHES= ${FILESDIR}/extra-patch-sqlplusint-connection.cc
.endif
pre-configure:
@@ -43,13 +45,13 @@ do-install:
@${INSTALL_DATA} ${WRKSRC}/sqlplusint/.libs/libsqlplus.a ${PREFIX}/lib
@(cd ${PREFIX}/lib && ${RM} -f libsqlplus.so && ${LN} -s libsqlplus.so.1 libsqlplus.so)
@ranlib ${PREFIX}/lib/libsqlplus.a
- @mkdir -p ${PREFIX}/include/mysql
+ @${MKDIR} ${PREFIX}/include/mysql
@(cd ${WRKSRC}/sqlplusint/; \
${INSTALL_DATA} mysql++ defs undef_short define_short *.hh ${PREFIX}/include/mysql)
.if !defined(NOPORTDOCS)
- @mkdir -p ${DOCSDIR}
+ @${MKDIR} ${DOCSDIR}
@${INSTALL_DATA} ${WRKSRC}/doc/man-text/* ${DOCSDIR}
- @mkdir -p ${EXAMPLESDIR}
+ @${MKDIR} ${EXAMPLESDIR}
@${INSTALL_DATA} ${WRKSRC}/examples/*.cc ${EXAMPLESDIR}
@${INSTALL_DATA} ${FILESDIR}/README ${EXAMPLESDIR}
.endif
diff --git a/databases/mysql++/files/extra-patch-sqlplusint-connection.cc b/databases/mysql++/files/extra-patch-sqlplusint-connection.cc
new file mode 100644
index 000000000000..1fd2f951354b
--- /dev/null
+++ b/databases/mysql++/files/extra-patch-sqlplusint-connection.cc
@@ -0,0 +1,11 @@
+--- sqlplusint/connection.cc.orig Fri Nov 21 15:59:47 2003
++++ sqlplusint/connection.cc Fri Nov 21 16:00:19 2003
+@@ -109,7 +109,7 @@
+ }
+
+ string Connection::info () {
+- char *i = mysql_info(&mysql);
++ const char *i = mysql_info(&mysql);
+ if (!i)
+ return string();
+ else