wok-current view xorg-server-light/receipt @ rev 16068

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