mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-28 01:06:17 +00:00
3f651573ad
Begin autotools sanitization sequence by requiring ports to explicitly specify which version of {libtool,autoconf,automake} they need, erasing the concept of a "system default". For ports-in-waiting: USE_LIBTOOL=YES -> USE_LIBTOOL_VER=13 USE_AUTOCONF=YES -> USE_AUTOCONF_VER=213 USE_AUTOMAKE=YES -> USE_AUTOMAKE_VER=14 Ports attempting to use the old style system after June 1st 2004 will be sorely disappointed.
64 lines
1.8 KiB
Makefile
64 lines
1.8 KiB
Makefile
# New ports collection makefile for: MyODBC
|
|
# Date created: 24 Oct 2000
|
|
# Whom: ebakke@trolltech.com
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= myodbc
|
|
PORTVERSION= 2.50.39
|
|
PORTREVISION= 1
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://www.mysql.com/Downloads/MyODBC/ \
|
|
ftp://sunsite.dk/mirrors/mysql/Downloads/MyODBC/ \
|
|
ftp://ftp.sunet.se/pub/unix/databases/relational/mysql/Downloads/MyODBC/
|
|
DISTNAME= MyODBC-${PORTVERSION}
|
|
|
|
MAINTAINER= ebakke@trolltech.com
|
|
COMMENT= ODBC driver for MySQL
|
|
|
|
LIB_DEPENDS= mysqlclient.10:${PORTSDIR}/databases/mysql323-client
|
|
|
|
USE_GMAKE= yes
|
|
USE_LIBTOOL_VER= 13
|
|
CONFIGURE_ARGS= --with-mysql-libs=${LOCALBASE}/lib/mysql \
|
|
--with-mysql-includes=${LOCALBASE}/include/mysql
|
|
|
|
# MyODBC needs an ODBC driver manager to be installed, and it supports both
|
|
# iODBC and unixODBC. The following variable may be set at built-time to
|
|
# either "iodbc" or "unixodbc", with the former being the default:
|
|
DRIVER_MANAGER?= iodbc
|
|
|
|
.if ${DRIVER_MANAGER} == "unixodbc"
|
|
CONFIGURE_ARGS+= --with-odbc-ini=${LOCALBASE}/etc/odbc.ini \
|
|
--with-unixODBC=${LOCALBASE}
|
|
LIB_DEPENDS+= odbc.1:${PORTSDIR}/databases/unixODBC
|
|
.else # assume we're using iodbc
|
|
LIB_DEPENDS+= iodbc.3:${PORTSDIR}/databases/libiodbc
|
|
CONFIGURE_ARGS+= --with-odbc-ini=${LOCALBASE}/etc/libiodbc/odbc.ini
|
|
.endif
|
|
|
|
# Allow a new value of ODBCVER to be set at build-time
|
|
.if defined(ODBCVER)
|
|
post-patch:
|
|
cd ${WRKSRC}; \
|
|
${MV} myodbc.h myodbc.h.orig; \
|
|
${SED} -e "s/ODBCVER 0x0250/ODBCVER ${ODBCVER}/" < myodbc.h.orig > myodbc.h
|
|
.endif
|
|
|
|
# XXX untested
|
|
.if defined(STATIC)
|
|
CONFIGURE_ARGS+= --enable-shared=no \
|
|
--enable-static=yes
|
|
.endif
|
|
|
|
post-install:
|
|
.if !defined(NOPORTDOCS)
|
|
@ ${MKDIR} ${DOCSDIR}
|
|
# Install the INSTALL file as well, since it describes how to set up odbc.ini
|
|
@ ${INSTALL_DATA} ${WRKSRC}/INSTALL ${DOCSDIR}
|
|
@ ${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
|
|
.endif
|
|
|
|
.include <bsd.port.mk>
|