2018-04-18 00:29:31 +02:00
|
|
|
# $NetBSD: Makefile,v 1.62 2018/04/17 22:29:31 wiz Exp $
|
2000-05-16 03:03:47 +02:00
|
|
|
|
2017-10-13 19:18:42 +02:00
|
|
|
DISTNAME= freetds-1.00.64
|
2018-04-18 00:29:31 +02:00
|
|
|
PKGREVISION= 1
|
2000-05-16 03:03:47 +02:00
|
|
|
CATEGORIES= databases
|
2016-08-27 16:25:18 +02:00
|
|
|
MASTER_SITES= ftp://ftp.freetds.org/pub/freetds/stable/
|
2000-05-16 03:03:47 +02:00
|
|
|
|
2012-04-16 00:00:58 +02:00
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
2000-05-16 03:03:47 +02:00
|
|
|
HOMEPAGE= http://www.freetds.org/
|
2008-05-08 15:28:39 +02:00
|
|
|
COMMENT= Implementation of TDS protocol used by Sybase and MS-SQL servers
|
2009-10-17 04:02:43 +02:00
|
|
|
LICENSE= gnu-lgpl-v2
|
2000-05-16 03:03:47 +02:00
|
|
|
|
2011-08-19 09:54:04 +02:00
|
|
|
USE_LIBTOOL= yes
|
2002-06-23 05:38:21 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2011-08-19 09:54:04 +02:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
2005-10-09 14:58:59 +02:00
|
|
|
CONFIGURE_ARGS+= --datadir=${PREFIX}/share
|
2011-08-19 09:54:04 +02:00
|
|
|
CONFIGURE_ARGS+= --with-libiconv-prefix=${BUILDLINK_PREFIX.iconv}
|
2001-06-21 01:41:03 +02:00
|
|
|
CONFIGURE_ARGS+= --with-tdsver=7.0
|
2005-10-09 14:58:59 +02:00
|
|
|
# no thread-safe resolver functions on NetBSD
|
|
|
|
CONFIGURE_ARGS+= --disable-threadsafe
|
|
|
|
|
2012-06-08 14:18:42 +02:00
|
|
|
# Fails to build the shared lib on SunOS with -O2 or greater
|
2016-02-25 12:46:20 +01:00
|
|
|
BUILDLINK_TRANSFORM.SunOS+= rm:-O[23]
|
2012-06-08 14:18:42 +02:00
|
|
|
|
2002-06-23 05:38:21 +02:00
|
|
|
EGDIR= ${PREFIX}/share/examples/freetds
|
2008-05-08 15:28:39 +02:00
|
|
|
CONF_FILES+= ${EGDIR}/freetds.conf ${PKG_SYSCONFDIR}/freetds.conf
|
2002-10-26 20:45:28 +02:00
|
|
|
CONF_FILES+= ${EGDIR}/locales.conf ${PKG_SYSCONFDIR}/locales.conf
|
2003-06-11 15:24:09 +02:00
|
|
|
CONF_FILES+= ${EGDIR}/pool.conf ${PKG_SYSCONFDIR}/pool.conf
|
2000-05-16 03:03:47 +02:00
|
|
|
|
2008-05-08 15:28:39 +02:00
|
|
|
# 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
|
2011-08-19 09:54:04 +02:00
|
|
|
INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} ETC=${DESTDIR}${EGDIR}
|
2008-05-08 15:28:39 +02:00
|
|
|
|
2014-07-18 13:22:23 +02:00
|
|
|
SUBST_CLASSES+= visibility
|
|
|
|
SUBST_STAGE.visibility+= pre-configure
|
|
|
|
SUBST_MESSAGE.visibility+= Turn off visibility for GCC 4.2
|
2017-10-13 19:18:42 +02:00
|
|
|
SUBST_FILES.visibility+= include/freetds/odbc.h \
|
|
|
|
include/freetds/popvis.h \
|
|
|
|
include/freetds/pushvis.h
|
2014-07-18 13:22:23 +02:00
|
|
|
SUBST_SED.visibility+= -e 's,!defined(__MINGW32__),!defined(__MINGW32__) \&\& !(__GNUC__ == 4 \&\& __GNUC_MINOR__ == 2),g'
|
|
|
|
|
2011-08-19 09:54:04 +02:00
|
|
|
.include "options.mk"
|
2005-12-31 05:05:31 +01:00
|
|
|
|
2008-05-08 15:28:39 +02:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
2013-07-15 04:02:17 +02:00
|
|
|
# rl_on_new_line, rl_reset_line_state
|
2008-05-08 15:28:39 +02:00
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
2010-12-16 07:56:29 +01:00
|
|
|
.include "../../devel/libltdl/buildlink3.mk"
|
2000-05-16 03:03:47 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|