Merge oe-devel@oe-devel.bkbits.net:packages
[openembedded.git] / uicmoc / uicmoc3-native_3.3.2.oe
1 DESCRIPTION = "User Interface Generator and Meta Object Compiler (moc) for Qt(E) 3.x"
2 SECTION = "devel"
3 PRIORITY = "optional"
4 LICENSE = "GPL/QPL"
5
6 SRC_URI = "ftp://ftp.trolltech.com/qt/source/qt-embedded-free-3.3.2.tar.bz2 \
7            file://no-examples.patch;patch=1"
8
9 S = "${WORKDIR}/qt-embedded-free-3.3.2"
10
11 inherit native qmake-base
12
13 export QTDIR = "${S}"
14 export OE_QMAKE_LINK="${CXX}"
15 CXXFLAGS += " -DQWS"
16
17 QT_CONFIG_FLAGS = "-release -static -depths 8,16 -qt-zlib -no-nas-sound \
18                    -no-sm -qt-libpng -no-gif -no-xshape -no-xinerama \
19                    -no-xcursor -no-xrandr -no-xrender -no-xft -no-tablet \
20                    -no-xkb -no-dlopen-opengl -no-freetype -no-thread \
21                    -no-nis -no-cups -prefix ${prefix} \
22                    -xplatform ${OE_QMAKE_PLATFORM} \
23                    -platform ${OE_QMAKE_PLATFORM}"
24
25 do_configure() {
26     oe_qmake_mkspecs
27     echo "yes" | ./configure ${QT_CONFIG_FLAGS}
28 }
29
30 do_stage() {
31         install -m 0755 bin/moc ${STAGING_BINDIR}/moc3
32         install -m 0755 bin/uic ${STAGING_BINDIR}/uic3
33         install -m 0655 lib/*.a ${STAGING_LIBDIR}/
34         for f in include/*.h
35         do
36                 install -m 0644 $f ${STAGING_INCDIR}/
37         done
38 }