wok-current view xorg-server-light/receipt @ rev 24107
updated adminer (4.7.5 -> 4.8.1)
author | Hans-G?nter Theisgen |
---|---|
date | Sat Sep 25 17:50:51 2021 +0100 (2021-09-25) |
parents | 814c58f64f83 |
children |
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 current_version()
31 {
32 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
33 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
34 }
36 # Handle cross compilation. ARM use build host: perl flex
37 case "$ARCH" in
38 arm)
39 #--disable-static
40 ARCH_ARGS="--enable-malloc0returnsnull"
41 OS_NAME="SliTaz ARM"
42 VENDOR="http://arm.slitaz.org" ;;
43 i?86)
44 BUILD_DEPENDS="$BUILD_DEPENDS perl flex udev-dev"
45 OS_NAME="SliTaz GNU/Linux"
46 VENDOR="http://www.slitaz.org" ;;
47 esac
49 # Rules to configure and make the package.
50 compile_rules()
51 {
52 ./configure \
53 --prefix=/usr \
54 --sysconfdir=/etc \
55 --localstatedir=/var \
56 --with-module-dir=/usr/lib/X11/modules \
57 --with-xkb-output=/var/lib/xkb \
58 --with-serverconfig-path=/etc/X11 \
59 --with-fontrootdir=/usr/share/fonts \
60 --with-os-name="$OS_NAME" \
61 --with-vendor-web="$VENDOR" \
62 --with-builder-addr="$MAINTAINER" \
63 --enable-install-setuid \
64 --enable-xorg \
65 --enable-config-udev \
66 --disable-config-dbus \
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-xfbdev \
76 --disable-xephyr \
77 --disable-xfake \
78 --disable-ipv6 \
79 --disable-docs \
80 --disable-devel-docs \
81 ${CONFIGURE_ARGS} ${ARCH_ARGS} &&
82 make && make install
83 }
85 # Be sure it as cross compile
86 testsuite()
87 {
88 readelf -h $install/usr/bin/Xorg
89 }
91 # Rules to gen a SliTaz package suitable for Tazpkg.
92 genpkg_rules()
93 {
94 mkdir -p $fs/usr/lib $fs/var $fs/etc/X11/xorg.conf.d
95 cp -a $install/usr/lib/X11 $fs/usr/lib
96 cp -a $install/usr/bin $fs/usr
97 cp -a $install/var/lib $fs/var
98 cp -a $install/etc $fs
99 # Remove static libs and split Xnest
100 rm $fs/usr/lib/X11/*/*.*a
101 rm $fs/usr/lib/X11/*/*/*.*a
102 }
104 # We need /var/tmp rw to let xkbcomp builr XKB definition.
105 post_install()
106 {
107 chmod 1777 "$1/var/tmp"
108 }