Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Nov 5th, 2013  |  syntax: None  |  size: 1.73 KB  |  views: 31  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. PRINC := "${@int(PRINC) + 1}"
  2.  
  3. export PERLCC = "${CC}"
  4.  
  5. export PERL = "${bindir}/env nativeperl"
  6.  
  7. DEPENDS_${PN} += " libpng zlib cairo pango glib-2.0 libxml2 librrd perl perl-native perl-lib "
  8.  
  9. RDEPENDS_${PN} += " \
  10.                   libxml2 \
  11.                   "
  12.  
  13. FILES_${PN} += " \
  14.                /usr/lib/perl/5.14.3/RRDp.pm \
  15.                /usr/lib/perl/5.14.3/x86_64-linux-thread-multi/RRDs.pm \
  16.                /usr/lib/perl/5.14.3/x86_64-linux-thread-multi/auto/RRDs/RRDs.so \
  17.                /usr/lib/perl/5.14.3/x86_64-linux-thread-multi/auto/RRDs/RRDs.bs \
  18.                "
  19. EXTRA_OECONF = " \
  20.     --enable-shared \
  21.     --enable-local-libpng \
  22.     --enable-local-zlib \
  23.     --program-prefix='' \
  24.     rd_cv_ieee_works=yes \
  25.     --disable-python \
  26.     --disable-ruby \
  27.     --disable-lua \
  28.     --disable-rpath \
  29.     --host=arm \
  30.     --bindir=${bindir} \
  31.     --sbindir=${sbindir} \
  32.     --libexecdir=${libexecdir} \
  33.     --sysconfdir=${sysconfdir} \
  34.     --libdir=${libdir} \
  35.     --includedir=${includedir} \
  36.     --oldincludedir=${oldincludedir} \
  37.     --datarootdir=${D} \
  38.      "
  39.  
  40. do_configure_append() {
  41.     # Remove RPATH which causes problems with perl-shared
  42.     sed -i 's/\(.*\) RPATH/\1/' ${S}/bindings/Makefile
  43. }
  44.  
  45. do_compile_append() {
  46.     cd bindings/perl-shared/
  47.     bbnote 'Removing existing RRDs.so'
  48.     rm blib/arch/auto/RRDs/RRDs.so
  49.     bbnote 'Recompiling RRDs.so with non-host includes and paths'
  50.     arm-poky-linux-gnueabi-gcc  -shared -O2 -L/mnt/dev/fsl-community-bsp/build/tmp/sysroots/imx6qsabresd/usr/lib -L/mnt/dev/fsl-community-bsp/build/tmp/sysroots/imx6qsabresd/lib -fstack-protector RRDs.o -L../../src/.libs/  -lrrd -lxml2 -o blib/arch/auto/RRDs/RRDs.so
  51.     chmod 755 blib/arch/auto/RRDs/RRDs.so
  52. }t