Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 1 | DESCRIPTION = "The C++ Database Access Library" |
| 2 | HOMEPAGE = "http://soci.sourceforge.net" |
| 3 | LICENSE = "BSL-1.0" |
| 4 | LIC_FILES_CHKSUM = "file://LICENSE_1_0.txt;md5=e4224ccaecb14d942c71d31bef20d78c" |
| 5 | SECTION = "libs" |
| 6 | DEPENDS = "boost" |
| 7 | |
Andrew Geissler | 87f5cff | 2022-09-30 13:13:31 -0500 | [diff] [blame] | 8 | SRC_URI = "${SOURCEFORGE_MIRROR}/project/${BPN}/${BPN}/${BP}/${BP}.tar.gz \ |
| 9 | file://0001-Do-not-use-std-shuffle-with-clang-15.patch \ |
| 10 | " |
Andrew Geissler | 7e0e3c0 | 2022-02-25 20:34:39 +0000 | [diff] [blame] | 11 | SRC_URI[sha256sum] = "615e5f7e4b52007f3a3b4050a99aadf6346b56b5098eb08b3a650836083c6a33" |
| 12 | |
| 13 | TESTCONFIG = '-DSOCI_TEST_EMPTY_CONNSTR="dummy" -DSOCI_TEST_SQLITE3_CONNSTR="test.db" \ |
| 14 | -DSOCI_TEST_POSTGRESQL_CONNSTR:STRING="dbname=soci_test" \ |
| 15 | -DSOCI_TEST_MYSQL_CONNSTR:STRING="db=soci_test user=oe password=oe"' |
| 16 | |
| 17 | OBASEDIR ?= "/opt/oracle" |
| 18 | OINCDIR = "rdbms/public" |
| 19 | OLIBDIR = "lib" |
| 20 | |
| 21 | PACKAGECONFIG[sqlite3] = "-DSOCI_SQLITE3=ON,-DSOCI_SQLITE3=OFF,sqlite3," |
| 22 | PACKAGECONFIG[mysql] = "-DSOCI_MYSQL=ON,-DSOCI_MYSQL=OFF,mariadb," |
| 23 | PACKAGECONFIG[postgresql] = "-DSOCI_POSTGRESQL=ON,-DSOCI_POSTGRESQL=OFF,postgresql," |
| 24 | PACKAGECONFIG[odbc] = "-DSOCI_ODBC=ON,-DSOCI_ODBC=OFF,," |
| 25 | PACKAGECONFIG[empty] = "-DSOCI_EMPTY=ON,-DSOCI_EMPTY=OFF,," |
| 26 | PACKAGECONFIG[oracle] = "-DWITH_ORACLE=ON --with-oracle-include=${OINCDIR} --with-oracle-lib=${OLIBDIR},-DWITH_ORACLE=OFF,," |
| 27 | PACKAGECONFIG[firebird] = "-DWITH_FIREBIRD=ON,-DWITH_FIREBIRD=OFF,," |
| 28 | PACKAGECONFIG[ptest] = "${TESTCONFIG},,," |
| 29 | |
| 30 | # enable your backend by default we enable 'empty' |
| 31 | PACKAGECONFIG ??= "empty" |
| 32 | |
| 33 | # Take the flags added by PACKAGECONFIG and pass them to cmake. |
| 34 | EXTRA_OECMAKE = "${EXTRA_OECONF} -DSOCI_LIBDIR=${libdir}" |
| 35 | DISABLE_STATIC = "" |
| 36 | |
| 37 | inherit dos2unix cmake |
| 38 | |
| 39 | PACKAGES += "${PN}-sqlite3 ${PN}-mysql ${PN}-postgresql ${PN}-odbc ${PN}-oracle" |
| 40 | |
| 41 | FILES:${PN}-sqlite3 = "${libdir}/lib${BPN}_sqlite3.so.*" |
| 42 | FILES:${PN}-mysql = "${libdir}/lib${BPN}_mysql.so.*" |
| 43 | FILES:${PN}-postgresql = "${libdir}/lib${BPN}_postgresql.so.*" |
| 44 | FILES:${PN}-odbc = "${libdir}/lib${BPN}_odbc.so.*" |
| 45 | FILES:${PN}-oracle = "${libdir}/lib${BPN}_oracle.so.*" |