summaryrefslogtreecommitdiffstats
path: root/databases/mysql++1
diff options
context:
space:
mode:
authorpav <pav@FreeBSD.org>2003-12-14 16:47:40 +0000
committerpav <pav@FreeBSD.org>2003-12-14 16:47:40 +0000
commit88fadc2bc3ac128280a7641c8be0772201ea0bfd (patch)
tree52bcc5a28c33141934f235a48227c2c1e30fba4c /databases/mysql++1
parent5068ffe228631af27d31c3a7cbbac85613f34008 (diff)
downloadFreeBSD-ports-88fadc2bc3ac128280a7641c8be0772201ea0bfd.zip
FreeBSD-ports-88fadc2bc3ac128280a7641c8be0772201ea0bfd.tar.gz
- Fix build on 4.x
- Silence portlint PR: ports/59547 Submitted by: Sergey Matveychuk <sem@ciam.ru>
Diffstat (limited to 'databases/mysql++1')
-rw-r--r--databases/mysql++1/Makefile8
-rw-r--r--databases/mysql++1/files/extra-patch-sqlplusint-connection.cc11
2 files changed, 16 insertions, 3 deletions
diff --git a/databases/mysql++1/Makefile b/databases/mysql++1/Makefile
index 6dcffc0..1694b5b 100644
--- a/databases/mysql++1/Makefile
+++ b/databases/mysql++1/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++1/files/extra-patch-sqlplusint-connection.cc b/databases/mysql++1/files/extra-patch-sqlplusint-connection.cc
new file mode 100644
index 0000000..1fd2f95
--- /dev/null
+++ b/databases/mysql++1/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
OpenPOWER on IntegriCloud