Merge oe-devel@oe-devel.bkbits.net:packages
[openembedded.git] / uicmoc / uicmoc-native_2.3.7.oe
1 DESCRIPTION = "User Interface Generator and Meta Object Compiler (moc) for Qt(E) 2.x"
2 SECTION = "devel"
3 PRIORITY = "optional"
4 LICENSE = "GPL/QPL"
5 PR = "r1"
6
7 SRC_URI = "ftp://ftp.trolltech.com/pub/qt/source/qt-embedded-${PV}.tar.gz \
8            file://fix-makefile.patch;patch=1 \
9            file://gcc3_4.patch;patch=1"
10
11 S = "${WORKDIR}/qt-${PV}"
12
13 inherit native qmake-base
14
15 export QTDIR = "${S}"
16 EXTRA_OEMAKE = 'SYSCONF_CXX="${CXX}" SYSCONF_LINK="${CXX}"'
17 CXXFLAGS += " -DQWS"
18
19 QT_CONFIG_FLAGS = "-depths 8,16 -no-qvfb -no-g++-exceptions -no-jpeg -no-mng \
20                    -qt-zlib -qt-libpng -no-xft -no-xkb -no-vnc -no-sm \
21                    -no-opengl -static -qconfig oe"
22
23 do_configure() {
24     touch src/tools/qconfig-oe.h
25     echo "#define QT_NO_FREETYPE" >> src/tools/qconfig-oe.h
26     echo yes | ./configure ${QT_CONFIG_FLAGS} || die "Configuring qt failed"
27 }
28
29 do_compile() {
30     oe_runmake symlinks   || die "Can't symlink include files"
31     oe_runmake -C src/moc || die "Building moc failed"
32
33     cp src/moc/moc bin/
34
35     oe_runmake -C src                 || die "Building libqt.a failed"
36     oe_runmake -C tools/designer/util || die "Building libqutil.a failed"
37     oe_runmake -C tools/designer/uic  || die "Building uic failed"
38     oe_runmake -C tools/qvfb          || die "Building qvfb failed"
39     oe_runmake -C tools/makeqpf       || die "Building makeqpf failed"
40 }
41
42 do_stage() {
43     install -m 0755 bin/moc ${STAGING_BINDIR}
44     install -m 0755 bin/uic ${STAGING_BINDIR}
45     install -m 0755 tools/makeqpf/makeqpf ${STAGING_BINDIR}
46 }