diff options
Diffstat (limited to 'meta-oe/recipes-dbs/psqlodbc/psqlodbc_15.00.0000.bb')
-rw-r--r-- | meta-oe/recipes-dbs/psqlodbc/psqlodbc_15.00.0000.bb | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/meta-oe/recipes-dbs/psqlodbc/psqlodbc_15.00.0000.bb b/meta-oe/recipes-dbs/psqlodbc/psqlodbc_15.00.0000.bb new file mode 100644 index 000000000..be79caef0 --- /dev/null +++ b/meta-oe/recipes-dbs/psqlodbc/psqlodbc_15.00.0000.bb | |||
@@ -0,0 +1,62 @@ | |||
1 | SUMMARY = "ODBC driver for PostgreSQL" | ||
2 | DESCRIPTION = "\ | ||
3 | This package provides a driver that allows ODBC-enabled applications to \ | ||
4 | access PostgreSQL databases. ODBC is an abstraction layer that allows \ | ||
5 | applications written for that layer to access databases in a manner \ | ||
6 | that is relatively independent of the particular database management \ | ||
7 | system. \ | ||
8 | . \ | ||
9 | You need to install this package if you want to use an application that \ | ||
10 | provides database access through ODBC and you want that application to \ | ||
11 | access a PostgreSQL database. This package would need to be installed \ | ||
12 | on the same machine as that client application; the PostgreSQL database \ | ||
13 | server can be on a different machine and does not need any additional \ | ||
14 | software to accept ODBC clients. \ | ||
15 | " | ||
16 | SECTION = "libs" | ||
17 | HOMEPAGE = "https://odbc.postgresql.org/" | ||
18 | |||
19 | LICENSE = "LGPL-2.0-only" | ||
20 | LIC_FILES_CHKSUM = "file://license.txt;md5=6db3822fc7512e83087ba798da013692" | ||
21 | |||
22 | SRC_URI = "http://ftp.postgresql.org/pub/odbc/versions/src/${BPN}-${PV}.tar.gz \ | ||
23 | file://psqlodbc-remove-some-checks-for-cross-compiling.patch \ | ||
24 | file://psqlodbc-donot-use-the-hardcode-libdir.patch \ | ||
25 | file://psqlodbc-fix-for-ptest-support.patch \ | ||
26 | file://run-ptest \ | ||
27 | " | ||
28 | |||
29 | SRC_URI[sha256sum] = "ca57d6349532ea7fb4fae17bbfc107abe5a155ca2f43446315f9e23764b3f8ec" | ||
30 | |||
31 | DEPENDS += "postgresql unixodbc" | ||
32 | |||
33 | EXTRA_OECONF = "\ | ||
34 | ac_cv_lib_ltdl_lt_dlopen=no \ | ||
35 | ac_cv_lib_pq_PQconnectdb=yes \ | ||
36 | --with-unixodbc=yes \ | ||
37 | --with-libpq=${STAGING_LIBDIR}/.. \ | ||
38 | --enable-pthreads \ | ||
39 | LIBS='-lpthread' \ | ||
40 | " | ||
41 | |||
42 | inherit autotools pkgconfig ptest | ||
43 | |||
44 | do_compile_ptest() { | ||
45 | oe_runmake -C ${B}/test | ||
46 | } | ||
47 | |||
48 | do_install_ptest() { | ||
49 | install -d ${D}${PTEST_PATH} | ||
50 | cp -a --no-preserve=ownership ${B}/test/exe ${S}/test/expected ${D}${PTEST_PATH} | ||
51 | install -m 0755 ${B}/test/reset-db ${D}${PTEST_PATH} | ||
52 | install -m 0755 ${B}/test/runsuite ${D}${PTEST_PATH} | ||
53 | install -m 0755 ${S}/test/odbcini-gen.sh ${D}${PTEST_PATH} | ||
54 | install -m 0755 ${S}/test/sampletables.sql ${D}${PTEST_PATH} | ||
55 | sed -i -e 's|@LIBDIR@|${libdir}|' ${D}${PTEST_PATH}/odbcini-gen.sh | ||
56 | } | ||
57 | |||
58 | FILES:${PN} += "${libdir}" | ||
59 | |||
60 | # The tests need a local PostgreSQL server running | ||
61 | RDEPENDS:${PN}-ptest = "postgresql" | ||
62 | |||