2009-10-17 04:02:43 +02:00
|
|
|
# $NetBSD: Makefile,v 1.41 2009/10/17 02:02:43 taca Exp $
|
2000-05-16 03:03:47 +02:00
|
|
|
|
2008-05-08 15:28:39 +02:00
|
|
|
DISTNAME= freetds-0.82
|
2009-05-20 02:58:05 +02:00
|
|
|
PKGREVISION= 2
|
2000-05-16 03:03:47 +02:00
|
|
|
CATEGORIES= databases
|
2008-05-08 15:28:39 +02:00
|
|
|
MASTER_SITES= ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/ \
|
|
|
|
ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/old/ \
|
|
|
|
ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/current/
|
2000-05-16 03:03:47 +02:00
|
|
|
|
2003-07-17 23:21:03 +02:00
|
|
|
MAINTAINER= tsarna@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
|
|
|
|
2008-05-08 15:28:39 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
2001-06-21 01:41:03 +02:00
|
|
|
|
2005-12-30 22:07:42 +01:00
|
|
|
.include "options.mk"
|
|
|
|
|
2008-05-08 15:28:39 +02:00
|
|
|
USE_LIBTOOL= yes
|
|
|
|
USE_GNU_READLINE= yes # rl_on_new_line, rl_reset_line_state
|
2002-06-23 05:38:21 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR:Q}
|
2005-10-09 14:58:59 +02:00
|
|
|
CONFIGURE_ARGS+= --datadir=${PREFIX}/share
|
2008-05-08 15:28:39 +02:00
|
|
|
CONFIGURE_ARGS+= --with-libiconv-prefix=${BUILDLINK_PREFIX.iconv:Q}
|
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
|
|
|
|
|
2008-05-08 15:28:39 +02:00
|
|
|
DOCDIR= ${PREFIX}/share/doc/freetds
|
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.
|
2005-12-31 05:05:31 +01:00
|
|
|
#
|
2008-05-08 15:28:39 +02:00
|
|
|
MAKE_FLAGS+= DOCDIR=doc/freetds
|
|
|
|
INSTALL_MAKE_FLAGS+= ${MAKE_FLAGS} ETC=${DESTDIR}${EGDIR:Q}
|
|
|
|
|
2005-12-31 05:05:31 +01:00
|
|
|
pre-build:
|
2008-05-08 15:28:39 +02:00
|
|
|
cd ${WRKSRC}/doc/doc && ln -s ${DISTNAME:Q} freetds
|
2005-12-31 05:05:31 +01:00
|
|
|
|
2008-05-08 15:28:39 +02:00
|
|
|
# The FreeTDS documentation is generated by doxygen and the file names
|
|
|
|
# change from release to release. Rather than having the PLIST change
|
|
|
|
# radically between releases, just generate the documentation entries
|
|
|
|
# dynamically for the PLIST.
|
2005-12-31 05:05:31 +01:00
|
|
|
#
|
2008-05-08 15:28:39 +02:00
|
|
|
GENERATE_PLIST+= \
|
|
|
|
${ECHO} "@comment The following lines are automatically generated." && \
|
|
|
|
( cd ${WRKSRC}/doc/doc/${DISTNAME} && \
|
|
|
|
${FIND} reference userguide \! -type d -print && \
|
|
|
|
cd ${WRKSRC}/doc && ${FIND} images -name "*.gif" -print ) | \
|
2009-06-16 17:25:31 +02:00
|
|
|
${SED} -e "s,^,"${DOCDIR:S|${PREFIX}/||:Q}"/," | ${SORT};
|
2005-12-31 05:05:31 +01:00
|
|
|
|
2008-05-08 15:28:39 +02:00
|
|
|
.include "../../converters/libiconv/buildlink3.mk"
|
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
2000-05-16 03:03:47 +02:00
|
|
|
.include "../../mk/bsd.pkg.mk"
|