Merge oe-devel@oe-devel.bkbits.net:packages
[vuplus_openembedded] / qmake / qmake-native_3.2.3.oe
1 SECTION = "devel"
2 DESCRIPTION = "Qt(E) Makefile Generator"
3 PRIORITY = "optional"
4 LICENSE = "GPL|QPL"
5
6 SRC_URI = \
7         "ftp://ftp.trolltech.com/pub/qt/source/qt-embedded-free-${PV}.tar.bz2 \
8         file://linux-oe-qmake.conf"
9
10 S = "${WORKDIR}/qt-embedded-free-${PV}"
11
12 inherit autotools native
13
14 export QTDIR = "${S}"
15
16 EXTRA_OECONF = "-static -no-gif -no-sm -system-zlib -system-libjpeg \
17         -system-libpng -no-thread -no-nis -no-cups -no-stl -disable-styles \
18         -disable-tools -disable-kernel -disable-widgets -disable-dialogs \
19         -disable-iconview -disable-workspace -disable-network -disable-canvas \
20         -disable-table -disable-xml -disable-opengl -disable-sql"
21 EXTRA_OEMAKE = "-e"
22
23 do_configure() {
24         # Install the OE build templates (linux, linux-uclibc)
25         install -d ${S}/mkspecs/linux-oe-g++
26         install -d ${S}/mkspecs/linux-uclibc-oe-g++
27         install -m 0644 ${WORKDIR}/linux-oe-qmake.conf \
28                 ${S}/mkspecs/linux-oe-g++/qmake.conf
29         ln -sf ../linux-g++/qplatformdefs.h \
30                 ${S}/mkspecs/linux-oe-g++/qplatformdefs.h
31         ln -sf ../linux-oe-g++/qmake.conf \
32                 ${S}/mkspecs/linux-uclibc-oe-g++/qmake.conf
33         ln -sf ../linux-g++/qplatformdefs.h \
34                 ${S}/mkspecs/linux-uclibc-oe-g++/qplatformdefs.h
35
36         QMAKESPEC=
37         PLATFORM=${HOST_OS}-oe-g++
38         export PLATFORM
39         oenote ./configure ${EXTRA_OECONF}
40         echo yes | ./configure ${EXTRA_OECONF} || die "Configuring qt failed"
41 }
42
43 do_compile() {
44         :
45 }
46
47 do_stage() {
48         install -m 0755 bin/qmake ${STAGING_BINDIR}
49         install -d ${QMAKE_MKSPEC_PATH}
50         cp -dfR mkspecs/* ${QMAKE_MKSPEC_PATH}
51 }
52
53 do_install() {
54         :
55 }