diff options
Diffstat (limited to 'meta/packages/uicmoc')
-rw-r--r-- | meta/packages/uicmoc/uicmoc4-native.inc | 61 | ||||
-rw-r--r-- | meta/packages/uicmoc/uicmoc4-native_4.3.2.bb | 1 |
2 files changed, 62 insertions, 0 deletions
diff --git a/meta/packages/uicmoc/uicmoc4-native.inc b/meta/packages/uicmoc/uicmoc4-native.inc new file mode 100644 index 0000000000..8f0c715a89 --- /dev/null +++ b/meta/packages/uicmoc/uicmoc4-native.inc | |||
@@ -0,0 +1,61 @@ | |||
1 | DESCRIPTION = "User-Interface-, Meta-Object-, and Resource Compiler for Qt/[X11|Mac|Embedded] version 4.x" | ||
2 | DEPENDS = "zlib-native" | ||
3 | SECTION = "libs" | ||
4 | HOMEPAGE = "http://www.trolltech.com" | ||
5 | PRIORITY = "optional" | ||
6 | LICENSE = "GPL" | ||
7 | PR = "r0" | ||
8 | |||
9 | SRC_URI = "ftp://ftp.trolltech.com/qt/source/qtopia-core-opensource-src-${PV}.tar.gz" | ||
10 | S = "${WORKDIR}/qtopia-core-opensource-src-${PV}" | ||
11 | |||
12 | inherit native | ||
13 | |||
14 | EXTRA_OECONF = "-prefix ${STAGING_DIR_NATIVE}/qt4 \ | ||
15 | -qt-libjpeg -qt-gif -system-zlib \ | ||
16 | -no-nis -no-cups -no-exceptions \ | ||
17 | -no-accessibility -no-libjpeg \ | ||
18 | -no-nas-sound -no-sm \ | ||
19 | -no-xshape -no-xinerama \ | ||
20 | -no-xcursor -no-xrandr \ | ||
21 | -no-xrender -no-fontconfig \ | ||
22 | -no-tablet -no-xkb \ | ||
23 | -no-libpng \ | ||
24 | -verbose -release -fast -static \ | ||
25 | -qt3support " | ||
26 | # yank default -e | ||
27 | EXTRA_OEMAKE = " " | ||
28 | |||
29 | do_configure() { | ||
30 | sed -i 's:^QT += xml qt3support$:QT += xml qt3support network:' "${S}"/src/tools/uic3/uic3.pro | ||
31 | echo yes | ./configure ${EXTRA_OECONF} || die "Configuring qt failed. EXTRA_OECONF was ${EXTRA_OECONF}" | ||
32 | } | ||
33 | |||
34 | TOBUILD = "\ | ||
35 | src/tools/moc \ | ||
36 | src/corelib \ | ||
37 | src/sql \ | ||
38 | src/qt3support \ | ||
39 | src/xml \ | ||
40 | src/tools/uic \ | ||
41 | src/tools/rcc \ | ||
42 | src/network \ | ||
43 | src/gui \ | ||
44 | src/tools/uic3 \ | ||
45 | " | ||
46 | |||
47 | do_compile() { | ||
48 | unset CC CXX CFLAGS LFLAGS CXXFLAGS CPPFLAGS | ||
49 | for i in ${TOBUILD}; do | ||
50 | cd ${S}/$i && oe_runmake CC="${CC}" CXX="${CXX}" | ||
51 | done | ||
52 | } | ||
53 | |||
54 | do_stage() { | ||
55 | install -m 0755 bin/moc ${STAGING_BINDIR}/moc4 | ||
56 | install -m 0755 bin/uic ${STAGING_BINDIR}/uic4 | ||
57 | install -m 0755 bin/uic3 ${STAGING_BINDIR}/uic34 | ||
58 | install -m 0755 bin/rcc ${STAGING_BINDIR}/rcc4 | ||
59 | install -d ${STAGING_DIR_NATIVE}/qt4/ | ||
60 | install -m 0644 tools/porting/src/q3porting.xml ${STAGING_DIR_NATIVE}/qt4/ | ||
61 | } | ||
diff --git a/meta/packages/uicmoc/uicmoc4-native_4.3.2.bb b/meta/packages/uicmoc/uicmoc4-native_4.3.2.bb new file mode 100644 index 0000000000..1950f63068 --- /dev/null +++ b/meta/packages/uicmoc/uicmoc4-native_4.3.2.bb | |||
@@ -0,0 +1 @@ | |||
require uicmoc4-native.inc | |||