1*4882a593SmuzhiyunSUMMARY = "ODBC driver for PostgreSQL" 2*4882a593SmuzhiyunDESCRIPTION = "\ 3*4882a593Smuzhiyun This package provides a driver that allows ODBC-enabled applications to \ 4*4882a593Smuzhiyun access PostgreSQL databases. ODBC is an abstraction layer that allows \ 5*4882a593Smuzhiyun applications written for that layer to access databases in a manner \ 6*4882a593Smuzhiyun that is relatively independent of the particular database management \ 7*4882a593Smuzhiyun system. \ 8*4882a593Smuzhiyun . \ 9*4882a593Smuzhiyun You need to install this package if you want to use an application that \ 10*4882a593Smuzhiyun provides database access through ODBC and you want that application to \ 11*4882a593Smuzhiyun access a PostgreSQL database. This package would need to be installed \ 12*4882a593Smuzhiyun on the same machine as that client application; the PostgreSQL database \ 13*4882a593Smuzhiyun server can be on a different machine and does not need any additional \ 14*4882a593Smuzhiyun software to accept ODBC clients. \ 15*4882a593Smuzhiyun" 16*4882a593SmuzhiyunSECTION = "libs" 17*4882a593SmuzhiyunHOMEPAGE = "http://psqlodbc.projects.postgresql.org/" 18*4882a593Smuzhiyun 19*4882a593SmuzhiyunDEPENDS += "postgresql unixodbc" 20*4882a593Smuzhiyun 21*4882a593SmuzhiyunEXTRA_OECONF = "\ 22*4882a593Smuzhiyun ac_cv_lib_ltdl_lt_dlopen=no \ 23*4882a593Smuzhiyun ac_cv_lib_pq_PQconnectdb=yes \ 24*4882a593Smuzhiyun --with-unixodbc=yes \ 25*4882a593Smuzhiyun --with-libpq=${STAGING_LIBDIR}/.. \ 26*4882a593Smuzhiyun --enable-pthreads \ 27*4882a593Smuzhiyun --disable-unicode \ 28*4882a593Smuzhiyun LIBS="-lpthread" \ 29*4882a593Smuzhiyun" 30*4882a593Smuzhiyun 31*4882a593Smuzhiyuninherit autotools pkgconfig ptest 32*4882a593Smuzhiyun 33*4882a593Smuzhiyundo_compile_ptest() { 34*4882a593Smuzhiyun oe_runmake -C ${B}/test 35*4882a593Smuzhiyun} 36*4882a593Smuzhiyun 37*4882a593Smuzhiyundo_install_ptest() { 38*4882a593Smuzhiyun install -d ${D}${PTEST_PATH} 39*4882a593Smuzhiyun cp -a --no-preserve=ownership ${B}/test/exe ${S}/test/expected ${D}${PTEST_PATH} 40*4882a593Smuzhiyun install -m 0755 ${B}/test/reset-db ${D}${PTEST_PATH} 41*4882a593Smuzhiyun install -m 0755 ${B}/test/runsuite ${D}${PTEST_PATH} 42*4882a593Smuzhiyun install -m 0755 ${S}/test/odbcini-gen.sh ${D}${PTEST_PATH} 43*4882a593Smuzhiyun install -m 0755 ${S}/test/sampletables.sql ${D}${PTEST_PATH} 44*4882a593Smuzhiyun sed -i -e 's|@LIBDIR@|${libdir}|' ${D}${PTEST_PATH}/odbcini-gen.sh 45*4882a593Smuzhiyun} 46*4882a593Smuzhiyun 47*4882a593SmuzhiyunFILES:${PN} += "${libdir}" 48*4882a593Smuzhiyun 49*4882a593Smuzhiyun# The tests need a local PostgreSQL server running 50*4882a593SmuzhiyunRDEPENDS:${PN}-ptest = "postgresql" 51