netbase: fix non working wpa_supplicant detection in network restarts. Push PR.
[openembedded.git] / recipes / libqpe / libqpe-opie.inc
1 DESCRIPTION = "Base library for the Qt/Embedded based palmtop environments"
2 HOMEPAGE = "http://www.trolltech.com"
3 AUTHOR = "The Trolls"
4 SECTION = "opie/libs"
5 PRIORITY = "optional"
6 LICENSE = "GPL"
7 DEPENDS = "uicmoc-native virtual/libqte2"
8 PROVIDES = "virtual/libqpe1"
9 INC_PR = "r7"
10 S = "${WORKDIR}/library"
11
12 inherit palmtop
13
14 OE_QMAKE_CXXFLAGS := "${@oe_filter_out('-fno-rtti', '${OE_QMAKE_CXXFLAGS}', d)}"
15 QMAKE_PROFILES = "library.pro"
16 EXTRA_QMAKEVARS_PRE += "CONFIG+=LIBQPE_WITHROHFEEDBACK"
17 EXTRA_QMAKEVARS_POST += "DESTDIR= DEFINES+=LIBQPE_NO_INLINE_IMAGES"
18
19 CXXFLAGS_append = " -frtti -DOPIE_NO_ERASE_RECT_HACKFIX -DOPIE_NEW_MALLOC"
20
21 do_compile() {
22         mkdir -p ${STAGING_INCDIR}/qpe \
23                  ${STAGING_INCDIR}/qtopia \
24                  ${STAGING_INCDIR}/opie \
25                  ${STAGING_INCDIR}/opie2 \
26                  ${STAGING_INCDIR}/qtopia/private
27         for i in ${S}/*.h
28         do
29                 install -m 0644 $i ${STAGING_INCDIR}/qpe/`basename $i`
30                 install -m 0644 $i ${STAGING_INCDIR}/qtopia/`basename $i`
31                 install -m 0644 $i ${STAGING_INCDIR}/qtopia/private/`basename $i`
32         done
33         for i in ${S}/backend/*.h
34         do
35                 install -m 0644 $i ${STAGING_INCDIR}/qpe/`basename $i`
36                 install -m 0644 $i ${STAGING_INCDIR}/qtopia/`basename $i`
37                 install -m 0644 $i ${STAGING_INCDIR}/qtopia/private/`basename $i`
38         done
39         rm -f ${STAGING_INCDIR}/qtopia/*_p.h # remove private stuff out of qtopia
40         oe_runmake MOC=${STAGING_BINDIR_NATIVE}/moc UIC=${STAGING_BINDIR_NATIVE}/uic
41 }
42
43 do_stage() {
44         oe_libinstall -so libqpe ${STAGING_LIBDIR}
45         # include files already done during do_compile
46 }
47
48 do_install() {
49         oe_libinstall -so libqpe ${D}${libdir}
50
51         install -d ${D}${includedir}/qpe \
52                ${D}${includedir}/qtopia/private
53
54         for i in ${S}/*.h
55         do
56                 install -m 0644 $i ${D}${includedir}/qpe/`basename $i`
57                 install -m 0644 $i ${D}${includedir}/qtopia/`basename $i`
58                 install -m 0644 $i ${D}${includedir}/qtopia/private/`basename $i`
59         done
60         for i in ${S}/backend/*.h
61         do
62                 install -m 0644 $i ${D}${includedir}/qpe/`basename $i`
63                 install -m 0644 $i ${D}${includedir}/qtopia/`basename $i`
64                 install -m 0644 $i ${D}${includedir}/qtopia/private/`basename $i`
65         done
66         rm -f ${D}${includedir}/qtopia/*_p.h # remove private stuff out of qtopia
67 }