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