wok-current annotate xorg-server-light/receipt @ rev 16076

ARM: use libXv with xorg-server-light and up xf86-video-fbdev
author Christophe Lincoln <pankso@slitaz.org>
date Sat Mar 15 03:05:15 2014 +0100 (2014-03-15)
parents 00606601418e
children 5455fda86893
rev   line source
pankso@10645 1 # SliTaz package receipt.
pankso@10645 2
pankso@10645 3 PACKAGE="xorg-server-light"
pankso@16067 4 VERSION="1.12.1"
pankso@10645 5 CATEGORY="x-window"
pankso@10645 6 SHORT_DESC="Xorg core server light version (no dri, gl, and friends)."
pankso@10645 7 MAINTAINER="pankso@slitaz.org"
pascal@15023 8 LICENSE="MIT"
pankso@10645 9 SOURCE="xorg-server"
pankso@10645 10 TARBALL="$SOURCE-$VERSION.tar.bz2"
pankso@10645 11 WEB_SITE="http://www.x.org/"
pankso@10645 12 WGET_URL="http://xorg.freedesktop.org/releases/individual/xserver/$TARBALL"
pankso@10645 13 PROVIDE="xorg-server"
pankso@16067 14 HOST_ARCH="i486 arm"
pankso@10645 15
pankso@16067 16 SUGGESTED="xorg-xf86-video-vesa xorg-xf86-video-fbdev"
pankso@10645 17 DEPENDS="xorg-xkeyboard-config xorg-libpciaccess xorg-libXxf86vm \
pankso@16067 18 xorg-libXfont xorg-libXau xorg-base-fonts libgcrypt pixman \
pankso@16067 19 xorg-xf86-input-evdev libgpg-error libgcrypt freetype libxcb \
pankso@16076 20 xorg-libXcomposite xorg-libXv bzip2 udev"
pankso@16067 21 BUILD_DEPENDS="xorg-libxkbfile-dev xorg-libpciaccess-dev pixman-dev \
pankso@16039 22 xorg-util-macros xorg-libXfont-dev libgcrypt-dev xorg-resourceproto \
pankso@16039 23 xorg-bigreqsproto xorg-xcmiscproto xorg-renderproto xorg-damageproto \
pankso@16039 24 xorg-compositeproto xorg-xf86dgaproto xorg-randrproto xorg-recordproto \
pankso@16039 25 xorg-videoproto xorg-xtrans libgpg-error-dev libgcrypt-dev freetype-dev \
pankso@16076 26 libxcb-dev xorg-libXcomposite-dev xorg-libXxf86vm-dev xorg-libXv-dev \
pankso@16076 27 bzip2-dev udev-dev"
pankso@16067 28
pankso@16067 29 # Handle cross compilation. ARM use build host: perl flex
pankso@16067 30 case "$ARCH" in
pankso@16067 31 arm)
pankso@16067 32 #--disable-static
pankso@16068 33 ARCH_ARGS="--enable-malloc0returnsnull"
pankso@16067 34 OS_NAME="SliTaz ARM"
pankso@16067 35 VENDOR="http://arm.slitaz.org" ;;
pankso@16039 36 i?86)
pankso@16067 37 BUILD_DEPENDS="$BUILD_DEPENDS perl flex udev-dev"
pankso@16067 38 OS_NAME="SliTaz GNU/Linux"
pankso@16067 39 VENDOR="http://www.slitaz.org" ;;
pankso@16021 40 esac
pankso@16021 41
pankso@10645 42 # Rules to configure and make the package.
pankso@10645 43 compile_rules()
pankso@10645 44 {
pankso@10645 45 ./configure \
pankso@10645 46 --prefix=/usr \
pankso@10645 47 --sysconfdir=/etc \
pankso@10645 48 --localstatedir=/var \
pankso@10645 49 --with-module-dir=/usr/lib/X11/modules \
pankso@10645 50 --with-xkb-output=/var/lib/xkb \
pankso@10645 51 --with-serverconfig-path=/etc/X11 \
pankso@16062 52 --with-fontrootdir=/usr/share/fonts \
pankso@16067 53 --with-os-name="$OS_NAME" \
pankso@16067 54 --with-vendor-web="$VENDOR" \
pankso@16062 55 --with-builder-addr="$MAINTAINER" \
pankso@10645 56 --enable-install-setuid \
pankso@10645 57 --enable-xorg \
pankso@16068 58 --enable-config-udev \
pankso@10645 59 --disable-config-dbus \
pankso@10645 60 --disable-screensaver \
pankso@10645 61 --disable-glx \
pankso@10645 62 --disable-dri \
pankso@10645 63 --disable-dri2 \
pankso@10645 64 --disable-xinerama \
pankso@10645 65 --disable-libdrm \
pankso@10645 66 --disable-xvfb \
pankso@10645 67 --disable-xnest \
gokhlayeh@11573 68 --disable-xfbdev \
pankso@16062 69 --disable-xephyr \
pankso@16062 70 --disable-xfake \
pankso@16067 71 --disable-ipv6 \
pankso@16067 72 --disable-docs \
pankso@16067 73 --disable-devel-docs \
pankso@16039 74 ${CONFIGURE_ARGS} ${ARCH_ARGS} &&
pankso@10645 75 make && make install
pankso@10645 76 }
pankso@10645 77
pankso@16067 78 # Be sure it as cross compile
pankso@16067 79 testsuite()
pankso@16067 80 {
pankso@16067 81 readelf -h $install/usr/bin/Xorg
pankso@16067 82 }
pankso@16067 83
pankso@10645 84 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@10645 85 genpkg_rules()
pankso@10645 86 {
pankso@10645 87 mkdir -p $fs/usr/lib $fs/var $fs/etc/X11/xorg.conf.d
pankso@12524 88 cp -a $install/usr/lib/X11 $fs/usr/lib
pankso@12524 89 cp -a $install/usr/bin $fs/usr
pankso@12524 90 cp -a $install/var/lib $fs/var
pankso@12524 91 cp -a $install/etc $fs
pankso@10645 92 # Remove static libs and split Xnest
pankso@10645 93 rm $fs/usr/lib/X11/*/*.*a
pankso@10645 94 rm $fs/usr/lib/X11/*/*/*.*a
pankso@10645 95 }
pankso@10645 96
pankso@10645 97 # We need /var/tmp rw to let xkbcomp builr XKB definition.
pankso@10645 98 post_install()
pankso@10645 99 {
pankso@10645 100 chmod 1777 $1/var/tmp
pankso@10645 101 }