Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 1 | # Copyright (C) 2015 Khem Raj <raj.khem@gmail.com> |
| 2 | # Released under the MIT license (see COPYING.MIT for the terms) |
| 3 | |
| 4 | DESCRIPTION = "The C++ Database Access Library" |
| 5 | HOMEPAGE = "http://soci.sourceforge.net" |
| 6 | LICENSE = "BSL-1.0" |
| 7 | LIC_FILES_CHKSUM = "file://LICENSE_1_0.txt;md5=e4224ccaecb14d942c71d31bef20d78c" |
| 8 | SECTION = "libs" |
| 9 | DEPENDS = "boost" |
| 10 | |
| 11 | |
| 12 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${BP}/${BP}.tar.gz \ |
| 13 | file://soci_libdir.patch \ |
| 14 | " |
| 15 | SRC_URI[md5sum] = "acfbccf176cd20e06833a8037a2d3699" |
| 16 | SRC_URI[sha256sum] = "2c659db0f4f7b424bbcffe195c03c293a1dbf676189a27b077fb2aab4d53a610" |
| 17 | |
| 18 | TESTCONFIG = '-DSOCI_TEST_EMPTY_CONNSTR="dummy" -DSOCI_TEST_SQLITE3_CONNSTR="test.db" \ |
| 19 | -DSOCI_TEST_POSTGRESQL_CONNSTR:STRING="dbname=soci_test" \ |
| 20 | -DSOCI_TEST_MYSQL_CONNSTR:STRING="db=soci_test user=oe password=oe"' |
| 21 | |
| 22 | OBASEDIR ?= "/opt/oracle" |
| 23 | OINCDIR = "rdbms/public" |
| 24 | OLIBDIR = "lib" |
| 25 | |
| 26 | PACKAGECONFIG[sqlite3] = "-DSOCI_SQLITE3=ON,-DSOCI_SQLITE3=OFF,sqlite3," |
| 27 | PACKAGECONFIG[mysql] = "-DSOCI_MYSQL=ON,-DSOCI_MYSQL=OFF,mariadb," |
| 28 | PACKAGECONFIG[postgresql] = "-DSOCI_POSTGRESQL=ON,-DSOCI_POSTGRESQL=OFF,postgresql," |
| 29 | PACKAGECONFIG[odbc] = "-DSOCI_ODBC=ON,-DSOCI_ODBC=OFF,," |
| 30 | PACKAGECONFIG[empty] = "-DSOCI_EMPTY=ON,-DSOCI_EMPTY=OFF,," |
| 31 | PACKAGECONFIG[oracle] = "-DWITH_ORACLE=ON --with-oracle-include=${OINCDIR} --with-oracle-lib=${OLIBDIR},-DWITH_ORACLE=OFF,," |
| 32 | PACKAGECONFIG[ptest] = "${TESTCONFIG},,," |
| 33 | |
| 34 | # enable your backend by default we enable 'empty' |
| 35 | PACKAGECONFIG ??= "empty" |
| 36 | |
| 37 | # Take the flags added by PACKAGECONFIG and pass them to cmake. |
| 38 | EXTRA_OECMAKE = "${EXTRA_OECONF} -DSOCI_LIBDIR=${libdir}" |
| 39 | DISABLE_STATIC = "" |
| 40 | |
| 41 | inherit dos2unix cmake |
| 42 | |
| 43 | PACKAGES += "${PN}-sqlite3 ${PN}-mysql ${PN}-postgresql ${PN}-odbc ${PN}-oracle" |
| 44 | |
Patrick Williams | 213cb26 | 2021-08-07 19:21:33 -0500 | [diff] [blame] | 45 | FILES:${PN}-sqlite3 = "${libdir}/lib${BPN}_sqlite3.so.*" |
| 46 | FILES:${PN}-mysql = "${libdir}/lib${BPN}_mysql.so.*" |
| 47 | FILES:${PN}-postgresql = "${libdir}/lib${BPN}_postgresql.so.*" |
| 48 | FILES:${PN}-odbc = "${libdir}/lib${BPN}_odbc.so.*" |
| 49 | FILES:${PN}-oracle = "${libdir}/lib${BPN}_oracle.so.*" |