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: export ARCH_i686 = "x86"
  EXTRA_OEMAKE = "-e"
  
  # FIXME: add missing options
  QT_CONFIG_FLAGS = "-release -shared -qt-zlib -system-libjpeg -no-nas-sound -no-sm -no-libmng -qt-libpng -no-gif -no-xinerama \
                     -no-tablet -no-xkb -no-nis -no-cups -no-opengl \
                     -nosse \
                     -no-sql-ibase -no-sql-mysql -no-sql-odbc -no-sql-psql -no-sql-sqlite -no-sql-sqlite2 \
                     -verbose -stl"
  
  EXTRA_ENV = 'QMAKE="${STAGING_BINDIR}/qmake2 -after DEFINES+=QT_NO_XIM INCPATH+=${STAGING_INCDIR} \
               INCPATH+=${STAGING_INCDIR}/freetype2 LIBS+=-L${STAGING_LIBDIR}" \
  
negative.code: FILES_qt4-designer             = "${bindir}/*designer*"
  FILES_qt4-linguist             = "${bindir}/*linguist* ${bindir}/lrelease ${bindir}/lupdate ${bindir}/qm2ts"
  
  FILES_qt4-common               = "${bindir}/qtconfig"
  FILES_qt4-examples             = "${bindir}/qt4-examples/*"
  FILES_qt4-demos                = "${bindir}/qtdemo ${bindir}/qt4-demos/*"
  