1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-03 06:04:53 +00:00

databases/freetds-devel: Update version 0.92.1003=>0.96.3

- Migrate to new USES framework instead of USE_AUTOTOOLS
This commit is contained in:
Muhammad Moinur Rahman 2015-05-10 12:08:03 +00:00
parent ff8e6eed1b
commit f4b916569d
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=385939
3 changed files with 21 additions and 10 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$
PORTNAME= freetds
PORTVERSION= 0.92.1003
PORTVERSION= 0.96.3
PORTEPOCH= 1
CATEGORIES= databases
MASTER_SITES= ftp://ftp.freetds.org/pub/freetds/current/
@ -16,9 +16,8 @@ LICENSE= LGPL20
WRKSRC= ${WRKDIR}/${PORTNAME}-dev.${PORTVERSION}
TDS_VER?= 7.2
USES= gmake iconv libtool:keepla pkgconfig tar:bzip2
USES= autoreconf gmake iconv libtool:keepla pkgconfig tar:bzip2
GNU_GONFIGURE= yes
USE_AUTOTOOLS= autoconf:env
CPPFLAGS+= "-I${LOCALBASE}/include"
LDFLAGS+= -L${LOCALBASE}/lib
GNU_CONFIGURE= yes
@ -66,13 +65,13 @@ post-extract:
post-patch:
@${REINPLACE_CMD} -e 's|libgnutls-config|pkg-config gnutls|g' \
${WRKSRC}/configure
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
@${FIND} ${WRKSRC} -name "Makefile.am" | ${XARGS} ${REINPLACE_CMD} -e \
's|/pool.conf|/pool.conf.sample|g ; \
s| common.h||g ; \
s|%%DOCSDIR%%|${STAGEDIR}${DOCSDIR}|g ; \
s|%%ICONV_LIB%%|${ICONV_LIB}|'
@${REINPLACE_CMD} -e 's|/freetds.conf|/freetds.conf.sample|g ; \
s|/locales.conf|/locales.conf.sample|g' ${WRKSRC}/Makefile.in
s|/locales.conf|/locales.conf.sample|g' ${WRKSRC}/Makefile.am
@${REINPLACE_CMD} -e 's|$$ODBC_INC/isql.h|$$ODBC_INC/libiodbc/isql.h|g ; \
s|$$ODBC_INC/isqlext.h|$$ODBC_INC/libiodbc/isqlext.h|g' ${WRKSRC}/configure
@ -81,13 +80,12 @@ post-install:
.if ${PORT_OPTIONS:MDOCS}
@${MKDIR} ${STAGEDIR}${DOCSDIR}/userguide
@${MKDIR} ${STAGEDIR}${DOCSDIR}/reference
@${MKDIR} ${STAGEDIR}${DOCSDIR}/images
@${FIND} ${WRKSRC}/doc/userguide \( -type f -o -type l \) \
-exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/userguide ';'
@${FIND} ${WRKSRC}/doc/reference \( -type f -o -type l \) \
-exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/reference ';'
@${FIND} ${WRKSRC}/doc/images -name \*.gif \
-exec ${INSTALL_DATA} {} ${STAGEDIR}${DOCSDIR}/images/ ';'
@cd ${WRKSRC}/doc && \
${COPYTREE_SHARE} images ${STAGEDIR}${DOCSDIR}
.endif

View File

@ -1,2 +1,2 @@
SHA256 (freetds-dev.0.92.1003.tar.bz2) = edc6c8b0991380ac93abd77d8752885124755ea1b356a94b73ff4347a24ee791
SIZE (freetds-dev.0.92.1003.tar.bz2) = 3175651
SHA256 (freetds-dev.0.96.3.tar.bz2) = 742ab1cce0792f19a95cc6df32ee735f019eecb42e10985cd36f3af9049ec1a4
SIZE (freetds-dev.0.96.3.tar.bz2) = 3188218

View File

@ -0,0 +1,13 @@
--- src/tds/tls.c.orig 2015-05-10 16:53:53.649667739 +0600
+++ src/tds/tls.c 2015-05-10 17:04:29.479624026 +0600
@@ -46,6 +46,10 @@
#include <sys/stat.h>
#endif /* HAVE_SYS_STAT_H */
+#if defined(__FreeBSD__) || defined(__DragonFly__)
+#include <sys/socket.h>
+#endif
+
#include <freetds/tds.h>
#include <freetds/string.h>
#include <freetds/tls.h>