diff options
author | Chris Larson <clarson@kergoth.com> | 2003-07-10 19:19:48 +0000 |
---|---|---|
committer | Chris Larson <clarson@kergoth.com> | 2003-07-10 19:19:48 +0000 |
commit | 94c98a1c54e48a128cfa44afa6ab837b1f8032c8 (patch) | |
tree | 34c1d5d738f756f28be073bba8f76f7d0ab516d8 /content/qte-2.3.6.oe | |
parent | a74795e1b2432aa1052705bcfdc143f575360c23 (diff) |
Add libpng and libjpeg, and make qt/e compile.
BKrev: 3f0dbc54uza9m2VcwjytNqQ6-PmJSw
Diffstat (limited to 'content/qte-2.3.6.oe')
-rw-r--r-- | content/qte-2.3.6.oe | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/content/qte-2.3.6.oe b/content/qte-2.3.6.oe index e69de29bb2..8405e68a46 100644 --- a/content/qte-2.3.6.oe +++ b/content/qte-2.3.6.oe @@ -0,0 +1,42 @@ +DESCRIPTION="Qt/Embedded version 2.3.6" +LICENSE="GPL/QPL" +SRC_URI="ftp://ftp.trolltech.com/pub/qtopia/source/qt-embedded-2.3.6.tar.gz" +SRC_URI_append=" file://${FILESDIR}/qpe.patch;patch=1" +DEPENDS=virtual/libc content/zlib content/libpng content/libjpeg +PROVIDES=virtual/qte virtual/libqte2 +S="${WORKDIR}/qt-${PV}" + +# strip off leading and trailing whitespace, and made the vars single word +CXX:="${@oe.data.getVar('CXX', d, 1).strip().split()[0]}" +CC:="${@oe.data.getVar('CC', d, 1).strip().split()[0]}" +BUILD_CXX:="${@oe.data.getVar('BUILD_CXX', d, 1).strip().split()[0]}" +BUILD_CC:="${@oe.data.getVar('BUILD_CC', d, 1).strip().split()[0]}" +CFLAGS:="${@oe.data.getVar('CFLAGS', d, 1).strip()}" +CXXFLAGS:="${@oe.data.getVar('CXXFLAGS', d, 1).strip()}" +LDFLAGS:="${@oe.data.getVar('LDFLAGS', d, 1).strip()}" + +export QTDIR = ${S} + +ARCH_i686=x86 + +EXTRA_OECONF=-system-jpeg -system-libpng -system-zlib -no-qvfb -no-xft -no-vnc -gif ${EXTRA_OECONF_ARCH} ${EXTRA_OECONF_CONFIG} + +EXTRA_OECONF_CONFIG=-qconfig qpe +EXTRA_OECONF_ARCH=-xplatform ${OS}-${ARCH}-g++ +EXTRA_OECONF_ARCH_collie=-xplatform ${OS}-sharp-g++ +EXTRA_OECONF_ARCH_ramses=-xplatform ${OS}-ramses-g++ + +do_compile() { + CFLAGS="${CFLAGS}" + LDFLAGS="${LDFLAGS}" + CPPFLAGS="${CPPFLAGS}" + CXXFLAGS="${CXXFLAGS}" + export CFLAGS LDFLAGS CXXFLAGS CPPFLAGS + if [ "$BUILD_ARCH" = "i686" ]; then + BUILD_ARCH=x86 + fi + oenote ./configure -platform $BUILD_OS-$BUILD_ARCH-g++ $EXTRA_OECONF + echo yes | ./configure $EXTRA_OECONF || die "Configuring qt failed" + (cd src/moc; EXTRA_OEMAKE="SYSCONF_CXX='${BUILD_CXX}' SYSCONF_CC='${BUILD_CC}'" oe_runmake) + oe_runmake SYSCONF_CXX='${CXX}' SYSCONF_CC="${CC}" SYSCONF_LINK="${CC}" SYSCONF_SHLIB="${CC}" SYSCONF_CFLAGS="${CFLAGS}" SYSCONF_CXXFLAGS="${CXXFLAGS} -pipe -DQWS -fno-exceptions -fno-rtti -O2 -Wall -W -DNO_DEBUG" SYSCONF_LFLAGS="${LDFLAGS}" +} |