1999-11-26 21:52:39 +01:00
|
|
|
# New ports collection makefile for: freetds
|
|
|
|
# Date created: 02 Nov 1999
|
|
|
|
# Whom: Domas Mituzas <midom@dammit.lt>
|
|
|
|
#
|
|
|
|
# $FreeBSD$
|
|
|
|
|
2000-04-09 00:49:07 +02:00
|
|
|
PORTNAME= freetds
|
2003-04-11 17:51:25 +02:00
|
|
|
PORTVERSION= 0.61
|
1999-11-26 21:52:39 +01:00
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
2003-04-11 17:51:25 +02:00
|
|
|
MASTER_SITE_SUBDIR= ALPHA/freetds/stable
|
1999-11-26 21:52:39 +01:00
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2003-04-11 17:51:25 +02:00
|
|
|
MAINTAINER= kiesel@schlund.de
|
2003-02-20 18:07:10 +01:00
|
|
|
COMMENT= Sybase/Microsoft TDS protocol library
|
1999-11-26 21:52:39 +01:00
|
|
|
|
2002-03-18 10:46:46 +01:00
|
|
|
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
|
2001-12-24 05:40:36 +01:00
|
|
|
|
2002-09-01 18:07:59 +02:00
|
|
|
USE_REINPLACE= yes
|
2002-09-19 22:33:32 +02:00
|
|
|
USE_GMAKE= yes
|
|
|
|
USE_LIBTOOL= yes
|
2001-12-24 05:40:36 +01:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_ARGS= --with-tdsver=4.2
|
2001-02-14 13:48:45 +01:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
2002-09-19 22:33:32 +02:00
|
|
|
MAN1= freebcp.1 tsql.1
|
|
|
|
|
2001-12-24 05:40:36 +01: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 22:33:32 +02:00
|
|
|
post-extract:
|
|
|
|
@cd ${WRKSRC} && ${LN} -s freetds.conf freetds.conf.dist
|
|
|
|
|
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 ; \
|
2001-12-24 05:40:36 +01:00
|
|
|
s| common.h||g'
|
2001-08-05 06:28:23 +02:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !exists(${PREFIX}/etc/freetds.conf)
|
|
|
|
@${CP} ${PREFIX}/etc/freetds.conf.dist ${PREFIX}/etc/freetds.conf
|
|
|
|
.endif
|
2001-12-24 05:40:36 +01:00
|
|
|
@${MKDIR} ${PREFIX}/etc/freetds
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/interfaces ${PREFIX}/etc/freetds
|
1999-11-26 21:52:39 +01:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|