wok view xorg-server-light/receipt @ rev 19674

Add get-opera-blink
author Aleksej Bobylev <al.bobylev@gmail.com>
date Wed Feb 08 05:35:49 2017 +0200 (2017-02-08)
parents 5455fda86893
children 8cc54665b2b3
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="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 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"
29 # Handle cross compilation. ARM use build host: perl flex
30 case "$ARCH" in
31 arm)
32 #--disable-static
33 ARCH_ARGS="--enable-malloc0returnsnull"
34 OS_NAME="SliTaz ARM"
35 VENDOR="http://arm.slitaz.org" ;;
36 i?86)
37 BUILD_DEPENDS="$BUILD_DEPENDS perl flex udev-dev"
38 OS_NAME="SliTaz GNU/Linux"
39 VENDOR="http://www.slitaz.org" ;;
40 esac
42 # Rules to configure and make the package.
43 compile_rules()
44 {
45 ./configure \
46 --prefix=/usr \
47 --sysconfdir=/etc \
48 --localstatedir=/var \
49 --with-module-dir=/usr/lib/X11/modules \
50 --with-xkb-output=/var/lib/xkb \
51 --with-serverconfig-path=/etc/X11 \
52 --with-fontrootdir=/usr/share/fonts \
53 --with-os-name="$OS_NAME" \
54 --with-vendor-web="$VENDOR" \
55 --with-builder-addr="$MAINTAINER" \
56 --enable-install-setuid \
57 --enable-xorg \
58 --enable-config-udev \
59 --disable-config-dbus \
60 --disable-screensaver \
61 --disable-glx \
62 --disable-dri \
63 --disable-dri2 \
64 --disable-xinerama \
65 --disable-libdrm \
66 --disable-xvfb \
67 --disable-xnest \
68 --disable-xfbdev \
69 --disable-xephyr \
70 --disable-xfake \
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 }