wok view xorg-server-light/receipt @ rev 21117
Up reiserfsprogs (3.6.27) again
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Mar 19 19:43:29 2019 +0100 (2019-03-19) |
parents | 8cc54665b2b3 |
children | 5d79829fa876 |
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-server-light"
4 VERSION="1.12.4"
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="https://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 xorg-libXv 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 xorg-libXv-dev \
27 bzip2-dev udev-dev xorg-resourceproto xorg-xf86dgaproto xorg-bigreqsproto \
28 xorg-bigreqsproto xorg-xcmiscproto xorg-bigreqsproto xorg-resourceproto"
30 # Handle cross compilation. ARM use build host: perl flex
31 case "$ARCH" in
32 arm)
33 #--disable-static
34 ARCH_ARGS="--enable-malloc0returnsnull"
35 OS_NAME="SliTaz ARM"
36 VENDOR="http://arm.slitaz.org" ;;
37 i?86)
38 BUILD_DEPENDS="$BUILD_DEPENDS perl flex udev-dev"
39 OS_NAME="SliTaz GNU/Linux"
40 VENDOR="http://www.slitaz.org" ;;
41 esac
43 # Rules to configure and make the package.
44 compile_rules()
45 {
46 ./configure \
47 --prefix=/usr \
48 --sysconfdir=/etc \
49 --localstatedir=/var \
50 --with-module-dir=/usr/lib/X11/modules \
51 --with-xkb-output=/var/lib/xkb \
52 --with-serverconfig-path=/etc/X11 \
53 --with-fontrootdir=/usr/share/fonts \
54 --with-os-name="$OS_NAME" \
55 --with-vendor-web="$VENDOR" \
56 --with-builder-addr="$MAINTAINER" \
57 --enable-install-setuid \
58 --enable-xorg \
59 --enable-config-udev \
60 --disable-config-dbus \
61 --disable-screensaver \
62 --disable-glx \
63 --disable-dri \
64 --disable-dri2 \
65 --disable-xinerama \
66 --disable-libdrm \
67 --disable-xvfb \
68 --disable-xnest \
69 --disable-xfbdev \
70 --disable-xephyr \
71 --disable-xfake \
72 --disable-ipv6 \
73 --disable-docs \
74 --disable-devel-docs \
75 ${CONFIGURE_ARGS} ${ARCH_ARGS} &&
76 make && make install
77 }
79 # Be sure it as cross compile
80 testsuite()
81 {
82 readelf -h $install/usr/bin/Xorg
83 }
85 # Rules to gen a SliTaz package suitable for Tazpkg.
86 genpkg_rules()
87 {
88 mkdir -p $fs/usr/lib $fs/var $fs/etc/X11/xorg.conf.d
89 cp -a $install/usr/lib/X11 $fs/usr/lib
90 cp -a $install/usr/bin $fs/usr
91 cp -a $install/var/lib $fs/var
92 cp -a $install/etc $fs
93 # Remove static libs and split Xnest
94 rm $fs/usr/lib/X11/*/*.*a
95 rm $fs/usr/lib/X11/*/*/*.*a
96 }
98 # We need /var/tmp rw to let xkbcomp builr XKB definition.
99 post_install()
100 {
101 chmod 1777 "$1/var/tmp"
102 }