apr-util_1.4.1.bb 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. DESCRIPTION = "Apache Portable Runtime (APR) companion library"
  2. HOMEPAGE = "http://apr.apache.org/"
  3. SECTION = "libs"
  4. DEPENDS = "apr expat gdbm"
  5. BBCLASSEXTEND = "native"
  6. LICENSE = "Apache-2.0"
  7. LIC_FILES_CHKSUM = "file://LICENSE;md5=519e0a18e03f7c023070568c14b077bb \
  8. file://include/apu_version.h;endline=17;md5=806685a84e71f10c80144c48eb35df42"
  9. PR = "r0"
  10. SRC_URI = "${APACHE_MIRROR}/apr/${BPN}-${PV}.tar.gz \
  11. file://configfix.patch \
  12. file://configure_fixes.patch"
  13. SRC_URI[md5sum] = "666a5d56098a9debf998510e304c8095"
  14. SRC_URI[sha256sum] = "d636d9ef95c6e50e47fc338d532aa375edd11e5d7a3c30dee48beb38ddf4ab4c"
  15. EXTRA_OECONF = "--with-apr=${STAGING_BINDIR_CROSS}/apr-1-config \
  16. --without-odbc \
  17. --without-pgsql \
  18. --with-dbm=gdbm \
  19. --with-gdbm=${STAGING_DIR_HOST}${prefix} \
  20. --without-sqlite2 \
  21. --without-sqlite3 \
  22. --with-expat=${STAGING_DIR_HOST}${prefix}"
  23. inherit autotools lib_package binconfig
  24. OE_BINCONFIG_EXTRA_MANGLE = " -e 's:location=source:location=installed:'"
  25. do_configure_prepend() {
  26. cp ${STAGING_DATADIR}/apr/apr_rules.mk ${S}/build/rules.mk
  27. }
  28. do_configure_prepend_virtclass-native() {
  29. cp ${STAGING_DATADIR_NATIVE}/apr/apr_rules.mk ${S}/build/rules.mk
  30. }
  31. do_configure_append_virtclass-native() {
  32. sed -i "s#LIBTOOL=\$(SHELL) \$(apr_builddir)#LIBTOOL=\$(SHELL) ${STAGING_BINDIR_NATIVE}#" ${S}/build/rules.mk
  33. # sometimes there isn't SHELL
  34. sed -i "s#LIBTOOL=\$(apr_builddir)#LIBTOOL=${STAGING_BINDIR_NATIVE}#" ${S}/build/rules.mk
  35. }
  36. FILES_${PN} += "${libdir}/apr-util-1/apr_dbm_gdbm-1.so"
  37. FILES_${PN}-dev += "${libdir}/aprutil.exp ${libdir}/apr-util-1/apr_dbm_gdbm.*"
  38. FILES_${PN}-dbg += "${libdir}/apr-util-1/.debug/*"