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