2013-03-21 17:43:46 +00:00
|
|
|
# Created by: Domas Mituzas <midom@dammit.lt>
|
1999-11-26 20:52:39 +00:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2000-04-08 22:49:07 +00:00
|
|
|
PORTNAME= freetds
|
2008-12-06 22:43:44 +00:00
|
|
|
PORTVERSION= 0.64
|
2013-02-05 16:17:06 +00:00
|
|
|
PORTREVISION= 9
|
2008-12-06 22:43:44 +00:00
|
|
|
PORTEPOCH= 1
|
1999-11-26 20:52:39 +00:00
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
2008-06-16 10:38:53 +00:00
|
|
|
MASTER_SITE_SUBDIR= ALPHA/${PORTNAME}/stable
|
1999-11-26 20:52:39 +00:00
|
|
|
|
2008-12-06 22:43:44 +00:00
|
|
|
MAINTAINER?= cowbert@gmail.com
|
2003-02-20 17:07:10 +00:00
|
|
|
COMMENT= Sybase/Microsoft TDS protocol library
|
1999-11-26 20:52:39 +00:00
|
|
|
|
2004-07-29 10:42:56 +00:00
|
|
|
TDS_VER?= 5.0
|
|
|
|
|
2013-04-27 08:50:46 +00:00
|
|
|
USES= iconv
|
2002-09-19 20:33:32 +00:00
|
|
|
USE_GMAKE= yes
|
2003-11-07 08:26:27 +00:00
|
|
|
GNU_GONFIGURE= yes
|
2010-12-04 07:34:27 +00:00
|
|
|
USE_AUTOTOOLS= autoconf:env libtool
|
2011-09-23 22:26:39 +00:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2004-07-29 10:42:56 +00:00
|
|
|
CONFIGURE_ARGS= --with-tdsver=${TDS_VER}
|
2007-10-05 20:25:32 +00:00
|
|
|
USE_LDCONFIG= yes
|
2001-02-14 12:48:45 +00:00
|
|
|
|
2009-03-03 05:55:42 +00:00
|
|
|
PORTDOCS= *
|
|
|
|
|
2013-03-21 17:43:46 +00:00
|
|
|
OPTIONS_DEFINE= OPENSSL GNUTLS MSDBLIB DOCS
|
|
|
|
OPTIONS_RADIO= ODBC
|
|
|
|
OPTIONS_RADIO_ODBC= IODBC UNIXODBC
|
|
|
|
MSDBLIB_DESC= MS SQL Server support (breaks databases/sybtcl)
|
2009-03-03 05:55:42 +00:00
|
|
|
|
2013-03-21 17:43:46 +00:00
|
|
|
.include <bsd.port.options.mk>
|
2009-03-03 05:55:42 +00:00
|
|
|
|
2013-03-21 17:43:46 +00:00
|
|
|
.if ${PORT_OPTIONS:MOPENSSL}
|
2007-10-05 20:25:32 +00:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE}
|
|
|
|
.endif
|
|
|
|
|
2013-03-21 17:43:46 +00:00
|
|
|
.if ${PORT_OPTIONS:MGNUTLS}
|
2013-12-11 18:08:52 +00:00
|
|
|
LIB_DEPENDS+= libgnutls.so:${PORTSDIR}/security/gnutls
|
2009-03-03 05:55:42 +00:00
|
|
|
CONFIGURE_ARGS+=--with-gnutls
|
|
|
|
.endif
|
|
|
|
|
2013-03-21 17:43:46 +00:00
|
|
|
.if ${PORT_OPTIONS:MIODBC}
|
2013-12-11 18:08:52 +00:00
|
|
|
LIB_DEPENDS+= libiodbc.so:${PORTSDIR}/databases/libiodbc
|
2001-12-24 04:40:36 +00:00
|
|
|
CONFIGURE_ARGS+= --with-iodbc=${LOCALBASE}
|
|
|
|
.endif
|
|
|
|
|
2013-03-21 17:43:46 +00:00
|
|
|
.if ${PORT_OPTIONS:MUNIXODBC}
|
2013-12-11 18:08:52 +00:00
|
|
|
LIB_DEPENDS+= libodbc.so:${PORTSDIR}/databases/unixODBC
|
2001-12-24 04:40:36 +00:00
|
|
|
CONFIGURE_ARGS+= --with-unixodbc=${LOCALBASE}
|
|
|
|
.endif
|
|
|
|
|
2013-04-04 13:37:18 +00:00
|
|
|
.if ${PORT_OPTIONS:MIODBC} || ${PORT_OPTIONS:MUNIXODBC}
|
2001-12-24 04:40:36 +00:00
|
|
|
PLIST_SUB+= ODBC=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ODBC="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-04-11 20:52:27 +00:00
|
|
|
# We cannot use msdblib-style by default, because port databases/sybtcl
|
|
|
|
# relies on sybase-style dblib
|
2013-03-21 17:43:46 +00:00
|
|
|
.if ${PORT_OPTIONS:MMSDBLIB}
|
2004-01-15 18:28:02 +00:00
|
|
|
CONFIGURE_ARGS+= --enable-msdblib
|
2008-12-06 22:43:44 +00:00
|
|
|
.endif
|
|
|
|
|
2002-09-19 20:33:32 +00:00
|
|
|
post-extract:
|
|
|
|
@cd ${WRKSRC} && ${LN} -s freetds.conf freetds.conf.dist
|
2003-04-21 16:07:04 +00:00
|
|
|
@cd ${WRKSRC} && ${LN} -s locales.conf locales.conf.dist
|
|
|
|
@cd ${WRKSRC}/src/pool && ${LN} -s pool.conf pool.conf.dist
|
2002-09-19 20:33:32 +00:00
|
|
|
|
2001-02-14 12:48:45 +00:00
|
|
|
post-patch:
|
2002-09-01 16:07:59 +00:00
|
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
|
2002-10-08 09:10:00 +00:00
|
|
|
's|<malloc.h>|<stdlib.h>| ; \
|
|
|
|
s|/freetds.conf|/freetds.conf.dist|g ; \
|
2003-04-21 16:07:04 +00:00
|
|
|
s|/locales.conf|/locales.conf.dist|g ; \
|
|
|
|
s|/pool.conf|/pool.conf.dist|g ; \
|
2001-12-24 04:40:36 +00:00
|
|
|
s| common.h||g'
|
2003-11-07 08:26:27 +00:00
|
|
|
|
2001-08-05 04:28:23 +00:00
|
|
|
post-install:
|
2014-02-05 07:37:19 +00:00
|
|
|
@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} images ${STAGEDIR}${DOCSDIR}
|
|
|
|
@cd ${WRKSRC}/doc && ${COPYTREE_SHARE} doc ${STAGEDIR}${DOCSDIR}
|
|
|
|
@${MKDIR} ${STAGEDIR}${PREFIX}/etc/freetds
|
|
|
|
@${INSTALL_DATA} ${WRKSRC}/interfaces ${STAGEDIR}${PREFIX}/etc/freetds/interfaces.dist
|
2003-04-21 16:07:04 +00:00
|
|
|
@${ECHO_CMD} "Sample configuration files have been installed in ${PREFIX}/etc"
|
|
|
|
@${ECHO_CMD} "You should edit them and remove the .dist-suffix from their names"
|
1999-11-26 20:52:39 +00:00
|
|
|
|
2013-03-21 17:43:46 +00:00
|
|
|
.include <bsd.port.mk>
|