2019-08-12 13:58:06 +00:00
|
|
|
# $OpenBSD: Makefile,v 1.98 2019/08/12 13:58:06 sthen Exp $
|
2001-08-11 15:31:43 +00:00
|
|
|
|
2009-08-01 14:11:19 +00:00
|
|
|
COMMENT= database drivers for Sybase/Microsoft SQL Server
|
|
|
|
|
2019-08-12 13:58:06 +00:00
|
|
|
DISTNAME= freetds-1.1.12
|
2011-04-15 16:10:37 +00:00
|
|
|
|
2019-02-19 22:49:31 +00:00
|
|
|
SHARED_LIBS += ct 6.1 # 4.0
|
2019-03-20 18:12:18 +00:00
|
|
|
SHARED_LIBS += sybdb 8.1 # 6.0
|
2015-06-12 07:04:29 +00:00
|
|
|
SHARED_LIBS += tdsodbc 2.0 # unknown
|
2009-08-01 14:11:19 +00:00
|
|
|
|
2001-08-11 15:31:43 +00:00
|
|
|
CATEGORIES= databases
|
|
|
|
|
2019-07-10 22:25:04 +00:00
|
|
|
HOMEPAGE= https://www.freetds.org/
|
2009-08-01 14:11:19 +00:00
|
|
|
|
2019-04-30 14:41:35 +00:00
|
|
|
MAINTAINER= Stuart Henderson <sthen@openbsd.org>
|
|
|
|
|
2019-07-10 21:01:26 +00:00
|
|
|
MASTER_SITES= https://www.freetds.org/files/stable/ \
|
2019-02-19 22:49:31 +00:00
|
|
|
ftp://ftp.freetds.org/pub/freetds/stable/
|
2015-06-12 07:04:29 +00:00
|
|
|
|
2011-04-01 23:03:12 +00:00
|
|
|
# LGPLv2+ (most things) GPLv2+ (fisql, tdspool) FDL (docs)
|
2019-06-03 16:06:50 +00:00
|
|
|
PERMIT_PACKAGE= Yes
|
2005-03-30 03:39:00 +00:00
|
|
|
|
2019-03-20 18:12:18 +00:00
|
|
|
WANTLIB += c curses ffi gmp gnutls hogweed iconv idn2 intl iodbc
|
|
|
|
WANTLIB += iodbcinst nettle p11-kit pthread readline tasn1 unistring
|
2001-08-11 15:31:43 +00:00
|
|
|
|
2016-09-13 11:44:06 +00:00
|
|
|
LIB_DEPENDS= converters/libiconv \
|
|
|
|
databases/iodbc,-main \
|
2019-03-20 18:12:18 +00:00
|
|
|
security/gnutls
|
2005-06-21 15:50:50 +00:00
|
|
|
|
2010-09-12 09:32:58 +00:00
|
|
|
# requires database server
|
2019-02-19 22:49:31 +00:00
|
|
|
TEST_IS_INTERACTIVE= Yes
|
2010-09-12 09:32:58 +00:00
|
|
|
|
2019-02-19 22:49:31 +00:00
|
|
|
CONFIGURE_STYLE= gnu
|
2015-06-12 07:04:29 +00:00
|
|
|
CONFIGURE_ENV= ac_cv_prog_DOXYGEN=
|
2016-06-29 09:17:41 +00:00
|
|
|
CONFIGURE_ARGS= --enable-static \
|
2009-08-15 00:06:45 +00:00
|
|
|
--with-iodbc="${LOCALBASE}" \
|
2011-03-24 12:51:19 +00:00
|
|
|
--with-libiconv-prefix="${LOCALBASE}" \
|
2019-03-20 18:12:18 +00:00
|
|
|
--with-gnutls
|
2005-06-21 15:50:50 +00:00
|
|
|
|
2015-06-28 19:24:13 +00:00
|
|
|
# picks up com_err.h from e2fsprogs for gssapi support
|
|
|
|
CONFIGURE_ENV+= ac_cv_header_com_err_h=no
|
|
|
|
|
2011-09-08 17:13:51 +00:00
|
|
|
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/freetds
|
2013-09-19 17:11:20 +00:00
|
|
|
|
2019-02-20 17:15:29 +00:00
|
|
|
pre-configure:
|
2015-07-18 21:11:18 +00:00
|
|
|
sed -i 's,/etc/odbc.ini,${SYSCONFDIR}/iodbc/odbc.ini,' \
|
2015-06-12 07:04:29 +00:00
|
|
|
${WRKSRC}/src/odbc/connectparams.c
|
2001-08-11 15:31:43 +00:00
|
|
|
|
2015-11-04 23:18:25 +00:00
|
|
|
post-install:
|
|
|
|
rm -rf ${PREFIX}/share/doc/freetds
|
|
|
|
|
2001-08-11 15:31:43 +00:00
|
|
|
.include <bsd.port.mk>
|