2010-05-02 07:36:27 -04:00
|
|
|
# $OpenBSD: Makefile,v 1.36 2010/05/02 11:36:27 sthen Exp $
|
2001-08-11 11:31:43 -04:00
|
|
|
|
2009-08-01 10:11:19 -04:00
|
|
|
COMMENT= database drivers for Sybase/Microsoft SQL Server
|
|
|
|
|
|
|
|
V= 0.82
|
2009-10-10 06:33:15 -04:00
|
|
|
PATCHVER= 20090903
|
2004-08-08 20:21:28 -04:00
|
|
|
DISTNAME= freetds-$V
|
2010-05-02 07:36:27 -04:00
|
|
|
PKGNAME= ${DISTNAME}.1pre${PATCHVER}p0
|
2009-10-10 10:16:55 -04:00
|
|
|
PATCHFILES= freetds-post82-${PATCHVER}.diff.fixed.gz:0
|
2009-08-01 10:11:19 -04:00
|
|
|
|
|
|
|
SHARED_LIBS += ct 4.0 # .4.0
|
|
|
|
SHARED_LIBS += sybdb 6.0 # .5.0
|
|
|
|
SHARED_LIBS += tdsodbc 0.0 # .0.0
|
|
|
|
|
2001-08-11 11:31:43 -04:00
|
|
|
CATEGORIES= databases
|
|
|
|
|
2009-08-01 10:11:19 -04:00
|
|
|
HOMEPAGE= http://www.freetds.org/
|
|
|
|
|
|
|
|
# GPLv2+
|
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
|
|
|
|
2009-08-01 10:11:19 -04:00
|
|
|
MASTER_SITES0= http://spacehopper.org/mirrors/
|
|
|
|
|
2009-08-14 20:06:45 -04:00
|
|
|
WANTLIB= c ncurses readline pthread z
|
2001-08-11 11:31:43 -04:00
|
|
|
|
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
|
|
|
|
2009-08-14 20:06:45 -04:00
|
|
|
MODULES= devel/gettext
|
2009-08-06 06:13:41 -04:00
|
|
|
BUILD_DEPENDS= ::devel/doxygen
|
2009-08-14 20:06:45 -04:00
|
|
|
LIB_DEPENDS= iodbc,iodbcinst::databases/iodbc,-main \
|
|
|
|
gcrypt::security/libgcrypt \
|
|
|
|
gnutls::security/gnutls \
|
|
|
|
gpg-error::security/libgpg-error \
|
|
|
|
tasn1::security/libtasn1
|
2009-08-01 10:11:19 -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} \
|
2004-02-08 05:36:02 -05:00
|
|
|
--disable-threadsafe \
|
2009-08-14 20:06:45 -04:00
|
|
|
--enable-static \
|
2010-05-02 07:36:27 -04:00
|
|
|
--with-tdsver=8.0 \
|
2009-08-14 20:06:45 -04:00
|
|
|
--with-gnutls \
|
|
|
|
--with-iodbc="${LOCALBASE}" \
|
|
|
|
--with-libiconv-prefix="${LOCALBASE}"
|
2009-08-01 10:11:19 -04:00
|
|
|
|
|
|
|
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib"
|
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
|
2009-10-10 10:16:55 -04:00
|
|
|
DOC= share/doc/freetds
|
2004-08-08 20:21:28 -04:00
|
|
|
SUBST_VARS= DOC V
|
2001-12-26 21:56:38 -05:00
|
|
|
|
2009-08-01 10:11:19 -04:00
|
|
|
pre-configure:
|
|
|
|
@${SUBST_CMD} ${WRKSRC}/src/odbc/connectparams.c
|
|
|
|
|
2001-08-11 11:31:43 -04:00
|
|
|
post-install:
|
|
|
|
@mkdir ${PREFIX}/share/examples/freetds
|
2009-08-01 10:11:19 -04:00
|
|
|
${INSTALL_DATA} ${WRKSRC}/freetds.conf \
|
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
|
2009-08-01 10:11:19 -04:00
|
|
|
@cd ${PREFIX}/lib && ln -s libtdsodbc.so.${LIBtdsodbc_VERSION} \
|
|
|
|
libtdsodbc.so
|
2009-10-10 10:16:55 -04:00
|
|
|
@mv ${PREFIX}/share/doc/freetds-$V.1.dev.20090930 \
|
|
|
|
${PREFIX}/share/doc/freetds
|
2001-08-11 11:31:43 -04:00
|
|
|
|
|
|
|
.include <bsd.port.mk>
|