08adb1071f
* Add missing SQLSetStmtOptionA and SQLSetStmtOptionW * The config string being passed into ConfigDsn was wrong, removed semicolon, and added terminating double null * Add help help to isql * Couple of changes to make the build on OSX work better * Alter odbctest FullConnect to use SQLDriverConnect * Replace a missed flag for true 64 bit operation * Add ODBC3<->ODBC2 type mapping in SQLSetParam * Add missing SQLSetStmtOptionW.c * Tidy up the search for GUI lib code in SQLManageDatasource * Backport a couple of changes from the Debian build into the cursor lib * Add extra config settings to the MaxDB/SapDB setup lib * Fix possible exit from SQLConnect without having closed in the driver * Fix configure problem on Tru64 * Fix a build issue on Sinix * Allow calling metadata functions via the cursor lib * Alter args to SQLParamOptions * Fix bug preventing attribute length from being returned from SQLDrivers * Fix broken iusql * more...
62 lines
1.8 KiB
Text
62 lines
1.8 KiB
Text
# $NetBSD: Makefile.common,v 1.22 2008/02/09 07:06:33 adam Exp $
|
|
|
|
DISTNAME= unixODBC-${ODBC_DIST_VERS}
|
|
CATEGORIES= databases
|
|
MASTER_SITES= http://www.unixodbc.org/
|
|
|
|
MAINTAINER?= pkgsrc-users@NetBSD.org
|
|
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 -> .)
|
|
#
|
|
ODBC_DIST_VERS= 2.2.12
|
|
ODBC_BASE_VERS= ${ODBC_DIST_VERS}
|
|
|
|
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}; \
|
|
files=`${FIND} ODBCConfig DRVConfig Drivers -name Makefile.in -print`;\
|
|
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
|
|
|
|
.include "../../devel/libltdl/buildlink3.mk"
|
|
.include "../../mk/pthread.buildlink3.mk"
|
|
|
|
.if defined(PTHREAD_TYPE) && (${PTHREAD_TYPE} == "pth")
|
|
CONFIGURE_ARGS+= --enable-gnuthreads
|
|
CONFIGURE_ARGS+= --with-pth=${PTHREADBASE:Q}
|
|
.endif
|