diff options
| author | Martin Jansa <Martin.Jansa@gmail.com> | 2011-04-10 13:24:47 +0200 |
|---|---|---|
| committer | Martin Jansa <Martin.Jansa@gmail.com> | 2011-04-10 14:43:41 +0200 |
| commit | 89500c583e0f1dc1b4ffdf72914e08e505e427e0 (patch) | |
| tree | b073036cc61aa34ca5ac9eec4d617366e0dcb3d5 /meta-oe/recipes-graphics/xorg-xserver/xorg-xserver-common.inc | |
| parent | e66079da37992abd54486488aa06a99bf7a4198c (diff) | |
| download | meta-openembedded-89500c583e0f1dc1b4ffdf72914e08e505e427e0.tar.gz | |
recipes,classes: import a lot of recipes from meta-shr
* tested on shr-lite-image for om-gta02 and nokia900 (with meta-shr layer)
Diffstat (limited to 'meta-oe/recipes-graphics/xorg-xserver/xorg-xserver-common.inc')
| -rw-r--r-- | meta-oe/recipes-graphics/xorg-xserver/xorg-xserver-common.inc | 112 |
1 files changed, 112 insertions, 0 deletions
diff --git a/meta-oe/recipes-graphics/xorg-xserver/xorg-xserver-common.inc b/meta-oe/recipes-graphics/xorg-xserver/xorg-xserver-common.inc new file mode 100644 index 0000000000..79f13fc135 --- /dev/null +++ b/meta-oe/recipes-graphics/xorg-xserver/xorg-xserver-common.inc | |||
| @@ -0,0 +1,112 @@ | |||
| 1 | HOMEPAGE = "http://www.x.org" | ||
| 2 | SECTION = "x11/base" | ||
| 3 | LICENSE = "MIT-X" | ||
| 4 | LIC_FILES_CHKSUM = "file://COPYING;md5=3dd2bbe3563837f80ed8926b06c1c353" | ||
| 5 | |||
| 6 | INC_PR = "r18" | ||
| 7 | |||
| 8 | PROVIDES = "virtual/xserver" | ||
| 9 | |||
| 10 | # Config manager for xserver, options are: hal, udev, empty (for configuration in xorg.conf) | ||
| 11 | DISTRO_XORG_CONFIG_MANAGER ?= "hal" | ||
| 12 | DISTRO_XORG_CONFIG_MANAGER_shr ?= "udev" | ||
| 13 | |||
| 14 | # default none, enabled by DISTRO_XORG_CONFIG_MANAGER setting | ||
| 15 | CONFIG_MANAGER_OPTION += "${@['--disable-config-hal','--enable-config-hal',''][bb.data.getVar('DISTRO_XORG_CONFIG_MANAGER',d) in ['hal']]}" | ||
| 16 | CONFIG_MANAGER_OPTION += "${@['--disable-config-udev','--enable-config-udev',''][bb.data.getVar('DISTRO_XORG_CONFIG_MANAGER',d) in ['udev']]}" | ||
| 17 | |||
| 18 | DEPENDS = "fontconfig freetype flex-native liblbxutil kbproto \ | ||
| 19 | xf86driproto drm glproto randrproto renderproto fixesproto damageproto \ | ||
| 20 | xcmiscproto xextproto xproto xf86miscproto xf86vidmodeproto xf86bigfontproto \ | ||
| 21 | scrnsaverproto bigreqsproto resourceproto fontsproto inputproto \ | ||
| 22 | xf86dgaproto videoproto compositeproto trapproto recordproto dmxproto \ | ||
| 23 | resourceproto xineramaproto xtrans evieext libxkbfile libxfont libxau \ | ||
| 24 | libfontenc libxdmcp libxxf86vm libxaw libxmu libxt libxpm libxext libx11 \ | ||
| 25 | libxkbui libxxf86misc libxi libdmx libxtst libxres virtual/libgl libxcalibrate \ | ||
| 26 | libxv ${DISTRO_XORG_CONFIG_MANAGER}" | ||
| 27 | |||
| 28 | RRECOMMENDS_${PN} = "libpciaccess" | ||
| 29 | |||
| 30 | XORG_PN = "xorg-server" | ||
| 31 | SRC_URI = "${XORG_MIRROR}/individual/xserver/${XORG_PN}-${PV}.tar.bz2" | ||
| 32 | |||
| 33 | S = "${WORKDIR}/${XORG_PN}-${PV}" | ||
| 34 | |||
| 35 | inherit autotools pkgconfig glx-use-tls | ||
| 36 | |||
| 37 | EXTRA_OECONF += " --enable-xcalibrate \ | ||
| 38 | --enable-kdrive \ | ||
| 39 | --enable-xephyr \ | ||
| 40 | --disable-xfbdev \ | ||
| 41 | --disable-xnest \ | ||
| 42 | --disable-kdrive-vesa \ | ||
| 43 | --with-default-font-path="/usr/share/fonts/X11/misc" \ | ||
| 44 | ac_cv_file__usr_share_sgml_X11_defs_ent=no" | ||
| 45 | |||
| 46 | # CONFIG_MANAGER_OPTION is used only in recipes which support those options | ||
| 47 | |||
| 48 | EXTRA_OECONF_append_arm = " ac_cv_header_linux_apm_bios_h=no " | ||
| 49 | |||
| 50 | PACKAGES =+ "xserver-security-policy" | ||
| 51 | FILES_xserver-security-policy += "${libdir}/xserver/SecurityPolicy" | ||
| 52 | RRECOMMENDS_${PN} += "xserver-security-policy xkeyboard-config rgb xserver-xorg-conf" | ||
| 53 | |||
| 54 | PACKAGES =+ "${PN}-sdl ${PN}-fbdev ${PN}-xprint ${PN}-xvfb ${PN}-utils ${PN}-xephyr" | ||
| 55 | |||
| 56 | RDEPENDS_${PN}-xvfb += "xkeyboard-config" | ||
| 57 | |||
| 58 | FILES_${PN}-fbdev = "${bindir}/Xfbdev" | ||
| 59 | FILES_${PN}-sdl = "${bindir}/Xsdl" | ||
| 60 | FILES_${PN}-xprint = "${libdir}/X11/xserver/*/print" | ||
| 61 | FILES_${PN}-xvfb = "${bindir}/Xvfb" | ||
| 62 | FILES_${PN}-utils = "${bindir}/scanpci ${bindir}/pcitweak ${bindir}/ioport ${bindir}/in[bwl] ${bindir}/out[bwl] ${bindir}/mmap[rw] ${bindir}/gtf ${bindir}/getconfig ${bindir}/getconfig.pl" | ||
| 63 | FILES_${PN} = "${bindir} ${libdir}/X11/Options ${libdir}/X11/Cards ${libdir}/X11/getconfig ${libdir}/X11/etc ${libdir}/modules ${libdir}/xorg/modules /etc/X11 ${libdir}/xorg/protocol.txt ${datadir}/X11/xorg.conf.d" | ||
| 64 | FILES_${PN}-doc += "${libdir}/X11/doc /usr/share/X11/xkb/compiled/README.compiled" | ||
| 65 | FILES_${PN}-xephyr = "${bindir}/Xephyr" | ||
| 66 | |||
| 67 | FILES_${PN}-dbg += "${libdir}/xorg/modules/.debug \ | ||
| 68 | ${libdir}/xorg/modules/*/.debug \ | ||
| 69 | ${libdir}/xorg/modules/*/*/.debug \ | ||
| 70 | " | ||
| 71 | |||
| 72 | # Split out some modules and extensions from the main package | ||
| 73 | # These aren't needed for basic operations and only take up space: | ||
| 74 | # 32.0k libdri.so | ||
| 75 | # 336.0k libglx.so | ||
| 76 | # 1360k libint10.so | ||
| 77 | # 180.0k libwfb.so | ||
| 78 | # 320.0k libxaa.so | ||
| 79 | # 124.0k libxf1bpp.so | ||
| 80 | # 84.0k libxf4bpp.so | ||
| 81 | |||
| 82 | PACKAGES =+ "${PN}-extension-dri \ | ||
| 83 | ${PN}-extension-dri2 \ | ||
| 84 | ${PN}-extension-glx \ | ||
| 85 | ${PN}-module-libint10 \ | ||
| 86 | ${PN}-module-libafb \ | ||
| 87 | ${PN}-module-libwfb \ | ||
| 88 | ${PN}-module-libmfb \ | ||
| 89 | ${PN}-module-libcfb \ | ||
| 90 | ${PN}-module-xaa \ | ||
| 91 | ${PN}-module-libxf1bpp \ | ||
| 92 | ${PN}-module-libxf4bpp" | ||
| 93 | |||
| 94 | FILES_${PN}-extension-dri = "${libdir}/xorg/modules/extensions/libdri.so" | ||
| 95 | FILES_${PN}-extension-dri2 = "${libdir}/xorg/modules/extensions/libdri2.so" | ||
| 96 | FILES_${PN}-extension-glx = "${libdir}/xorg/modules/extensions/libglx.so" | ||
| 97 | FILES_${PN}-module-libint10 = "${libdir}/xorg/modules/libint10.so" | ||
| 98 | FILES_${PN}-module-libafb = "${libdir}/xorg/modules/libafb.so" | ||
| 99 | FILES_${PN}-module-libwfb = "${libdir}/xorg/modules/libwfb.so" | ||
| 100 | FILES_${PN}-module-libmfb = "${libdir}/xorg/modules/libmfb.so" | ||
| 101 | FILES_${PN}-module-libcfb = "${libdir}/xorg/modules/libcfb.so" | ||
| 102 | FILES_${PN}-module-xaa = "${libdir}/xorg/modules/libxaa.so" | ||
| 103 | FILES_${PN}-module-libxf1bpp = "${libdir}/xorg/modules/libxf1bpp.so" | ||
| 104 | FILES_${PN}-module-libxf4bpp = "${libdir}/xorg/modules/libxf4bpp.so" | ||
| 105 | |||
| 106 | PACKAGES =+ "${PN}-multimedia-modules" | ||
| 107 | |||
| 108 | FILES_${PN}-multimedia-modules = "${libdir}/xorg/modules/multimedia/*drv*" | ||
| 109 | |||
| 110 | do_install_append () { | ||
| 111 | ln -sf ${datadir}/fonts/X11 ${D}/${libdir}/X11/fonts | ||
| 112 | } | ||
