2005-06-21 11:50:50 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.25 2005/06/21 15:50:51 jcs 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
|
2001-08-11 11:31:43 -04:00
|
|
|
CATEGORIES= databases
|
|
|
|
|
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
|
|
|
|
|
|
|
COMMENT= "project to document and implement the TDS protocol"
|
|
|
|
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-03-29 22:39:00 -05:00
|
|
|
MAINTAINER= joshua stein <jcs@openbsd.org>
|
2001-08-11 11:31:43 -04:00
|
|
|
|
2005-06-21 11:50:50 -04:00
|
|
|
FLAVORS= msdblib
|
|
|
|
FLAVOR?=
|
|
|
|
|
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>
|