1
0
mirror of https://git.FreeBSD.org/ports.git synced 2024-11-20 00:21:35 +00:00

- Update to version 2.2

PR:		ports/123081
Submitted by:	KATO Tsuguru <tkato432 AT yahoo.com>
This commit is contained in:
Li-Wen Hsu 2008-04-27 16:30:18 +00:00
parent 2ce5ac50f4
commit 3dc94e77da
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=212106
4 changed files with 17 additions and 57 deletions

View File

@ -6,26 +6,25 @@
#
PORTNAME= libzdb
PORTVERSION= 2.1
PORTVERSION= 2.2
CATEGORIES= databases
MASTER_SITES= http://www.tildeslash.com/libzdb/dist/
MAINTAINER= ports@FreeBSD.org
COMMENT= Thread-safe connection pool library
GNU_CONFIGURE= yes
OPTIONS= MYSQL "Add MySQL support" on \
SQLITE " Add Sqlite support" on \
PGSQL "Add PgSQL support" on
USE_GNOME= gnometarget
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:15
USE_GNOME= gnometarget
USE_LDCONFIG= yes
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
LDFLAGS="-L${LOCALBASE}/lib" \
PTHREAD_CFLAGS="${PTHREAD_CFLAGS}" \
PTHREAD_LIBS="${PTHREAD_LIBS}"
OPTIONS= MYSQL "Add MySQL support" on \
SQLITE " Add Sqlite support" on \
PGSQL "Add PgSQL support" on
USE_LDCONFIG= yes
PLIST_SUB= VERSION=${PORTVERSION}
@ -53,6 +52,11 @@ CONFIGURE_ARGS+= --without-pgsql
.endif
post-patch:
@${REINPLACE_CMD} 's,%%PTHREAD_LIBS%%,${PTHREAD_LIBS},g' ${WRKSRC}/configure
@${REINPLACE_CMD} -e 's|-lpthread |${PTHREAD_LIBS} |g ; \
s|_mysql/lib |_mysql/lib/mysql |g ; \
s|_mysql/include |_mysql/include/mysql |g ; \
s|_mysql/include"|_mysql/include/mysql"|g ; \
s|_mysql/lib/l|_mysql/lib/mysql/l|g ; \
s|_mysql/lib/ |_mysql/lib/mysql |g' ${WRKSRC}/configure
.include <bsd.port.post.mk>

View File

@ -1,3 +1,3 @@
MD5 (libzdb-2.1.tar.gz) = 5abec56051f105cacb6dcec237a1d989
SHA256 (libzdb-2.1.tar.gz) = cfcd50e2e56cee30210b5c6ba8da0cf31ddcbf717396203d1fd53415e30b16d8
SIZE (libzdb-2.1.tar.gz) = 586589
MD5 (libzdb-2.2.tar.gz) = 3a1677704ce3821c53d6d0ae7b98dbb5
SHA256 (libzdb-2.2.tar.gz) = 2b5212a733ef394670168b01723d4826f81530794d261ab46f2c6e6773c61580
SIZE (libzdb-2.2.tar.gz) = 854701

View File

@ -1,44 +0,0 @@
--- configure.orig Fri Feb 16 05:10:48 2007
+++ configure Mon Feb 26 14:33:53 2007
@@ -19459,7 +19459,7 @@
echo $ECHO_N "(cached) $ECHO_C" >&6
else
ac_check_lib_save_LIBS=$LIBS
-LIBS="-lpthread $LIBS"
+LIBS="%%PTHREAD_LIBS%% $LIBS"
cat >conftest.$ac_ext <<_ACEOF
/* confdefs.h. */
_ACEOF
@@ -19522,7 +19522,7 @@
#define HAVE_LIBPTHREAD 1
_ACEOF
- LIBS="-lpthread $LIBS"
+ LIBS="%%PTHREAD_LIBS%% $LIBS"
else
{ { echo "$as_me:$LINENO: error: POSIX thread library is required" >&5
@@ -19548,8 +19548,8 @@
else
svd_LDFLAGS=$LDFLAGS
svd_CPPFLAGS=$CPPFLAGS
- LDFLAGS="-L$with_mysql/lib $LDFLAGS"
- CPPFLAGS="-I$with_mysql/include $CPPFLAGS"
+ LDFLAGS="-L$with_mysql/lib/mysql $LDFLAGS"
+ CPPFLAGS="-I$with_mysql/include/mysql $CPPFLAGS"
for ac_header in mysql.h
do
@@ -19697,9 +19697,9 @@
_ACEOF
mysql="yes"
- if test -r "$with_mysql/lib/libmysqlclient.a"; then
- DBCPPFLAGS="$DBCPPFLAGS -I$with_mysql/include"
- DBLDFLAGS="$DBLDFLAGS -L$with_mysql/lib/ -lmysqlclient"
+ if test -r "$with_mysql/lib/mysql/libmysqlclient.a"; then
+ DBCPPFLAGS="$DBCPPFLAGS -I$with_mysql/includemysql"
+ DBLDFLAGS="$DBLDFLAGS -L$with_mysql/lib/mysql -lmysqlclient"
else
mysql="no"
fi

View File

@ -9,4 +9,4 @@ lib/libzdb.a
lib/libzdb.la
lib/libzdb.so
lib/libzdb-%%VERSION%%.so
lib/libzdb-%%VERSION%%.so.4
lib/libzdb-%%VERSION%%.so.5