diff options
Diffstat (limited to 'meta-qt3/recipes-qt3/qt3/qt-x11-free-common.inc')
-rw-r--r-- | meta-qt3/recipes-qt3/qt3/qt-x11-free-common.inc | 92 |
1 files changed, 92 insertions, 0 deletions
diff --git a/meta-qt3/recipes-qt3/qt3/qt-x11-free-common.inc b/meta-qt3/recipes-qt3/qt3/qt-x11-free-common.inc new file mode 100644 index 0000000..e486c52 --- /dev/null +++ b/meta-qt3/recipes-qt3/qt3/qt-x11-free-common.inc | |||
@@ -0,0 +1,92 @@ | |||
1 | DESCRIPTION = "Qt/X11 Version ${PV} is a full fledged cross-platform application framework" | ||
2 | SECTION = "x11/libs" | ||
3 | PRIORITY = "optional" | ||
4 | LICENSE = "GPL | QPL" | ||
5 | HOMEPAGE = "http://www.trolltech.com" | ||
6 | PR = "r0" | ||
7 | |||
8 | S = "${WORKDIR}/qt-x11-free-${PV}" | ||
9 | |||
10 | |||
11 | inherit qmake_base ${COREBASE}/meta-qt3/classes/qt3x11.bbclass | ||
12 | |||
13 | export QTDIR = "${S}" | ||
14 | STAGING_QT_DIR = "${STAGING_DIR_HOST}/qt3" | ||
15 | ARCH_i686 = "x86" | ||
16 | EXTRA_OEMAKE = "-e" | ||
17 | |||
18 | QT_CONFIG_FLAGS = "-release -shared -qt-zlib -no-nas-sound -no-sm -qt-libpng -no-gif -no-xinerama \ | ||
19 | -no-tablet -no-xkb -no-dlopen-opengl -no-nis -no-cups -thread -verbose" | ||
20 | |||
21 | EXTRA_ENV = 'QMAKE="${STAGING_BINDIR_NATIVE}/qmake -after INCPATH+=${STAGING_INCDIR} \ | ||
22 | INCPATH+=${STAGING_INCDIR}/freetype2 LIBS+=-L${STAGING_LIBDIR}" \ | ||
23 | QMAKESPEC="${QMAKESPEC}" LINK="${CXX} -Wl,-rpath-link,${STAGING_LIBDIR}" \ | ||
24 | AR="${TARGET_PREFIX}ar cqs" \ | ||
25 | MOC="${STAGING_BINDIR_NATIVE}/moc3" UIC="${STAGING_BINDIR_NATIVE}/uic3" MAKE="make -e"' | ||
26 | |||
27 | do_configure() { | ||
28 | echo "yes" | ./configure -prefix ${prefix} ${QT_CONFIG_FLAGS} -no-fast \ | ||
29 | -L${STAGING_LIBDIR} -I${STAGING_INCDIR} -I${STAGING_INCDIR}/freetype2 -I${STAGING_INCDIR}/mysql | ||
30 | |||
31 | # force regenerate | ||
32 | rm -f src/qtmain.pro | ||
33 | cat Makefile >makefile | ||
34 | find . -name "Makefile"|xargs rm -f | ||
35 | (cd src && qmake -spec ${QMAKESPEC} ) | ||
36 | (cd plugins/src && qmake -spec ${QMAKESPEC} ) | ||
37 | (cd tools && qmake -spec ${QMAKESPEC} ) | ||
38 | (cd tools/qvfb && qmake -spec ${QMAKESPEC} ) | ||
39 | } | ||
40 | |||
41 | do_compile() { | ||
42 | unset CFLAGS | ||
43 | unset CXXFLAGS | ||
44 | |||
45 | install -m 0755 ${STAGING_BINDIR_NATIVE}/moc3 ${S}/bin/moc | ||
46 | install -m 0755 ${STAGING_BINDIR_NATIVE}/uic3 ${S}/bin/uic | ||
47 | |||
48 | oe_runmake -C src ${EXTRA_ENV} | ||
49 | oe_runmake -C plugins/src ${EXTRA_ENV} | ||
50 | oe_runmake -C tools ${EXTRA_ENV} | ||
51 | } | ||
52 | |||
53 | do_install_prepend() { | ||
54 | install -d ${STAGING_QT_DIR}/bin | ||
55 | ln -sf ${STAGING_BINDIR_NATIVE}/moc3 ${STAGING_QT_DIR}/bin/moc | ||
56 | ln -sf ${STAGING_BINDIR_NATIVE}/uic3 ${STAGING_QT_DIR}/bin/uic | ||
57 | ln -sf ${STAGING_BINDIR_NATIVE}/qmake ${STAGING_QT_DIR}/bin/qmake | ||
58 | install -d ${STAGING_QT_DIR}/lib | ||
59 | oe_soinstall lib/libqt-mt.so.${PV} ${STAGING_QT_DIR}/lib | ||
60 | install -d ${STAGING_QT_DIR}/include/private | ||
61 | for f in include/*.h | ||
62 | do | ||
63 | install -m 0644 $f ${STAGING_QT_DIR}/include/ | ||
64 | done | ||
65 | for f in include/private/*.h | ||
66 | do | ||
67 | install -m 0644 $f ${STAGING_QT_DIR}/include/private | ||
68 | done | ||
69 | for f in lib/*.prl | ||
70 | do | ||
71 | install -m 0644 $f ${STAGING_QT_DIR}/lib | ||
72 | done | ||
73 | } | ||
74 | |||
75 | do_install() { | ||
76 | install -d ${D}${libdir}/ | ||
77 | oe_soinstall lib/libqt-mt.so.${PV} ${D}${libdir}/ | ||
78 | install -d ${D}${bindir}/ | ||
79 | install -d ${D}${prefix}/plugins/ | ||
80 | cp -pPR plugins/imageformats plugins/sqldrivers plugins/designer ${D}${prefix}/plugins/ | ||
81 | } | ||
82 | |||
83 | PACKAGES =+ " libqt-mt3 qt-x11-plugins-imageformats qt-x11-plugins-sqldrivers qt-x11-plugins-designer \ | ||
84 | qt-x11-designer qt-x11-assistant qt-x11-qvfb qt-x11-qtconfig" | ||
85 | FILES_libqt-mt3 = "${D}/{libdir}/libqt-mt*" | ||
86 | FILES_qt-x11-plugins-imageformats = "${prefix}/plugins/imageformats/*.so" | ||
87 | FILES_qt-x11-plugins-sqldrivers = "${prefix}/plugins/sqldrivers/*.so" | ||
88 | FILES_qt-x11-plugins-designer = "${prefix}/plugins/designer/*.so" | ||
89 | FILES_qt-x11-designer = "${bindir}/designer" | ||
90 | FILES_qt-x11-assistant = "${bindir}/assistant" | ||
91 | FILES_qt-x11-qtconfig = "${bindir}/qtconfig" | ||
92 | FILES_qt-x11-dbg += "${prefix}/plugins/*/.debug ${D}/qt-x11-plugins-debug" | ||