1999-11-26 20:52:39 +00:00
|
|
|
# New ports collection makefile for: freetds
|
|
|
|
# Date created: 02 Nov 1999
|
|
|
|
# Whom: Domas Mituzas <midom@dammit.lt>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
2000-04-08 22:49:07 +00:00
|
|
|
PORTNAME= freetds
|
2003-11-07 08:26:27 +00:00
|
|
|
PORTVERSION= 0.61.2
|
1999-11-26 20:52:39 +00:00
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
2003-04-11 15:51:25 +00:00
|
|
|
MASTER_SITE_SUBDIR= ALPHA/freetds/stable
|
1999-11-26 20:52:39 +00:00
|
|
|
|
2003-04-11 15:51:25 +00:00
|
|
|
MAINTAINER= kiesel@schlund.de
|
2003-02-20 17:07:10 +00:00
|
|
|
COMMENT= Sybase/Microsoft TDS protocol library
|
1999-11-26 20:52:39 +00:00
|
|
|
|
2002-03-18 09:46:46 +00:00
|
|
|
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
|
2003-11-07 08:26:27 +00:00
|
|
|
BUILD_DEPENDS= ${LOCALBASE}/bin/automake17:${PORTSDIR}/devel/automake17
|
2001-12-24 04:40:36 +00:00
|
|
|
|
2002-09-01 16:07:59 +00:00
|
|
|
USE_REINPLACE= yes
|
2002-09-19 20:33:32 +00:00
|
|
|
USE_GMAKE= yes
|
2003-11-07 08:26:27 +00:00
|
|
|
GNU_GONFIGURE= yes
|
2002-09-19 20:33:32 +00:00
|
|
|
USE_LIBTOOL= yes
|
2003-11-07 08:26:27 +00:00
|
|
|
NO_AUTOCONF= yes
|
|
|
|
NO_AUTOMAKE= yes
|
2001-12-24 04:40:36 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
2003-11-07 08:26:27 +00:00
|
|
|
CONFIGURE_ARGS= --with-tdsver=5.0
|
2001-02-14 12:48:45 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
2002-09-19 20:33:32 +00:00
|
|
|
MAN1= freebcp.1 tsql.1
|
|
|
|
|
2001-12-24 04:40:36 +00:00
|
|
|
.if defined(WITH_IODBC)
|
|
|
|
LIB_DEPENDS+= iodbc:${PORTSDIR}/databases/libiodbc
|
|
|
|
CONFIGURE_ARGS+= --with-iodbc=${LOCALBASE}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_UNIXODBC)
|
|
|
|
LIB_DEPENDS+= odbc:${PORTSDIR}/databases/unixODBC
|
|
|
|
CONFIGURE_ARGS+= --with-unixodbc=${LOCALBASE}
|
|
|
|
.endif
|
|
|
|
|
|
|
|
.if defined(WITH_IODBC) || defined(WITH_UNIXODBC)
|
|
|
|
PLIST_SUB+= ODBC=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ODBC="@comment "
|
|
|
|
.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'
|
2001-08-05 04:28:23 +00:00
|
|
|
|
2003-11-07 08:26:27 +00:00
|
|
|
post-configure:
|
|
|
|
@cd ${WRKSRC} && ${REINPLACE_CMD} -e \
|
|
|
|
's|automake-1..|automake17|g ; \
|
|
|
|
s|aclocal-1..|aclocal17|g' Makefile
|
|
|
|
|
2001-08-05 04:28:23 +00:00
|
|
|
post-install:
|
2001-12-24 04:40:36 +00:00
|
|
|
@${MKDIR} ${PREFIX}/etc/freetds
|
2003-04-21 16:07:04 +00:00
|
|
|
@${INSTALL_DATA} ${WRKSRC}/interfaces ${PREFIX}/etc/freetds/interfaces.dist
|
|
|
|
@${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
|
|
|
|
|
|
|
.include <bsd.port.mk>
|