Posted to tcl by dgood` at Tue Dec 24 00:04:16 GMT 2013view raw

  1. DESCRIPTION = "XML data processing in Tcl"
  2. LICENSE = "MPL-1"
  3. SECTION = "devel/tcltk"
  4. HOMEPAGE = "http://tdom.github.io/"
  5. DEPENDS = "tcl-native"
  6. LIC_FILES_CHKSUM = "file://../LICENSE;md5=4673aaff544d4c9b9a521cb8e0860bfb"
  7. PR = "r0"
  8.  
  9. SRC_URI = "git://github.com/tDOM/tdom.git;protocol=git;tag=master"
  10.  
  11. S = "${WORKDIR}/git/unix"
  12.  
  13. inherit autotools
  14.  
  15. CONFIGUREOPTS = " \
  16. --build=${BUILD_SYS} \
  17. --host=${HOST_SYS} \
  18. --target=${TARGET_SYS} \
  19. --prefix=${D}/usr \
  20. --exec_prefix=${D}/usr \
  21. "
  22. EXTRA_OECONF = " \
  23. --with-tcl=${STAGING_LIBDIR} \
  24. TCL_LIB_SPEC='-L${STAGING_LIBDIR} -ltcl8.5' \
  25. SHLIB_LD_LIBS='${LIBS} -L${STAGING_LIBDIR} -ltclstub8.5' \
  26. "
  27. do_configure() {
  28. # ../configure --with-tcl=${STAGING_LIBDIR} --host=arm-angstrom-linux-gnueabi --prefix=${D}
  29. oe_runconf
  30. }
  31.  
  32. oe_runconf () {
  33. cfgscript="${S}/../configure"
  34. if [ -x "$cfgscript" ] ; then
  35. bbnote "Running $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} $@"
  36. # bbnote "Running $cfgscript ${EXTRA_OECONF} $@"
  37. set +e
  38. ${CACHED_CONFIGUREVARS} $cfgscript ${CONFIGUREOPTS} ${EXTRA_OECONF} "$@"
  39. # ${CACHED_CONFIGUREVARS} $cfgscript ${EXTRA_OECONF} "$@"
  40. if [ "$?" != "0" ]; then
  41. echo "Configure failed. The contents of all config.log files follows to aid debugging"
  42. find ${S} -name config.log -print -exec cat {} \;
  43. bbfatal "oe_runconf failed"
  44. fi
  45. set -e
  46. else
  47. bbfatal "no configure script found at $cfgscript"
  48. fi
  49. }
  50.