2010-05-03 04:10:43 +02:00
|
|
|
# $NetBSD: Makefile,v 1.28 2010/05/03 02:10:43 jnemeth 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
|
|
|
|
2010-05-03 04:10:43 +02:00
|
|
|
DISTNAME= unixODBC-2.3.0
|
2008-09-19 11:39:23 +02:00
|
|
|
PKGNAME= ${DISTNAME:S/ODBC/odbc/}
|
|
|
|
CATEGORIES= databases
|
|
|
|
MASTER_SITES= http://www.unixodbc.org/
|
|
|
|
|
|
|
|
MAINTAINER= pkgsrc-users@NetBSD.org
|
|
|
|
HOMEPAGE= http://www.unixodbc.org/
|
|
|
|
COMMENT= ODBC 2.x/3.x driver manager
|
Update unixodbc pakcage to 2.2.14, adding LICENSE.
19th-Nov-2008
2.2.14
* missing protype in 2.2.13 made the build fail on some platforms
18th-Nov-2008
2.2.13
* There was a mutex around iconv that needed adding. Without this,
there was a potential thread problem
* Fix problem with SQLGetDiagRec/Field returning double driver
errors
* odbctest was using the wrong handle for SQLGetConnectOption
* remove startup thread race condition
* fix descriptor memory leak with UNICODE only drivers (thanks Ian)
* Alter the default 64bit build mode, and change the flag to
BUILD_LEGACY_64_BIT_MODE
* Fix a couple of 64bit problems
* create unixodbc_conf.h on install to contain compile settings
* Allow the GUI parts to build with qt4
* try and deal with drivers that call internal W functions and
end up in the driver manager (informix for example). Enabled
by --enable-handlemap=yes when configuring
* Fix leak of iconv handles
* Allow the setup API to call through to the wide driver functions
* Fix potential seg fault in SQLGetPrivateProfileString
* Fix a couple of broken casts, and some MS 64bit changes
* Add check for postgres driver getting into a spin wait
* Fix logging that reported the setting of env attrs failing
* Add isql option to wrap strings with quotes
* Add isql option -3 to make isql use ODBC 3 calls instead of 2
* Add timestamp to logging output
* Pull any errors from driver whern SQLBrowseConnect returns SQL_NEED_DATA
* isql now displays any warnings from SQLMoreResults
* Add include path to odbc_config --cflags output
* Fix some SQLLEN/SQLINTEGER conflicts in the cursor lib
* isql now checks if the driver has SQLMoreResults before calling it
* A couple of tweeks in the txt driver
* Fix More than 1 log msg relevant in odbcinst now
* Changed UI plugin technique for odbcinst see...
ODBCConfig > main.cpp, and
odbcinst > SQLManageDataSources.c and
odbcinstQ4 > SQLManageDataSources.cpp
* Add more 64 bit changes, remove SQLROWCOUNT and its frends from 64 bit
land
* Couple of descriptor typo's fixed (Thanks Jess)
* Add odbcinstQ4 to support pure Qt4 SQLCreateDataSource and
SQLManageDataSources
* Add ODBCCreateDataSourceQ4 as Qt4 based exec to SQLCreateDataSource
* Add ODBCManageDataSourcesQ4 as Qt4 based exec to SQLManageDataSources
* Add "-c" option to odbcinst to call SQLCreateDataSource
* Add "-m" option to odbcinst to call SQLManageDataSources
* Add ODBCDataManagerQ4
* Add Wrappers (C++, QtCore 4, QtGui 4 - thin wrappers to ODBC)
* Add more complete set of driver config options to GUI config
* Fix incorrect export file in odbcinstQ
* Added some extra features to isql (thanks to Ron Norman for the
ideas)
* Add diag support lib for driver development and possibly DM
This is very 'black-boxed' on purpose.
* Fix Replaced diag code in txt driver to use new diag lib.
* Add New odbctrac library.
* Add Threading can not be config via Qt(4) based GUI
* Add New ODBCString library.
* Add odbcinst.ini -> ODBC -> TraceLibrary and corresponding GUI Qt(4)
config.
* prevent the cursor lib from seg faulting if the query isn't a select
* Add SQLULEN size display to the output of odbcinst -j
* Add mutexes in odbcinst/_logging.c
* Remove the MySQL Driver, its woefully out of date now
* Remove incorrect path in vms_odbc.opt
* rename trace.h to odbctrace.h to avoid potential name conflicts
and move to include dir
* update unixODBC.spec file
* Add README.CYGWIN
* Fix build problem with QT4 without QWizard support
* Alter how the Ansi-Unicode mapping is done, so a unicode function can be
passed to the driver (if it supports it) even if a non unicode connect was done
* Fix buffer overrun in SQLDriverConnectW and SQLColAttributesW
* I have cut back on a lot of the GUI parts that are being added. The goal is to
create a distinct set of files that contains these and other parts that are
not part of the core goal of providing ODBC. Likewise the drivers will go on the
next release, as most DB's now have their own folk working on their drivers
and they all interoperate with unixODBC so its just adding confusion including them
here (IMHO that is)
* Prevent a potential buffer overrun in the DM
* The processing of --enable-rtldgroup had been dropped, back now
* Allow the cursor lib to handle multiple result sets
2009-10-17 03:59:14 +02:00
|
|
|
LICENSE= gnu-lgpl-v2.1
|
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
|
|
|
|
2008-10-03 18:43:27 +02:00
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
|
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
|
|
|
CONFLICTS+= iodbc-[0-9]*
|
|
|
|
|
2008-09-19 11:39:23 +02:00
|
|
|
USE_LIBTOOL= YES
|
|
|
|
GNU_CONFIGURE= YES
|
|
|
|
CONFIGURE_ARGS+= --sysconfdir=${PKG_SYSCONFDIR}
|
|
|
|
CONFIGURE_ARGS+= --enable-threads
|
|
|
|
PTHREAD_OPTS+= require
|
|
|
|
|
|
|
|
# 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=""
|
|
|
|
MAKE_ENV+= AM_MAKEFLAGS=${MAKE_FLAGS:Q}
|
|
|
|
|
|
|
|
UNIXODBC_DRIVERS_DIR= lib/unixodbc
|
|
|
|
|
|
|
|
post-patch: fix-ltdl-and-lexlib
|
|
|
|
|
|
|
|
fix-driver-installation:
|
|
|
|
cd ${WRKSRC}; \
|
2010-05-03 04:10:43 +02:00
|
|
|
files=`${FIND} DRVConfig Drivers -name Makefile.in -print`;\
|
2008-09-19 11:39:23 +02:00
|
|
|
for file in $${files}; do \
|
|
|
|
sed -e "s|^\(libdir =\).*|\1 ${PREFIX}/${UNIXODBC_DRIVERS_DIR}|g" \
|
|
|
|
$${file} >> $${file}.fixed; \
|
|
|
|
mv -f $${file}.fixed $${file}; \
|
|
|
|
done
|
|
|
|
|
|
|
|
fix-ltdl-and-lexlib:
|
|
|
|
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}; \
|
|
|
|
done
|
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
|
|
|
|
2008-09-19 11:39:23 +02:00
|
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
|
|
|
|
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth")
|
|
|
|
CONFIGURE_ARGS+= --enable-gnuthreads
|
|
|
|
CONFIGURE_ARGS+= --with-pth=${PTHREADBASE:Q}
|
|
|
|
.endif
|
2007-11-17 13:04:11 +01:00
|
|
|
USE_TOOLS+= flex yacc # to get libodbctxt.la
|
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+= --disable-gui
|
|
|
|
|
2008-02-09 08:06:33 +01:00
|
|
|
PLIST_SUBST+= UNIXODBC_DRIVERS_DIR=${UNIXODBC_DRIVERS_DIR}
|
|
|
|
FILES_SUBST+= UNIXODBC_DRIVERS_DIR=${UNIXODBC_DRIVERS_DIR}
|
2001-11-19 17:23:08 +01:00
|
|
|
|
|
|
|
EGDIR= ${PREFIX}/share/examples/${PKGBASE}
|
|
|
|
|
2006-01-23 21:50:47 +01:00
|
|
|
CONF_FILES= ${EGDIR}/odbc.ini ${PKG_SYSCONFDIR}/odbc.ini
|
2001-11-25 19:59:45 +01:00
|
|
|
OWN_DIRS= ${PKG_SYSCONFDIR}/ODBCDataSources
|
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
|
|
|
|
2006-01-06 19:36:52 +01:00
|
|
|
SUBST_CLASSES+= paths
|
2006-01-23 21:50:47 +01:00
|
|
|
SUBST_FILES.paths= ${WRKDIR}/odbc.ini
|
2006-01-06 19:36:52 +01:00
|
|
|
SUBST_SED.paths+= -e 's,@PREFIX@,${PREFIX},g'
|
|
|
|
SUBST_SED.paths+= -e 's,@UNIXODBC_DRIVERS_DIR@,${UNIXODBC_DRIVERS_DIR},g'
|
|
|
|
SUBST_STAGE.paths= post-patch
|
|
|
|
|
2008-10-03 18:43:27 +02:00
|
|
|
INSTALLATION_DIRS= ${EGDIR}
|
|
|
|
|
2008-09-19 11:39:23 +02:00
|
|
|
post-patch: fix-driver-installation
|
|
|
|
|
2006-01-06 19:36:52 +01:00
|
|
|
post-extract:
|
2006-01-23 21:50:47 +01:00
|
|
|
${CP} ${FILESDIR}/odbcinst.ini.in ${WRKDIR}/odbc.ini
|
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
|
|
|
|
|
|
|
post-install:
|
2008-10-03 18:43:27 +02:00
|
|
|
${INSTALL_DATA} ${WRKDIR}/odbc.ini ${DESTDIR}${EGDIR}/odbc.ini
|
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
|
|
|
|
2008-09-19 11:39:23 +02:00
|
|
|
.include "../../devel/libltdl/buildlink3.mk"
|
2004-04-25 03:11:11 +02:00
|
|
|
.include "../../devel/readline/buildlink3.mk"
|
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
|
|
|
.include "../../mk/bsd.pkg.mk"
|