wok-6.x view xorg-server-light/receipt @ rev 16067

ARM: xorg-server-light cross compile and add more needed packages
author Christophe Lincoln <pankso@slitaz.org>
date Wed Mar 12 20:54:03 2014 +0100 (2014-03-12)
parents a29085892eee
children 00606601418e
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"
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"
28 # Handle arch installation
29 case "$SLITAZ_ARCH" in
30 i?86) DEPENDS="$DEPENDS udev" ;;
31 esac
33 # Handle cross compilation. ARM use build host: perl flex
34 case "$ARCH" in
35 arm)
36 #--disable-static
37 ARCH_ARGS="--disable-config-udev --enable-malloc0returnsnull"
38 OS_NAME="SliTaz ARM"
39 VENDOR="http://arm.slitaz.org" ;;
40 i?86)
41 BUILD_DEPENDS="$BUILD_DEPENDS perl flex udev-dev"
42 ARCH_ARGS="--enable-config-udev"
43 OS_NAME="SliTaz GNU/Linux"
44 VENDOR="http://www.slitaz.org" ;;
45 esac
47 # Rules to configure and make the package.
48 compile_rules()
49 {
50 ./configure \
51 --prefix=/usr \
52 --sysconfdir=/etc \
53 --localstatedir=/var \
54 --with-module-dir=/usr/lib/X11/modules \
55 --with-xkb-output=/var/lib/xkb \
56 --with-serverconfig-path=/etc/X11 \
57 --with-fontrootdir=/usr/share/fonts \
58 --with-os-name="$OS_NAME" \
59 --with-vendor-web="$VENDOR" \
60 --with-builder-addr="$MAINTAINER" \
61 --enable-install-setuid \
62 --enable-xorg \
63 --disable-config-dbus \
64 --disable-screensaver \
65 --disable-glx \
66 --disable-dri \
67 --disable-dri2 \
68 --disable-xinerama \
69 --disable-libdrm \
70 --disable-xvfb \
71 --disable-xnest \
72 --disable-xfbdev \
73 --disable-xephyr \
74 --disable-xfake \
75 --disable-xv \
76 --disable-ipv6 \
77 --disable-docs \
78 --disable-devel-docs \
79 ${CONFIGURE_ARGS} ${ARCH_ARGS} &&
80 make && make install
81 }
83 # Be sure it as cross compile
84 testsuite()
85 {
86 readelf -h $install/usr/bin/Xorg
87 }
89 # Rules to gen a SliTaz package suitable for Tazpkg.
90 genpkg_rules()
91 {
92 mkdir -p $fs/usr/lib $fs/var $fs/etc/X11/xorg.conf.d
93 cp -a $install/usr/lib/X11 $fs/usr/lib
94 cp -a $install/usr/bin $fs/usr
95 cp -a $install/var/lib $fs/var
96 cp -a $install/etc $fs
97 # Remove static libs and split Xnest
98 rm $fs/usr/lib/X11/*/*.*a
99 rm $fs/usr/lib/X11/*/*/*.*a
100 }
102 # We need /var/tmp rw to let xkbcomp builr XKB definition.
103 post_install()
104 {
105 chmod 1777 $1/var/tmp
106 }