2008-02-09 08:06:33 +01:00
|
|
|
# $NetBSD: Makefile.common,v 1.22 2008/02/09 07:06:33 adam Exp $
|
databases/unixodbc - ODBC 2.x/3.x driver manager
The unixODBC project provides UNIX applications with the same ODBC 3.51
API and facilities available under MS Windows. It provides a Driver Manager
that supports the full ODBC API and performs the ODBC 3 to ODBC 2
translations with UNICODE to ANSI conversion. It also includes a collection
of ODBC drivers including a simple text-based driver, an NNTP driver, a
Postgres driver and others, and a selection of templates and libraries that
to aid in the construction of ODBC drivers. It works with MySQL, Postgres,
StarOffice, Applixware, iHTML, PHP, Perl DBD::ODBC, Paradox 9, and many
other applications and drivers. Connection pooling is also provided to
increase performance with applications such as PHP.
2001-11-06 05:08:33 +01:00
|
|
|
|
|
|
|
DISTNAME= unixODBC-${ODBC_DIST_VERS}
|
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= http://www.unixodbc.org/
|
|
|
|
|
2006-03-04 22:28:51 +01:00
|
|
|
MAINTAINER?= pkgsrc-users@NetBSD.org
|
databases/unixodbc - ODBC 2.x/3.x driver manager
The unixODBC project provides UNIX applications with the same ODBC 3.51
API and facilities available under MS Windows. It provides a Driver Manager
that supports the full ODBC API and performs the ODBC 3 to ODBC 2
translations with UNICODE to ANSI conversion. It also includes a collection
of ODBC drivers including a simple text-based driver, an NNTP driver, a
Postgres driver and others, and a selection of templates and libraries that
to aid in the construction of ODBC drivers. It works with MySQL, Postgres,
StarOffice, Applixware, iHTML, PHP, Perl DBD::ODBC, Paradox 9, and many
other applications and drivers. Connection pooling is also provided to
increase performance with applications such as PHP.
2001-11-06 05:08:33 +01:00
|
|
|
HOMEPAGE?= http://www.unixodbc.org/
|
|
|
|
|
|
|
|
# Version numbering scheme:
|
|
|
|
#
|
|
|
|
# ODBC_DIST_VERS version number on the php distfile
|
|
|
|
# ODBC_BASE_VERS pkgsrc-mangled version number (convert pl -> .)
|
|
|
|
#
|
2008-02-09 08:06:33 +01:00
|
|
|
ODBC_DIST_VERS= 2.2.12
|
databases/unixodbc - ODBC 2.x/3.x driver manager
The unixODBC project provides UNIX applications with the same ODBC 3.51
API and facilities available under MS Windows. It provides a Driver Manager
that supports the full ODBC API and performs the ODBC 3 to ODBC 2
translations with UNICODE to ANSI conversion. It also includes a collection
of ODBC drivers including a simple text-based driver, an NNTP driver, a
Postgres driver and others, and a selection of templates and libraries that
to aid in the construction of ODBC drivers. It works with MySQL, Postgres,
StarOffice, Applixware, iHTML, PHP, Perl DBD::ODBC, Paradox 9, and many
other applications and drivers. Connection pooling is also provided to
increase performance with applications such as PHP.
2001-11-06 05:08:33 +01:00
|
|
|
ODBC_BASE_VERS= ${ODBC_DIST_VERS}
|
|
|
|
|
|
|
|
USE_LIBTOOL= YES
|
|
|
|
GNU_CONFIGURE= YES
|
2008-02-09 08:06:33 +01:00
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
databases/unixodbc - ODBC 2.x/3.x driver manager
The unixODBC project provides UNIX applications with the same ODBC 3.51
API and facilities available under MS Windows. It provides a Driver Manager
that supports the full ODBC API and performs the ODBC 3 to ODBC 2
translations with UNICODE to ANSI conversion. It also includes a collection
of ODBC drivers including a simple text-based driver, an NNTP driver, a
Postgres driver and others, and a selection of templates and libraries that
to aid in the construction of ODBC drivers. It works with MySQL, Postgres,
StarOffice, Applixware, iHTML, PHP, Perl DBD::ODBC, Paradox 9, and many
other applications and drivers. Connection pooling is also provided to
increase performance with applications such as PHP.
2001-11-06 05:08:33 +01:00
|
|
|
CONFIGURE_ARGS+= --enable-threads
|
2002-08-01 08:40:50 +02:00
|
|
|
PTHREAD_OPTS+= require
|
databases/unixodbc - ODBC 2.x/3.x driver manager
The unixODBC project provides UNIX applications with the same ODBC 3.51
API and facilities available under MS Windows. It provides a Driver Manager
that supports the full ODBC API and performs the ODBC 3 to ODBC 2
translations with UNICODE to ANSI conversion. It also includes a collection
of ODBC drivers including a simple text-based driver, an NNTP driver, a
Postgres driver and others, and a selection of templates and libraries that
to aid in the construction of ODBC drivers. It works with MySQL, Postgres,
StarOffice, Applixware, iHTML, PHP, Perl DBD::ODBC, Paradox 9, and many
other applications and drivers. Connection pooling is also provided to
increase performance with applications such as PHP.
2001-11-06 05:08:33 +01:00
|
|
|
|
|
|
|
# Override the local definitions that point to the self-contained libtool
|
|
|
|
# convenience library. We want the one installed by pkgsrc. Also override
|
|
|
|
# the variable pointing to the (static) libfl.a, which won't link with a
|
|
|
|
# shared library. The sources define all the relevant symbols (yywrap), so
|
|
|
|
# libfl.a isn't needed.
|
|
|
|
#
|
|
|
|
MAKE_FLAGS+= LEXLIB=""
|
2005-01-19 20:13:21 +01:00
|
|
|
MAKE_ENV+= AM_MAKEFLAGS=${MAKE_FLAGS:Q}
|
databases/unixodbc - ODBC 2.x/3.x driver manager
The unixODBC project provides UNIX applications with the same ODBC 3.51
API and facilities available under MS Windows. It provides a Driver Manager
that supports the full ODBC API and performs the ODBC 3 to ODBC 2
translations with UNICODE to ANSI conversion. It also includes a collection
of ODBC drivers including a simple text-based driver, an NNTP driver, a
Postgres driver and others, and a selection of templates and libraries that
to aid in the construction of ODBC drivers. It works with MySQL, Postgres,
StarOffice, Applixware, iHTML, PHP, Perl DBD::ODBC, Paradox 9, and many
other applications and drivers. Connection pooling is also provided to
increase performance with applications such as PHP.
2001-11-06 05:08:33 +01:00
|
|
|
|
|
|
|
UNIXODBC_DRIVERS_DIR= lib/unixodbc
|
|
|
|
|
|
|
|
post-patch: fix-ltdl-and-lexlib
|
|
|
|
|
|
|
|
fix-driver-installation:
|
2008-02-09 08:06:33 +01:00
|
|
|
cd ${WRKSRC}; \
|
2004-01-27 01:53:10 +01:00
|
|
|
files=`${FIND} ODBCConfig DRVConfig Drivers -name Makefile.in -print`;\
|
2008-02-09 08:06:33 +01:00
|
|
|
for file in $${files}; do \
|
|
|
|
sed -e "s|^\(libdir =\).*|\1 ${PREFIX}/${UNIXODBC_DRIVERS_DIR}|g" \
|
|
|
|
$${file} >> $${file}.fixed; \
|
|
|
|
mv -f $${file}.fixed $${file}; \
|
databases/unixodbc - ODBC 2.x/3.x driver manager
The unixODBC project provides UNIX applications with the same ODBC 3.51
API and facilities available under MS Windows. It provides a Driver Manager
that supports the full ODBC API and performs the ODBC 3 to ODBC 2
translations with UNICODE to ANSI conversion. It also includes a collection
of ODBC drivers including a simple text-based driver, an NNTP driver, a
Postgres driver and others, and a selection of templates and libraries that
to aid in the construction of ODBC drivers. It works with MySQL, Postgres,
StarOffice, Applixware, iHTML, PHP, Perl DBD::ODBC, Paradox 9, and many
other applications and drivers. Connection pooling is also provided to
increase performance with applications such as PHP.
2001-11-06 05:08:33 +01:00
|
|
|
done
|
|
|
|
|
|
|
|
fix-ltdl-and-lexlib:
|
2008-02-09 08:06:33 +01:00
|
|
|
cd ${WRKSRC}; \
|
|
|
|
files=`${FIND} . -name Makefile.in -print`; \
|
|
|
|
for file in $${files}; do \
|
|
|
|
sed -e "/DEPENDENCIES/s|\$$(LIBLTDL)||g" \
|
|
|
|
-e "/LIBADD/s|@LEXLIB@|\$$(LEXLIB)|g" \
|
|
|
|
$${file} >> $${file}.fixed; \
|
|
|
|
mv -f $${file}.fixed $${file}; \
|
databases/unixodbc - ODBC 2.x/3.x driver manager
The unixODBC project provides UNIX applications with the same ODBC 3.51
API and facilities available under MS Windows. It provides a Driver Manager
that supports the full ODBC API and performs the ODBC 3 to ODBC 2
translations with UNICODE to ANSI conversion. It also includes a collection
of ODBC drivers including a simple text-based driver, an NNTP driver, a
Postgres driver and others, and a selection of templates and libraries that
to aid in the construction of ODBC drivers. It works with MySQL, Postgres,
StarOffice, Applixware, iHTML, PHP, Perl DBD::ODBC, Paradox 9, and many
other applications and drivers. Connection pooling is also provided to
increase performance with applications such as PHP.
2001-11-06 05:08:33 +01:00
|
|
|
done
|
|
|
|
|
2004-10-15 13:54:10 +02:00
|
|
|
.include "../../devel/libltdl/buildlink3.mk"
|
2004-04-25 03:11:11 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
2002-08-01 08:40:50 +02:00
|
|
|
|
|
|
|
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth")
|
|
|
|
CONFIGURE_ARGS+= --enable-gnuthreads
|
2005-12-06 00:55:01 +01:00
|
|
|
CONFIGURE_ARGS+= --with-pth=${PTHREADBASE:Q}
|
2002-08-01 08:40:50 +02:00
|
|
|
.endif
|