pkgsrc/databases/freetds/Makefile

50 lines
1.8 KiB
Makefile
Raw Normal View History

# $NetBSD: Makefile,v 1.61 2017/10/13 17:18:42 taca Exp $
DISTNAME= freetds-1.00.64
CATEGORIES= databases
2016-08-27 16:25:18 +02:00
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
2009-10-17 04:02:43 +02:00
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
2016-02-25 12:46:20 +01:00
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}
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
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'
.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"