d9273198f8
Author: Frediano Ziglio <freddy77@gmail.com> Date: Sat Sep 30 22:25:16 2017 +0100 ctlib: Add CS_BIGTIME/CS_BIGDATETIME type declarations Author: Frediano Ziglio <freddy77@gmail.com> Date: Fri Sep 22 12:28:30 2017 +0100 ctlib: Support Microsoft DATE/TIME types Author: Frediano Ziglio <freddy77@gmail.com> Date: Thu Sep 21 18:23:06 2017 +0100 ctlib: Support missing Sybase types in _ct_get_client_type Author: Frediano Ziglio <freddy77@gmail.com> Date: Thu Sep 21 20:57:11 2017 +0100 ctlib: Fix wrong type for TIME and DATE from _ct_get_server_type This caused data to be converted in the wrong way. Author: Frediano Ziglio <freddy77@gmail.com> Date: Wed Sep 20 11:20:37 2017 +0100 tds: Fix possible reading buffer overflow converting from char to float Row column data are not NUL terminated so make sure we use terminated strings. This patch also improve checking format errors converting float numbers using strtod instead of atof. Author: Frediano Ziglio <freddy77@gmail.com> Date: Sun Sep 17 17:34:16 2017 +0100 tds: Add missing declaration for Sybase type Declarations are used for bulk copy and datacopy utility.
49 lines
1.8 KiB
Makefile
49 lines
1.8 KiB
Makefile
# $NetBSD: Makefile,v 1.61 2017/10/13 17:18:42 taca Exp $
|
|
|
|
DISTNAME= freetds-1.00.64
|
|
CATEGORIES= databases
|
|
MASTER_SITES= ftp://ftp.freetds.org/pub/freetds/stable/
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
HOMEPAGE= http://www.freetds.org/
|
|
COMMENT= Implementation of TDS protocol used by Sybase and MS-SQL servers
|
|
LICENSE= gnu-lgpl-v2
|
|
|
|
USE_LIBTOOL= yes
|
|
GNU_CONFIGURE= yes
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
CONFIGURE_ARGS+= --datadir=${PREFIX}/share
|
|
CONFIGURE_ARGS+= --with-libiconv-prefix=${BUILDLINK_PREFIX.iconv}
|
|
CONFIGURE_ARGS+= --with-tdsver=7.0
|
|
# no thread-safe resolver functions on NetBSD
|
|
CONFIGURE_ARGS+= --disable-threadsafe
|
|
|
|
# Fails to build the shared lib on SunOS with -O2 or greater
|
|
BUILDLINK_TRANSFORM.SunOS+= rm:-O[23]
|
|
|
|
EGDIR= ${PREFIX}/share/examples/freetds
|
|
CONF_FILES+= ${EGDIR}/freetds.conf ${PKG_SYSCONFDIR}/freetds.conf
|
|
CONF_FILES+= ${EGDIR}/locales.conf ${PKG_SYSCONFDIR}/locales.conf
|
|
CONF_FILES+= ${EGDIR}/pool.conf ${PKG_SYSCONFDIR}/pool.conf
|
|
|
|
# doc/Makefile ignores TARGET_DOCDIR for the files listed in
|
|
# nobase_data_DATA. Make the Makefiles think the documentation is
|
|
# in doc/freetds through symlinks and by overriding DOCDIR.
|
|
MAKE_FLAGS+= DOCDIR=doc/freetds
|
|
INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} ETC=${DESTDIR}${EGDIR}
|
|
|
|
SUBST_CLASSES+= visibility
|
|
SUBST_STAGE.visibility+= pre-configure
|
|
SUBST_MESSAGE.visibility+= Turn off visibility for GCC 4.2
|
|
SUBST_FILES.visibility+= include/freetds/odbc.h \
|
|
include/freetds/popvis.h \
|
|
include/freetds/pushvis.h
|
|
SUBST_SED.visibility+= -e 's,!defined(__MINGW32__),!defined(__MINGW32__) \&\& !(__GNUC__ == 4 \&\& __GNUC_MINOR__ == 2),g'
|
|
|
|
.include "options.mk"
|
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
# rl_on_new_line, rl_reset_line_state
|
|
.include "../../devel/readline/buildlink3.mk"
|
|
.include "../../devel/libltdl/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|