openbsd-ports/databases/freetds/Makefile
ajacoutot 96d502a25f Fix DEPENDS after gnutls update.
ok landry@ jasper@
2011-04-15 16:10:37 +00:00

91 lines
2.4 KiB
Makefile

# $OpenBSD: Makefile,v 1.50 2011/04/15 16:10:38 ajacoutot Exp $
COMMENT= database drivers for Sybase/Microsoft SQL Server
V= 0.82
PATCHVER= 20110223
DISTNAME= freetds-$V
PKGNAME= ${DISTNAME}.${PATCHVER}
PATCHFILES= freetds-post82-${PATCHVER}.diff.gz:0
REVISION= 0
SHARED_LIBS += ct 4.0 # .4.0
SHARED_LIBS += sybdb 6.0 # .5.0
SHARED_LIBS += tdsodbc 0.0 # .0.0
CATEGORIES= databases
HOMEPAGE= http://www.freetds.org/
# also http://freetds.schemamania.org/ http://freetds.sourceforge.net/
# LGPLv2+ (most things) GPLv2+ (fisql, tdspool) FDL (docs)
PERMIT_PACKAGE_CDROM= Yes
PERMIT_PACKAGE_FTP= Yes
PERMIT_DISTFILES_CDROM= Yes
PERMIT_DISTFILES_FTP= Yes
WANTLIB += c gmp gnutls hogweed iodbc iodbcinst ncurses nettle
WANTLIB += pthread readline tasn1 z
MASTER_SITES= ftp://ftp.ibiblio.org/pub/Linux/ALPHA/freetds/stable/
MASTER_SITES0= http://spacehopper.org/mirrors/
AUTOCONF_VERSION=2.59
AUTOMAKE_VERSION=1.9
MODULES= devel/gettext
# XXX uses libtool m4 macros
BUILD_DEPENDS= devel/doxygen>=1.7.2 \
devel/libtool \
${MODGNU_AUTOCONF_DEPENDS} \
${MODGNU_AUTOMAKE_DEPENDS}
LIB_DEPENDS= databases/iodbc,-main \
security/gnutls
FLAVORS= msdblib
FLAVOR?=
# requires database server
REGRESS_IS_INTERACTIVE=Yes
USE_LIBTOOL= Yes
USE_GROFF= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= ${CONFIGURE_SHARED} \
--disable-threadsafe \
--enable-static \
--with-gnutls \
--with-iodbc="${LOCALBASE}" \
--with-libiconv-prefix="${LOCALBASE}" \
--with-tdsver=8.0
CONFIGURE_ENV= CFLAGS="${CFLAGS} -I${LOCALBASE}/include -L${LOCALBASE}/lib"
.if $(FLAVOR:L:Mmsdblib)
CONFIGURE_ARGS+=--enable-msdblib
.endif
MAKE_ENV= RM=rm
DOC= share/doc/freetds
SUBST_VARS= DOC V
pre-configure:
cd ${WRKSRC}/doc/doc; ln -s freetds-0.82 freetds-0.82.1
cd ${WRKSRC}; \
AUTOCONF_VERSION=${AUTOCONF_VERSION} \
AUTOMAKE_VERSION=${AUTOMAKE_VERSION} \
NOCONFIGURE=1 ./autogen.sh
@${SUBST_CMD} ${WRKSRC}/src/odbc/connectparams.c
post-install:
@mkdir ${PREFIX}/share/examples/freetds; \
${INSTALL_DATA} ${WRKSRC}/freetds.conf \
${PREFIX}/share/examples/freetds/freetds.conf-sample; \
${INSTALL_DATA} ${WRKSRC}/src/pool/pool.conf \
${PREFIX}/share/examples/freetds/pool.conf-sample; \
cd ${PREFIX}/lib && ln -s libtdsodbc.so.${LIBtdsodbc_VERSION} \
libtdsodbc.so; \
mv ${PREFIX}/share/doc/freetds-* ${PREFIX}/share/doc/freetds
.include <bsd.port.mk>