1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-12-24 04:33:24 +00:00

- Fix build on 4.x

- Silence portlint

PR:		ports/59547
Submitted by:	Sergey Matveychuk <sem@ciam.ru>
This commit is contained in:
Pav Lucistnik 2003-12-14 16:47:40 +00:00
parent 8f998ba5d3
commit 2f90dc000f
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=95802
4 changed files with 32 additions and 6 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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