2007-09-15 16:34:00 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.30 2007/09/15 20:34:00 simon Exp $
|
2001-08-11 11:31:43 -04:00
|
|
|
|
2005-03-29 22:39:00 -05:00
|
|
|
V= 0.63
|
2004-08-08 20:21:28 -04:00
|
|
|
DISTNAME= freetds-$V
|
2006-11-12 18:28:42 -05:00
|
|
|
PKGNAME= ${DISTNAME}p1
|
2001-08-11 11:31:43 -04:00
|
|
|
CATEGORIES= databases
|
2006-10-28 07:19:20 -04:00
|
|
|
SHARED_LIBS += tds 4.0 # .4.0
|
|
|
|
SHARED_LIBS += ct 3.0 # .3.0
|
|
|
|
SHARED_LIBS += sybdb 5.0 # .5.0
|
|
|
|
SHARED_LIBS += tdssrv 2.0 # .2.0
|
2001-08-11 11:31:43 -04:00
|
|
|
|
2002-09-11 20:12:48 -04:00
|
|
|
# GPL
|
2001-08-11 11:31:43 -04:00
|
|
|
PERMIT_PACKAGE_CDROM= Yes
|
|
|
|
PERMIT_PACKAGE_FTP= Yes
|
|
|
|
PERMIT_DISTFILES_CDROM= Yes
|
|
|
|
PERMIT_DISTFILES_FTP= Yes
|
2005-03-29 22:39:00 -05:00
|
|
|
|
|
|
|
WANTLIB= c ncurses readline
|
2001-08-11 11:31:43 -04:00
|
|
|
|
2007-09-15 16:34:00 -04:00
|
|
|
COMMENT= project to document and implement the TDS protocol
|
2001-08-11 11:31:43 -04:00
|
|
|
HOMEPAGE= http://www.freetds.org/
|
2005-03-29 22:39:00 -05:00
|
|
|
MASTER_SITES= ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/
|
2001-08-11 11:31:43 -04:00
|
|
|
|
2005-06-21 11:50:50 -04:00
|
|
|
FLAVORS= msdblib
|
|
|
|
FLAVOR?=
|
|
|
|
|
2005-12-26 14:15:21 -05:00
|
|
|
USE_LIBTOOL= Yes
|
|
|
|
|
2001-08-11 11:31:43 -04:00
|
|
|
CONFIGURE_STYLE= gnu
|
|
|
|
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
|
|
|
|
--enable-static \
|
2004-01-11 21:46:12 -05:00
|
|
|
--with-libiconv-prefix="${LOCALBASE}" \
|
2004-02-08 05:36:02 -05:00
|
|
|
--disable-threadsafe \
|
|
|
|
--disable-odbc
|
2005-06-21 11:50:50 -04:00
|
|
|
|
|
|
|
.if $(FLAVOR:L:Mmsdblib)
|
|
|
|
CONFIGURE_ARGS+=--enable-msdblib
|
|
|
|
.endif
|
|
|
|
|
2001-08-11 11:31:43 -04:00
|
|
|
MAKE_ENV= RM=rm
|
2005-02-19 17:25:48 -05:00
|
|
|
MODULES= converters/libiconv
|
2004-08-08 20:21:28 -04:00
|
|
|
DOC= share/doc/freetds-$V
|
|
|
|
SUBST_VARS= DOC V
|
2001-12-26 21:56:38 -05:00
|
|
|
|
2001-08-11 11:31:43 -04:00
|
|
|
post-install:
|
2001-10-24 20:12:12 -04:00
|
|
|
@sed -e "s:@sysconfdir@:${SYSCONFDIR}:g" ${WRKSRC}/freetds.conf > \
|
|
|
|
${WRKSRC}/freetds.conf.new
|
2001-08-11 11:31:43 -04:00
|
|
|
@mkdir ${PREFIX}/share/examples/freetds
|
2001-10-24 20:12:12 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/freetds.conf.new \
|
2001-08-11 11:31:43 -04:00
|
|
|
${PREFIX}/share/examples/freetds/freetds.conf-sample
|
2004-01-11 21:46:12 -05:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/src/pool/pool.conf \
|
|
|
|
${PREFIX}/share/examples/freetds/pool.conf-sample
|
2001-08-11 11:31:43 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|