wok-next view xorg-server-light/receipt @ rev 20017

Add speexdsp, up speex, pulseaudio & pavucontrol.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Oct 22 03:28:23 2017 +0300 (2017-10-22)
parents 9e01bc6321ea
children 7639f09792cf
line source
1 # SliTaz package receipt v2.
3 PACKAGE="xorg-server-light"
4 VERSION="1.19.3"
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 WEB_SITE="https://www.x.org/wiki/"
10 HOST_ARCH="i486 arm"
12 TARBALL="xorg-server-$VERSION.tar.bz2"
13 WGET_URL="$XORG_MIRROR/xserver/$TARBALL"
15 BUILD_DEPENDS_arm="xorg-libxkbfile-dev xorg-libpciaccess-dev xorg-pixman-dev \
16 xorg-util-macros xorg-libXfont-dev libgcrypt-dev xorg-resourceproto \
17 xorg-bigreqsproto xorg-xcmiscproto xorg-renderproto xorg-damageproto \
18 xorg-compositeproto xorg-xf86dgaproto xorg-randrproto xorg-recordproto \
19 xorg-videoproto xorg-xtrans libgpg-error-dev freetype-dev \
20 libxcb-dev xorg-libXcomposite-dev xorg-libXxf86vm-dev xorg-libXv-dev \
21 bzip2-dev udev-dev"
22 BUILD_DEPENDS="xorg-util-macros xorg-pixman-dev udev-dev libgcrypt-dev \
23 xorg-fixesproto xorg-damageproto xorg-xcmiscproto xorg-xtrans \
24 xorg-bigreqsproto xorg-xproto xorg-randrproto xorg-renderproto xorg-xextproto \
25 xorg-inputproto xorg-kbproto xorg-fontsproto xorg-videoproto \
26 xorg-compositeproto xorg-recordproto xorg-resourceproto xorg-presentproto \
27 xorg-libxkbfile-dev xorg-libXfont2-dev xorg-libXau-dev xorg-libpciaccess-dev"
29 # Rules to configure and make the package.
30 compile_rules()
31 {
32 # Handle cross compilation. ARM use build host: perl flex
33 case "$ARCH" in
34 arm)
35 #--disable-static
36 ARCH_ARGS="--enable-malloc0returnsnull"
37 OS_NAME="SliTaz ARM"
38 VENDOR="http://arm.slitaz.org" ;;
39 i?86)
40 OS_NAME="SliTaz GNU/Linux"
41 VENDOR="http://www.slitaz.org" ;;
42 esac
44 ./configure \
45 --sysconfdir=/etc \
46 --localstatedir=/var \
47 --disable-docs \
48 --disable-devel-docs \
49 --disable-screensaver \
50 --disable-glx \
51 --disable-dri \
52 --disable-dri2 \
53 --disable-dri3 \
54 --disable-xinerama \
55 --disable-config-udev \
56 --disable-libdrm \
57 --disable-systemd-logind \
58 --enable-xorg \
59 --disable-xvfb \
60 --disable-xnest \
61 --disable-glamor \
62 --disable-xephyr \
63 --disable-xfake \
64 --disable-xfbdev \
65 --enable-install-setuid \
66 --disable-ipv6 \
67 --with-vendor-web="$VENDOR" \
68 --with-builder-addr="$MAINTAINER" \
69 --with-os-name="$OS_NAME" \
70 --with-fontrootdir=/usr/share/fonts/X11 \
71 --with-xkb-output=/var/lib/xkb \
72 --with-serverconfig-path=/etc/X11 \
73 $CONFIGURE_ARGS $ARCH_ARGS &&
74 make && make install
75 }
77 # Be sure it as cross compile
78 testsuite() {
79 readelf -h $install/usr/bin/Xorg
80 }
82 # Rules to gen a SliTaz package suitable for Tazpkg.
83 genpkg_rules()
84 {
85 copy @std
86 # DEPENDS="xorg-xkeyboard-config xorg-libpciaccess xorg-libXxf86vm \
87 # xorg-libXfont xorg-libXau xorg-base-fonts libgcrypt xorg-pixman \
88 # xorg-xf86-input-evdev libgpg-error libgcrypt freetype libxcb \
89 # xorg-libXcomposite xorg-libXv bzip2 udev"
90 DEPENDS="bzlib freetype glib libgcrypt libgpg-error libharfbuzz libpng16 \
91 pcre xorg-libXau xorg-libXdmcp xorg-libXfont2 xorg-libfontenc \
92 xorg-libpciaccess xorg-pixman zlib"
93 SUGGESTED="xorg-xf86-video-vesa xorg-xf86-video-fbdev"
94 PROVIDE="xorg-server"
95 }
97 # We need /var/tmp rw to let xkbcomp build XKB definition.
98 post_install() {
99 chmod 1777 "$1/var/tmp"
100 }