openbsd-ports/databases/freetds/Makefile

55 lines
1.4 KiB
Makefile
Raw Normal View History

# $OpenBSD: Makefile,v 1.30 2007/09/15 20:34:00 simon Exp $
V= 0.63
DISTNAME= freetds-$V
PKGNAME= ${DISTNAME}p1
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
2002-09-11 20:12:48 -04:00
# GPL
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB= c ncurses readline
COMMENT= project to document and implement the TDS protocol
HOMEPAGE= http://www.freetds.org/
MASTER_SITES= ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/
FLAVORS= msdblib
FLAVOR?=
2005-12-26 14:15:21 -05:00
USE_LIBTOOL= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--enable-static \
2004-01-11 21:46:12 -05:00
--with-libiconv-prefix="${LOCALBASE}" \
--disable-threadsafe \
--disable-odbc
.if $(FLAVOR:L:Mmsdblib)
CONFIGURE_ARGS+=--enable-msdblib
.endif
MAKE_ENV= RM=rm
MODULES= converters/libiconv
DOC= share/doc/freetds-$V
SUBST_VARS= DOC V
2001-12-26 21:56:38 -05:00
post-install:
2001-10-24 20:12:12 -04:00
@sed -e "s:@sysconfdir@:${SYSCONFDIR}:g" ${WRKSRC}/freetds.conf > \
${WRKSRC}/freetds.conf.new
@mkdir ${PREFIX}/share/examples/freetds
2001-10-24 20:12:12 -04:00
${INSTALL_DATA} ${WRKSRC}/freetds.conf.new \
${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
.include <bsd.port.mk>