anchor.diff:  	echo "DEFINES -= QT_NO_CAST_TO_ASCII" >>src/qbase.pri
   	echo "DEFINES += QT_NO_XIM" >>src/qbase.pri
   	unset QMAKESPEC
  +	#export QMAKESPEC="linux-oe-g++"
   	ln -sf ${STAGING_BINDIR}/qmake2 bin/qmake
  -	echo yes | ./configure -v -prefix ${prefix} -crossarch ${ARCH} ${QT_CONFIG_FLAGS} -fast \
  +	#rm -rf ./mkspecs
  +	#ln -sf ${QMAKE_MKSPEC_PATH} ./mkspecs
  +	echo yes | ./configure -prefix / -crossarch ${ARCH} ${QT_CONFIG_FLAGS} -fast \
   		-L${STAGING_LIBDIR} -I${STAGING_INCDIR} -I${STAGING_INCDIR}/freetype2 -I${STAGING_INCDIR}/mysql
   }
   
   # FIXME: Might want to compile the cross tools for the -dev packages as well...
  -
   do_compile() {
   	unset CFLAGS CXXFLAGS
   	install -m 0755 ${STAGING_BINDIR}/rcc4 ${S}/bin/rcc
  
positive.code: PARTS = "3Support Core Designer DesignerComponents Gui Network Sql Svg Test Xml"
  
  do_stage() {
  	install -d ${STAGING_QT_DIR}
  	for part in ${PARTS}
  	do
  		oe_libinstall -so -C lib libQt$part ${STAGING_QT_DIR}
  	done
  	oe_libinstall -a -C lib libQtAssistantClient ${STAGING_QT_DIR}
  	cp -pPR include/* ${STAGING_INCDIR}/
  }
  
  do_install() {
  	install -d ${D}${libdir}
  	install -d ${D}${bindir}
  
negative.code: 	do
  		install -m 0755 $binary ${D}${bindir}/qt4-examples/
  	done
  	install -d ${D}${bindir}/qt4-demos
  	for binary in `find demos -perm 0755 -type f`
  	do
  		install -m 0755 $binary ${D}${bindir}/qt4-demos/
  	done
  }
  
  PACKAGES =+ "libqtcore4 libqtgui4 libqtnetwork4 libqtsql4 libqtsvg4 libqttest4 libqtxml4 \
               libqtdesigner4 libqtdesignercomponents4 \
               qt4-assistant qt4-common qt4-designer qt4-demos qt4-examples qt4-linguist \
               qt4-plugins-accessible qt4-plugins-codecs qt4-plugins-designer qt4-plugins-imageformats qt4-plugins-sqldrivers"
  
  FILES_libqtcore4               = "${libdir}/libQtCore.so*"
  