wok annotate xorg-server-Xfbdev/receipt @ rev 16064
ARM: add a bunch of packages including Xterm
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Mar 12 03:53:08 2014 +0100 (2014-03-12) |
parents | a29085892eee |
children | 9be2dfe2fe72 |
rev | line source |
---|---|
pankso@10809 | 1 # SliTaz package receipt. |
pankso@10809 | 2 |
pankso@10809 | 3 PACKAGE="xorg-server-Xfbdev" |
pankso@15751 | 4 VERSION="1.12.4" |
pankso@10809 | 5 CATEGORY="x-window" |
pankso@10809 | 6 SHORT_DESC="Xfbdev framebuffer Xorg server." |
pankso@10809 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15023 | 8 LICENSE="MIT" |
pankso@10809 | 9 WANTED="xorg-server" |
pankso@10809 | 10 SOURCE="xorg-server" |
pankso@10809 | 11 WEB_SITE="http://www.x.org/" |
pankso@16062 | 12 HOST_ARCH="i486 arm" |
pankso@10809 | 13 |
pankso@16064 | 14 DEPENDS="xorg-libXfont xorg-libXau xorg-libXdmcp zlib pixman libgcrypt \ |
pankso@16064 | 15 xorg-libxkbfile xorg-xkeyboard-config" |
pascal@15023 | 16 |
pankso@16062 | 17 # |
pankso@16062 | 18 # This is the default Xserver for ARM platform until full Xorg or Xorg light |
pankso@16062 | 19 # dont cross compile nicely. Note: on the RPi the Xorg driver is fbdev so |
pankso@16062 | 20 # using Kdrive Xfbdev is a light and fast solution. |
pankso@16062 | 21 # |
pankso@16062 | 22 case "$ARCH" in |
pankso@16062 | 23 arm) |
pankso@16062 | 24 unset WANTED |
pankso@16062 | 25 SOURCE="xorg-server" |
pankso@16062 | 26 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pankso@16062 | 27 WGET_URL="http://xorg.freedesktop.org/releases/individual/xserver/$TARBALL" |
pankso@16062 | 28 PROVIDE="xorg-server" |
pankso@16062 | 29 BUILD_DEPENDS="xorg-libxkbfile-dev xorg-libpciaccess-dev pixman-dev \ |
pankso@16062 | 30 xorg-util-macros xorg-libXfont-dev libgcrypt-dev xorg-resourceproto \ |
pankso@16062 | 31 xorg-bigreqsproto xorg-xcmiscproto xorg-renderproto xorg-damageproto \ |
pankso@16062 | 32 xorg-compositeproto xorg-xf86dgaproto xorg-randrproto xorg-recordproto \ |
pankso@16062 | 33 xorg-videoproto xorg-xtrans libgpg-error-dev libgcrypt-dev freetype-dev \ |
pankso@16062 | 34 libxcb-dev bzip2-dev" |
pankso@16062 | 35 export ARM_LIBS="/cross/$arch/sysroot/usr/lib" |
pankso@16062 | 36 export LIBTOOL=${HOST_SYSTEM}-libtool |
pankso@16062 | 37 export XSERVERCFLAGS_LIBS="-L${ARM_LIBS} -lrt -lpthread -lgcrypt \ |
pankso@16062 | 38 -lm -lz -lcrypto -lxkbfile -lXfont -lfreetype -lXau -lfontenc -lXdmcp" |
pankso@16062 | 39 export XSERVERLIBS_LIBS="-L${ARM_LIBS} -lrt -lpthread -lgcrypt \ |
pankso@16062 | 40 -lm -lz -lcrypto -lxkbfile -lXfont -lfreetype -lXau -lfontenc -lXdmcp" ;; |
pankso@16062 | 41 esac |
pankso@16062 | 42 |
pankso@16062 | 43 # Rules to configure and make the package. |
pankso@16062 | 44 compile_rules() |
pankso@16062 | 45 { |
pankso@16062 | 46 case "$ARCH" in |
pankso@16062 | 47 arm*) |
pankso@16062 | 48 ./configure \ |
pankso@16062 | 49 --prefix=/usr \ |
pankso@16062 | 50 --sysconfdir=/etc \ |
pankso@16062 | 51 --localstatedir=/var \ |
pankso@16062 | 52 --with-module-dir=/usr/lib/X11/modules \ |
pankso@16062 | 53 --with-xkb-output=/var/lib/xkb \ |
pankso@16062 | 54 --with-serverconfig-path=/etc/X11 \ |
pankso@16062 | 55 --with-fontrootdir=/usr/share/fonts \ |
pankso@16062 | 56 --with-os-name="SliTaz ARM" \ |
pankso@16062 | 57 --with-vendor-web="http://arm.slitaz.org/" \ |
pankso@16062 | 58 --with-builder-addr="$MAINTAINER" \ |
pankso@16062 | 59 --enable-install-setuid \ |
pankso@16062 | 60 --enable-kdrive \ |
pankso@16062 | 61 --enable-kdrive-kbd \ |
pankso@16062 | 62 --enable-kdrive-mouse \ |
pankso@16062 | 63 --enable-kdrive-evdev \ |
pankso@16062 | 64 --enable-xfbdev \ |
pankso@16062 | 65 --disable-config-dbus \ |
pankso@16062 | 66 --disable-config-udev \ |
pankso@16062 | 67 --disable-screensaver \ |
pankso@16062 | 68 --disable-glx \ |
pankso@16062 | 69 --disable-dri \ |
pankso@16062 | 70 --disable-dri2 \ |
pankso@16062 | 71 --disable-xinerama \ |
pankso@16062 | 72 --disable-libdrm \ |
pankso@16062 | 73 --disable-xvfb \ |
pankso@16062 | 74 --disable-xnest \ |
pankso@16062 | 75 --disable-xephyr \ |
pankso@16062 | 76 --disable-xfake \ |
pankso@16062 | 77 --disable-xv \ |
pankso@16062 | 78 --disable-xorg \ |
pankso@16062 | 79 ${CONFIGURE_ARGS} && |
pankso@16062 | 80 make && make install ;; |
pankso@16062 | 81 *) |
pankso@16062 | 82 echo "Nothing to do for: $ARCH" ;; |
pankso@16062 | 83 esac |
pankso@16062 | 84 } |
pankso@16062 | 85 |
pankso@10809 | 86 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@10809 | 87 genpkg_rules() |
pankso@10809 | 88 { |
pankso@10809 | 89 mkdir -p $fs/usr/bin |
pankso@12522 | 90 cp -a $install/usr/bin/Xfbdev $fs/usr/bin |
pankso@10809 | 91 chmod 4711 $fs/usr/bin/Xfbdev |
pankso@16062 | 92 case "$ARCH" in |
pankso@16062 | 93 arm) |
pankso@16062 | 94 cp -a $install/etc $fs |
pankso@16062 | 95 cp -a $install/var $fs ;; |
pankso@16062 | 96 esac |
pankso@10809 | 97 } |
pankso@10809 | 98 |
pankso@10809 | 99 # We need /var/tmp rw to let xkbcomp builr XKB definition. |
pankso@10809 | 100 post_install() |
pankso@10809 | 101 { |
pankso@10809 | 102 chmod 1777 $1/var/tmp |
pankso@10809 | 103 } |