Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | SUMMARY = "Embeddable SQL database engine" |
| 2 | HOMEPAGE = "http://www.sqlite.org" |
| 3 | SECTION = "libs" |
| 4 | DEPENDS = "readline ncurses" |
| 5 | DEPENDS_class-native = "" |
| 6 | LICENSE = "PD" |
| 7 | |
| 8 | inherit autotools pkgconfig |
| 9 | |
| 10 | EXTRA_OECONF = "--enable-shared --enable-threadsafe" |
| 11 | EXTRA_OECONF_class-native = "--enable-shared --enable-threadsafe --disable-readline" |
| 12 | export config_BUILD_CC = "${BUILD_CC}" |
| 13 | export config_BUILD_CFLAGS = "${BUILD_CFLAGS}" |
| 14 | export config_BUILD_LIBS = "${BUILD_LDFLAGS}" |
| 15 | export config_TARGET_CC = "${CC}" |
| 16 | export config_TARGET_LINK = "${CCLD}" |
| 17 | export config_TARGET_CFLAGS = "${CFLAGS}" |
| 18 | export config_TARGET_LFLAGS = "${LDFLAGS}" |
| 19 | |
| 20 | # pread() is in POSIX.1-2001 so any reasonable system must surely support it |
| 21 | BUILD_CFLAGS += "-DUSE_PREAD" |
| 22 | TARGET_CFLAGS += "-DUSE_PREAD" |
| 23 | |
| 24 | PACKAGES = "lib${BPN} lib${BPN}-dev lib${BPN}-doc ${PN}-dbg lib${BPN}-staticdev ${PN}" |
| 25 | |
| 26 | FILES_${PN} = "${bindir}/*" |
| 27 | FILES_lib${BPN} = "${libdir}/*.so.*" |
| 28 | FILES_lib${BPN}-dev = "${libdir}/*.la ${libdir}/*.so \ |
| 29 | ${libdir}/pkgconfig ${includedir}" |
| 30 | FILES_lib${BPN}-doc = "${docdir} ${mandir} ${infodir}" |
| 31 | FILES_lib${BPN}-staticdev = "${libdir}/lib*.a" |
| 32 | AUTO_LIBNAME_PKGS = "${MLPREFIX}lib${BPN}" |
| 33 | |
| 34 | BBCLASSEXTEND = "native nativesdk" |