anchor.diff:  CFLAGS += "-D_REENTRANT"
   CXXFLAGS_append_powerpc = " -lstdc++"
   
  -PACKAGES =+ "libpcrecpp libpcreposix pcregrep pcregrep-doc pcretest pcretest-doc"
  +do_install_append() {
  +	install -d ${D}${base_libdir}
  +
  +	# Move libpcre to /lib folder according to Debian rules
  +	mv ${D}${libdir}/libpcre.so.* ${D}${base_libdir}
  +	ln -sf ${D}${base_libdir}/libpcre.so.3 ${D}${libdir}/libpcre.so
  +
  +	# Install zpcregrep according to Debian package
  +	install -m 0755 ${S}/debian/zpcregrep ${D}${bindir}/
  +}	
  +
  +PACKAGES =+ "libpcrecpp pcregrep pcregrep-doc pcretest pcretest-doc"
   
   SUMMARY_libpcrecpp = "${SUMMARY} - C++ wrapper functions"
  -SUMMARY_libpcreposix = "${SUMMARY} - C wrapper functions based on the POSIX regex API"
   SUMMARY_pcregrep = "grep utility that uses perl 5 compatible regexes"
   SUMMARY_pcregrep-doc = "grep utility that uses perl 5 compatible regexes - docs"
   SUMMARY_pcretest = "program for testing Perl-comatible regular expressions"
   SUMMARY_pcretest-doc = "program for testing Perl-comatible regular expressions - docs"
   
  +FILES_${PN} += "${base_libdir}/libpcre.so.* ${libdir}/libpcreposix.so.*"
   FILES_libpcrecpp = "${libdir}/libpcrecpp.so.*"
  -FILES_libpcreposix = "${libdir}/libpcreposix.so.*"
  -FILES_pcregrep = "${bindir}/pcregrep"
  +FILES_pcregrep = "${bindir}/pcregrep ${bindir}/zpcregrep"
   FILES_pcregrep-doc = "${mandir}/man1/pcregrep.1"
   FILES_pcretest = "${bindir}/pcretest"
   FILES_pcretest-doc = "${mandir}/man1/pcretest.1"
  +
  +# Correct name of .deb file
  +DEBIANNAME_${PN} = "libpcre3"
   
   BBCLASSEXTEND = "native nativesdk"
   
  
positive.code:     --enable-utf8 \
      --with-link-size=2 \
      --with-match-limit=10000000 \
  "
  
  # Set LINK_SIZE in BUILD_CFLAGS given that the autotools bbclass use it to
  
negative.code: 	  do cp ${S}/$i $t; \
  	done
  }
  