pkgsrc/databases/freetds/Makefile
taca 0595af9302 databases/freetds: update to 1.00.58.
Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Sep 16 13:52:48 2017 +0100

    ctlib: Do not mix 2 set of results

    Variable results was used to store 2 states ending up
    with possible wrong result from _ct_bind_data.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Sat Sep 16 12:51:49 2017 +0100

    Avoid mixing different column information

    Was possible that for multiple column recordset the binding
    were reused between columns combining row binding with empty ones.
    This could cause some wrong metadata information to be returned.

Author: Frediano Ziglio <freddy77@gmail.com>
Date:   Wed Sep 13 15:48:03 2017 +0100

    build: Fix wrong AC_LANG_SOURCE usage

    This macro requires a single parameter.
    Usage confused with AC_LANG_PROGRAM.
2017-09-17 17:31:03 +00:00

49 lines
1.8 KiB
Makefile

# $NetBSD: Makefile,v 1.60 2017/09/17 17:31:03 taca Exp $
DISTNAME= freetds-1.00.58
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+= src/tds/tds_checks.h
SUBST_FILES.visibility+= include/*.h
SUBST_FILES.visibility+= include/*/*.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"