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
|
2001-12-24 04:40:36 +00:00
|
|
|
PORTVERSION= 0.53
|
2002-03-30 08:30:29 +00:00
|
|
|
PORTREVISION= 2
|
1999-11-26 20:52:39 +00:00
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= ${MASTER_SITE_SUNSITE}
|
|
|
|
MASTER_SITE_SUBDIR= ALPHA/freetds
|
|
|
|
EXTRACT_SUFX= .tgz
|
|
|
|
|
2001-01-30 13:53:30 +00:00
|
|
|
MAINTAINER= ports@FreeBSD.org
|
1999-11-26 20:52:39 +00:00
|
|
|
|
2002-03-18 09:46:46 +00:00
|
|
|
LIB_DEPENDS= iconv.3:${PORTSDIR}/converters/libiconv
|
2001-12-24 04:40:36 +00:00
|
|
|
|
2001-02-14 12:48:45 +00:00
|
|
|
USE_GMAKE= yes
|
2001-12-24 04:40:36 +00:00
|
|
|
GNU_CONFIGURE= yes
|
2002-09-01 16:07:59 +00:00
|
|
|
USE_REINPLACE= yes
|
2001-12-24 04:40:36 +00:00
|
|
|
CONFIGURE_ENV= CPPFLAGS="-I${LOCALBASE}/include" \
|
|
|
|
LDFLAGS="-L${LOCALBASE}/lib"
|
|
|
|
CONFIGURE_ARGS= --with-tdsver=4.2
|
2001-02-14 12:48:45 +00:00
|
|
|
INSTALLS_SHLIB= yes
|
|
|
|
|
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)
|
2002-07-15 17:21:56 +00:00
|
|
|
USE_GNOMENG= yes
|
|
|
|
USE_GNOME= glib12
|
2001-12-24 04:40:36 +00:00
|
|
|
PLIST_SUB+= ODBC=""
|
|
|
|
.else
|
|
|
|
PLIST_SUB+= ODBC="@comment "
|
|
|
|
.endif
|
|
|
|
|
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 \
|
2001-12-24 04:40:36 +00:00
|
|
|
's|/freetds.conf|/freetds.conf.dist|g ; \
|
2002-09-01 16:07:59 +00:00
|
|
|
s|glib-config|$$(GLIB_CONFIG)|g ; \
|
|
|
|
s|-lglib|`$$(GLIB_CONFIG) --libs glib`|g ; \
|
2001-12-24 04:40:36 +00:00
|
|
|
s| common.h||g'
|
2001-08-05 04:28:23 +00:00
|
|
|
|
|
|
|
post-install:
|
|
|
|
.if !exists(${PREFIX}/etc/freetds.conf)
|
|
|
|
@${CP} ${PREFIX}/etc/freetds.conf.dist ${PREFIX}/etc/freetds.conf
|
|
|
|
.endif
|
2001-12-24 04:40:36 +00:00
|
|
|
@${MKDIR} ${PREFIX}/etc/freetds
|
|
|
|
${INSTALL_DATA} ${WRKSRC}/interfaces ${PREFIX}/etc/freetds
|
1999-11-26 20:52:39 +00:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|