wok view xorg-server-Xfbdev/receipt @ rev 16062

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