2013-03-21 18:43:46 +01:00
|
|
|
# Created by: Domas Mituzas <midom@dammit.lt>
|
1999-11-26 21:52:39 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
2000-04-09 00:49:07 +02:00
|
|
|
PORTNAME= freetds
|
2008-12-06 23:43:44 +01:00
|
|
|
PORTVERSION= 0.64
|
2014-07-23 11:54:02 +02:00
|
|
|
PORTREVISION= 11
|
2008-12-06 23:43:44 +01:00
|
|
|
PORTEPOCH= 1
|
1999-11-26 21:52:39 +01:00
|
|
|
CATEGORIES= databases
|
2014-08-17 22:46:37 +02:00
|
|
|
MASTER_SITES= http://pkgs.fedoraproject.org/repo/pkgs/${FEDORALOC}/
|
1999-11-26 21:52:39 +01:00
|
|
|
|
2014-08-17 22:46:37 +02:00
|
|
|
MAINTAINER?= ports@FreeBSD.org
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= Sybase/Microsoft TDS protocol library
|
1999-11-26 21:52:39 +01:00
|
|
|
|
2004-07-29 12:42:56 +02:00
|
|
|
TDS_VER?= 5.0
|
|
|
|
|
2014-05-08 01:59:12 +02:00
|
|
|
USES= iconv gmake libtool:keepla
|
|
|
|
GNU_CONFIGURE= yes
|
|
|
|
USE_AUTOTOOLS= autoconf:env
|
2011-09-24 00:26:39 +02:00
|
|
|
CPPFLAGS+= -I${LOCALBASE}/include
|
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2004-07-29 12:42:56 +02:00
|
|
|
CONFIGURE_ARGS= --with-tdsver=${TDS_VER}
|
2007-10-05 22:25:32 +02:00
|
|
|
USE_LDCONFIG= yes
|
2014-05-08 01:59:12 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2014-08-17 22:46:37 +02:00
|
|
|
FEDORALOC= freetds/freetds-0.64.tar.gz/ecfee5d6c96932172a1f29fb215c9d23
|
2001-02-14 13:48:45 +01:00
|
|
|
|
2009-03-03 06:55:42 +01:00
|
|
|
PORTDOCS= *
|
|
|
|
|
2013-03-21 18:43:46 +01: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 06:55:42 +01:00
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
.include <bsd.port.options.mk>
|
2009-03-03 06:55:42 +01:00
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
.if ${PORT_OPTIONS:MOPENSSL}
|
2007-10-05 22:25:32 +02:00
|
|
|
USE_OPENSSL= yes
|
|
|
|
CONFIGURE_ARGS+=--with-openssl=${OPENSSLBASE}
|
|
|
|
.endif
|
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
.if ${PORT_OPTIONS:MGNUTLS}
|
2013-12-11 19:08:52 +01:00
|
|
|
LIB_DEPENDS+= libgnutls.so:${PORTSDIR}/security/gnutls
|
2009-03-03 06:55:42 +01:00
|
|
|
CONFIGURE_ARGS+=--with-gnutls
|
|
|
|
.endif
|
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
.if ${PORT_OPTIONS:MIODBC}
|
2013-12-11 19:08:52 +01:00
|
|
|
LIB_DEPENDS+= libiodbc.so:${PORTSDIR}/databases/libiodbc
|
2001-12-24 05:40:36 +01:00
|
|
|
CONFIGURE_ARGS+= --with-iodbc=${LOCALBASE}
|
|
|
|
.endif
|
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
.if ${PORT_OPTIONS:MUNIXODBC}
|
2013-12-11 19:08:52 +01:00
|
|
|
LIB_DEPENDS+= libodbc.so:${PORTSDIR}/databases/unixODBC
|
2001-12-24 05:40:36 +01:00
|
|
|
CONFIGURE_ARGS+= --with-unixodbc=${LOCALBASE}
|
|
|
|
.endif
|
|
|
|
|
2013-04-04 15:37:18 +02:00
|
|
|
.if ${PORT_OPTIONS:MIODBC} || ${PORT_OPTIONS:MUNIXODBC}
|
2001-12-24 05:40:36 +01:00
|
|
|
PLIST_SUB+= ODBC=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ODBC="@comment "
|
|
|
|
.endif
|
|
|
|
|
2005-04-11 22:52:27 +02:00
|
|
|
# We cannot use msdblib-style by default, because port databases/sybtcl
|
|
|
|
# relies on sybase-style dblib
|
2013-03-21 18:43:46 +01:00
|
|
|
.if ${PORT_OPTIONS:MMSDBLIB}
|
2004-01-15 19:28:02 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-msdblib
|
2008-12-06 23:43:44 +01:00
|
|
|
.endif
|
|
|
|
|
2002-09-19 22:33:32 +02:00
|
|
|
post-extract:
|
|
|
|
@cd ${WRKSRC} && ${LN} -s freetds.conf freetds.conf.dist
|
2003-04-21 18:07:04 +02:00
|
|
|
@cd ${WRKSRC} && ${LN} -s locales.conf locales.conf.dist
|
|
|
|
@cd ${WRKSRC}/src/pool && ${LN} -s pool.conf pool.conf.dist
|
2002-09-19 22:33:32 +02:00
|
|
|
|
2001-02-14 13:48:45 +01:00
|
|
|
post-patch:
|
2002-09-01 18:07:59 +02:00
|
|
|
@${FIND} ${WRKSRC} -name "Makefile.in" | ${XARGS} ${REINPLACE_CMD} -e \
|
2002-10-08 11:10:00 +02:00
|
|
|
's|<malloc.h>|<stdlib.h>| ; \
|
|
|
|
s|/freetds.conf|/freetds.conf.dist|g ; \
|
2003-04-21 18:07:04 +02:00
|
|
|
s|/locales.conf|/locales.conf.dist|g ; \
|
|
|
|
s|/pool.conf|/pool.conf.dist|g ; \
|
2001-12-24 05:40:36 +01:00
|
|
|
s| common.h||g'
|
2003-11-07 09:26:27 +01:00
|
|
|
|
2001-08-05 06:28:23 +02:00
|
|
|
post-install:
|
2014-02-05 08:37:19 +01: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 18:07:04 +02: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 21:52:39 +01:00
|
|
|
|
2013-03-21 18:43:46 +01:00
|
|
|
.include <bsd.port.mk>
|