unzip: use BBCLASSEXTEND now
[openembedded.git] / recipes / qmake / qmake2_2.10a.bb
blobae5816c896e119dae0ecd1eb150b27fe4967a974
1 QTVERSION="4.4.3"
2 FILESDIR += "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/qmake2"
4 BBCLASSEXTEND = "native sdk"
6 require ${PN}.inc
8 SRC_URI += "file://qmake-hack.diff;patch=1"
10 do_install() {
11 install -d ${D}/${bindir}
12 install -m 0755 bin/qmake ${D}/${bindir}/qmake2
13 install -m 0755 bin/qmake ${D}/${bindir}/qmake-qt4
14 install -d ${D}/${datadir}/qt4
15 install -d ${D}/${datadir}/qtopia
17 script="${D}/${datadir}/qtopia/environment-setup"
18 touch $script
19 echo 'export QT_DIR_NAME=qtopia' >> $script
20 echo 'export QT_LIBINFIX=E' >> $script
21 echo 'export OE_QMAKE_CC=gcc' >> $script
22 echo 'export OE_QMAKE_CXX=g++' >> $script
23 echo 'export OE_QMAKE_LINK=g++' >> $script
24 echo 'export OE_QMAKE_LIBDIR_QT=${libdir}' >> $script
25 echo 'export OE_QMAKE_INCDIR_QT=${includedir}/qtopia' >> $script
26 echo 'export OE_QMAKE_MOC=${bindir}/moc' >> $script
27 echo 'export OE_QMAKE_UIC=${bindir}/uic' >> $script
28 echo 'export OE_QMAKE_UIC3=${bindir}/uic3' >> $script
29 echo 'export OE_QMAKE_RCC=${bindir}/rcc' >> $script
30 echo 'export OE_QMAKE_QDBUSCPP2XML=${bindir}/qdbuscpp2xml' >> $script
31 echo 'export OE_QMAKE_QDBUSXML2CPP=${bindir}/qdbusxml2cpp' >> $script
32 echo 'export OE_QMAKE_QT_CONFIG=${datadir}/qtopia/mkspecs/qconfig.pri' >> $script
33 echo 'export QMAKESPEC=${datadir}/qtopia/mkspecs/linux-g++' >> $script
35 script="${D}/${datadir}/qt4/environment-setup"
36 touch $script
37 echo 'export OE_QMAKE_CC=gcc' >> $script
38 echo 'export OE_QMAKE_CXX=g++' >> $script
39 echo 'export OE_QMAKE_LINK=g++' >> $script
40 echo 'export OE_QMAKE_LIBDIR_QT=${libdir}' >> $script
41 echo 'export OE_QMAKE_INCDIR_QT=${includedir}/qt4' >> $script
42 echo 'export OE_QMAKE_MOC=${bindir}/moc' >> $script
43 echo 'export OE_QMAKE_UIC=${bindir}/uic' >> $script
44 echo 'export OE_QMAKE_UIC3=${bindir}/uic3' >> $script
45 echo 'export OE_QMAKE_RCC=${bindir}/rcc' >> $script
46 echo 'export OE_QMAKE_QDBUSCPP2XML=${bindir}/qdbuscpp2xml' >> $script
47 echo 'export OE_QMAKE_QDBUSXML2CPP=${bindir}/qdbusxml2cpp' >> $script
48 echo 'export OE_QMAKE_QT_CONFIG=${datadir}/qt4/mkspecs/qconfig.pri' >> $script
49 echo 'export QMAKESPEC=${datadir}/qt4/mkspecs/linux-g++' >> $script
51 chmod 0755 ${D}${datadir}/qt*/environment-setup
54 FILES_${PN} += "${datadir}/qt*/environment-setup"
57 SRC_URI[md5sum] = "9a639aec44a1e4c70040117183d247a3"
58 SRC_URI[sha256sum] = "05d06b93f95092f1318634fca24f0c2d0a1252c9f1dc2fbb427b07e8ecbb4f39"