summaryrefslogtreecommitdiff
path: root/packages/xqt2/xqt2_20060509.bb
diff options
context:
space:
mode:
authorMichael Lauer <mickey@vanille-media.de>2006-05-13 19:16:07 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2006-05-13 19:16:07 +0000
commit95e7c0ab24272bde3c1c5d4b89f53ecd8c402125 (patch)
treefc48957a9b3f25ad855ae572e3a62b67e31c91d3 /packages/xqt2/xqt2_20060509.bb
parentbbd7bd75f82d177e6ea894672148a76f0b0e6d92 (diff)
add Xqt2, an X server for Opie environments. patch courtesy Enodr <nicolasfr@gmail.com> - thanks!
Diffstat (limited to 'packages/xqt2/xqt2_20060509.bb')
-rw-r--r--packages/xqt2/xqt2_20060509.bb111
1 files changed, 111 insertions, 0 deletions
diff --git a/packages/xqt2/xqt2_20060509.bb b/packages/xqt2/xqt2_20060509.bb
new file mode 100644
index 0000000000..1b294475a4
--- /dev/null
+++ b/packages/xqt2/xqt2_20060509.bb
@@ -0,0 +1,111 @@
+DESCRIPTION = "Xqt2 is an X-Server than runs within the Opie environment"
+HOMEPAGE = "http://xqt.sourceforge.jp"
+DEPENDS = "freetype libxi xmu flex-native virtual/libqte2 libqpe-opie"
+LICENSE = "GPL"
+SECTION = "opie/applications"
+APPTYPE = "binary"
+APPNAME = "Xqt"
+PR = "r0"
+
+inherit palmtop
+
+SRC_URI = "cvs://anonymous@cvs.sourceforge.jp/cvsroot/xqt;module=xqt2;method=pserver;date=${PV} \
+ http://ring.asahi-net.or.jp/archives/XFree86/4.3.0/source/X430src-1.tgz \
+ http://ring.asahi-net.or.jp/archives/XFree86/4.3.0/source/X430src-2.tgz \
+ http://ring.asahi-net.or.jp/archives/XFree86/4.3.0/source/X430src-3.tgz \
+ http://ring.asahi-net.or.jp/archives/XFree86/4.3.0/source/X430src-4.tgz \
+ http://ring.asahi-net.or.jp/archives/XFree86/4.3.0/source/X430src-5.tgz \
+ file://KeyMap.patch;patch=1 \
+ file://moc_call.patch;patch=1 \
+ file://imake-staging.patch;patch=1 \
+ file://cross.patch;patch=1 \
+ file://fephack.patch;patch=1 \
+ file://xchar2b.patch;patch=1 \
+ file://xqt-make.patch;patch=1 "
+S = "${WORKDIR}/xc"
+
+QT_LIBRARY = '${@base_conditional("PALMTOP_USE_MULTITHREADED_QT", "yes", "qte-mt", "qte",d)}'
+QT_LIBRARY_append_c7x0 = " -laticore"
+
+do_configure() {
+ #general config
+ echo "#define BuildServersOnly YES" > config/cf/host.def
+ echo "#define ProjectRoot /usr" >> config/cf/host.def
+
+ # do not build these XServers
+ echo "#define XnestServer NO" >> config/cf/host.def
+ echo "#define XdmxServer NO" >> config/cf/host.def
+
+ # build commands
+ echo "#define CcCmd ${CC}" >> config/cf/host.def
+ echo "#define CplusplusCmd ${CXX}" >> config/cf/host.def
+ echo "#define LdCmd ${LD}" >> config/cf/host.def
+
+ # Qt defines
+ echo "#define QtCmnDefs -fno-exceptions -fno-rtti" >> config/cf/host.def
+ echo "#define QtDir ${QTDIR}" >> config/cf/host.def
+ echo "#define QtLibs -lqpe -l${QT_LIBRARY} -lm -lpng -ljpeg -lts -lsupc++" >> config/cf/host.def
+ echo "#define MocBin ${STAGING_BINDIR}/moc" >> config/cf/host.def
+ echo "#define QtDefs -DQWS -DOPIE_NEW_MALLOC -DOPIE_NO_ERASE_RECT_HACKFIX QtCmnDefs" >> config/cf/host.def
+
+ # Build these XServers
+ echo "#define XqtXServer YES" >> config/cf/host.def
+ echo "#define XF86Server NO" >> config/cf/host.def
+ echo "#define TinyXServer YES" >> config/cf/host.def
+ echo "#define KDriveXServer YES" >> config/cf/host.def
+ echo "#define KdriveServerExtraDefines -DDDXOSFATALERROR -DDDXOSVERRORF" >> config/cf/host.def
+
+ # General Config
+ echo "#define SystemUsrIncDir ${STAGING_INCDIR}" >> config/cf/host.def
+ echo "#define IncRoot ${STAGING_INCDIR}" >> config/cf/host.def
+ echo "#define LdPostLib -L${STAGING_LIBDIR}" >> config/cf/host.def
+
+ echo "#undef BuildRandR " >> config/cf/host.def
+ echo "#define BuildRandR YES" >> config/cf/host.def
+ echo "#define BuildLBX YES" >> config/cf/host.def
+
+ # change standard defines
+ if [ ${TARGET_ARCH} == "arm" ]; then
+ echo "#define StandardDefines -Dlinux -D__arm__ -D_POSIX_SOURCE -D_BSD_SOURCE -D_GNU_SOURCE" >> config/cf/host.def
+ echo "#define Arm32Architecture" >> config/cf/host.def
+ fi
+ echo "" > config/cf/date.def
+}
+
+do_compile() {
+ export TOPDIR=${TOPDIR}
+ mkdir -p programs/Xserver/hw/xqt
+ #cp -r ../xqt-driver/* programs/Xserver/hw/xqt
+ (cd programs/Xserver/hw/xqt && ln -s ../../../../../xqt2/xfree86/xqt-driver/* .)
+ unset CC
+ make -C config/imake -f Makefile.ini CC="${BUILD_CC}" BOOTSTRAPCFLAGS="${BUILD_CFLAGS}" clean imake
+ make CC="${BUILD_CC}" xmakefile
+ make Makefiles
+ make clean
+ #make depend
+ make includes CC="${BUILD_CC}"
+ make -C config/util CC="${BUILD_CC}"
+ for l in font xtrans Xdmcp Xau lbxutil; do make -C lib/$l CC="${CC}" LD="${LD}" CC_STAGING="-I${STAGING_INCDIR}" LD_STAGING="-L${STAGING_LIBDIR}"; done
+ make -C programs/Xserver CC="${CC}" LD="${LD}" CC_STAGING="-I${STAGING_INCDIR}" LD_STAGING="-L${STAGING_LIBDIR}" INSTALLED_LIBS=""
+}
+
+do_stage() {
+ install -d ${STAGING_INCDIR}/xserver-xqt
+ install -m 0644 programs/Xserver/hw/xfree86/common/fourcc.h ${STAGING_INCDIR}/xserver-xqt
+}
+
+do_install() {
+ oe_runmake -C programs/Xserver DESTDIR="${D}" CC="${CC}" LD="${LD}" \
+ CC_STAGING="-I${STAGING_INCDIR}" LD_STAGING="-L${STAGING_LIBDIR}" INSTALLED_LIBS="" install
+ oe_runmake -C lib/font DESTDIR="${D}" CC="${CC}" LD="${LD}" \
+ CC_STAGING="-I${STAGING_INCDIR}" LD_STAGING="-L${STAGING_LIBDIR}" INSTALLED_LIBS="" install
+
+ install -d ${D}${palmtopdir}/Apps/applications/
+ install -m 0644 ${WORKDIR}/xqt2/xfree86/files/Xqt.desktop ${D}${palmtopdir}/Apps/applications
+ install -d ${D}${palmtopdir}/bin/
+ install -m 0755 ${D}${bindir}/Xqt ${D}${palmtopdir}/bin/Xqt
+ install -d ${D}${palmtopdir}/pics
+ install -m 0644 programs/Xserver/hw/xqt/Xqt.png ${D}${palmtopdir}/pics
+}
+
+PACKAGE_ARCH_c7x0 = "${MACHINE_ARCH}"