wok-next view xorg-server/receipt @ rev 21066
Switch some python packages to traditional build
author | Aleksej Bobylev <al.bobylev@gmail.com> |
---|---|
date | Thu Dec 06 13:30:23 2018 +0200 (2018-12-06) |
parents | 02b674913611 |
children | d01953cd12ed |
line source
1 # SliTaz package receipt v2.
3 PACKAGE="xorg-server"
4 VERSION="1.20.1"
5 CATEGORY="x-window"
6 SHORT_DESC="X server"
7 MAINTAINER="devel@slitaz.org"
8 LICENSE="MIT"
9 WEB_SITE="https://www.x.org/wiki/"
10 LFS="http://www.linuxfromscratch.org/blfs/view/svn/x/xorg-server.html"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WGET_URL="$XORG_MIRROR/xserver/$TARBALL"
15 BUILD_DEPENDS="patch xorg-util-macros xorg-pixman-dev eudev-dev dbus-dev \
16 xorg-libxshmfence-dev libdrm-dev xorg-libX11-dev mesa-dev xorg-libXdmcp-dev \
17 libgcrypt-dev xorg-xorgproto xorg-libxkbfile-dev xorg-libXfont2-dev \
18 xorg-libpciaccess-dev xorg-libXxf86dga-dev xorg-libdmx-dev xorg-libXaw-dev \
19 xorg-libXpm-dev xorg-libXtst-dev xorg-libXres-dev xorg-libXmu-dev \
20 xorg-libXext-dev xorg-libXrender-dev xorg-libXfixes-dev xorg-libXi-dev \
21 xorg-libXau-dev xorg-libXdmcp-dev libepoxy-dev tslib-dev \
22 xorg-xcb-util-renderutil-dev xorg-xcb-util-dev xorg-xcb-util-image-dev \
23 xorg-xcb-util-wm-dev xorg-xcb-util-keysyms-dev expat-dev xorg-xtrans \
24 xorg-xkbcomp-dev openssl-dev"
25 SPLIT="$PACKAGE-Xdmx $PACKAGE-Xephyr $PACKAGE-Xnest $PACKAGE-Xvfb \
26 $PACKAGE-module-glamor $PACKAGE-dev $PACKAGE $PACKAGE-light:light"
27 COOKOPTS="skip-log-errors"
29 compile_rules() {
30 case $SET in
31 '')
32 SET_ARGS="
33 --disable-static \
34 --enable-glamor \
35 --enable-suid-wrapper \
36 --disable-xwayland \
37 --enable-dmx \
38 --enable-kdrive \
39 --enable-xephyr \
40 --enable-config-udev \
41 "
42 ;;
43 light)
44 SET_ARGS="
45 --disable-screensaver \
46 --disable-glx \
47 --disable-dri \
48 --disable-dri2 \
49 --disable-dri3 \
50 --disable-xinerama \
51 --disable-config-udev \
52 --disable-libdrm \
53 --enable-xorg \
54 --disable-xvfb \
55 --disable-xnest \
56 --disable-glamor \
57 --disable-xephyr \
58 --disable-ipv6 \
59 --with-serverconfig-path=/etc/X11 \
60 "
61 ;;
62 esac
64 ./configure \
65 --enable-install-setuid \
66 --disable-systemd-logind \
67 --disable-docs \
68 --disable-devel-docs \
69 --with-xkb-output=/var/lib/xkb \
70 --with-fontrootdir=/usr/share/fonts/X11 \
71 --with-os-name="SliTaz GNU/Linux" \
72 --with-vendor-web="http://www.slitaz.org/" \
73 --with-builder-addr="devel@slitaz.org" \
74 $SET_ARGS \
75 $CONFIGURE_ARGS &&
76 fix libtool &&
77 make &&
78 make DESTDIR=$install install &&
80 mkdir -pv $install/etc/X11/xorg.conf.d
81 }
83 testsuite() {
84 readelf -h $install/usr/bin/Xorg
85 }
87 genpkg_rules() {
88 case $PACKAGE in
89 *-Xdmx)
90 copy Xdmx
91 # chmod 4711 $fs/usr/bin/Xdmx
92 CAT="x-window|DMX X server"
93 DEPENDS="libgcrypt xorg-libX11 xorg-libXau xorg-libXdmcp \
94 xorg-libXext xorg-libXfixes xorg-libXfont2 xorg-libXi xorg-libXmu \
95 xorg-libXrender xorg-pixman"
96 ;;
97 *-Xephyr)
98 copy Xephyr
99 # chmod 4711 $fs/usr/bin/Xephyr
100 CAT="x-window|Xephyr X server"
101 DEPENDS="eudev libepoxy libgcrypt mesa xorg-libX11 xorg-libXau \
102 xorg-libXdmcp xorg-libXfont2 xorg-libxcb xorg-libxshmfence \
103 xorg-pixman xorg-xcb-util xorg-xcb-util-image \
104 xorg-xcb-util-keysyms xorg-xcb-util-renderutil xorg-xcb-util-wm"
105 ;;
106 *-Xnest)
107 copy Xnest
108 # chmod 4711 $fs/usr/bin/Xnest
109 CAT="x-window|Xnest X server"
110 DEPENDS="libgcrypt xorg-libX11 xorg-libXau xorg-libXdmcp \
111 xorg-libXext xorg-libXfont2 xorg-pixman"
112 ;;
113 *-Xvfb)
114 copy Xvfb
115 # chmod 4711 $fs/usr/bin/Xvfb
116 CAT="x-window|Xvfb X server"
117 DEPENDS="libgcrypt mesa xorg-libXau xorg-libXdmcp xorg-libXfont2 \
118 xorg-pixman"
119 ;;
120 *-module-glamor)
121 copy libglamoregl.so libglx.so
122 CAT="x-window|Glamor DIX (Device Independent X) module"
123 DEPENDS="libepoxy mesa mesa-libgbm"
124 ;;
125 *-dev)
126 copy @dev protocol.txt
127 DEPENDS="xorg-server xorg-server-Xdmx xorg-server-Xephyr \
128 xorg-server-Xfbdev xorg-server-Xnest xorg-server-Xvfb \
129 xorg-server-module-glamor \
130 mesa-dev xorg-xorgproto xorg-libpciaccess-dev xorg-pixman-dev"
131 ;;
132 *-server)
133 copy @std var/log/ xorg.conf.d/ @rm
134 CAT="x-window|core X server"
135 DEPENDS="eudev libdrm libgcrypt xorg-libX11 xorg-libXau \
136 xorg-libXaw xorg-libXdmcp xorg-libXfont2 xorg-libXt xorg-libdmx \
137 xorg-libpciaccess xorg-libxshmfence xorg-pixman \
138 xorg-xkeyboard-config xorg-xkbcomp"
139 SUGGESTED="xorg-xf86-input-evdev xorg-xf86-video-vesa"
140 ;;
141 xorg-server-light)
142 copy @std
143 CAT="x-window|light version without dri, gl, and friends"
144 DEPENDS="libgcrypt xorg-libXau xorg-libXdmcp xorg-libXfont2 \
145 xorg-libpciaccess xorg-libxshmfence xorg-pixman"
146 SUGGESTED="xorg-xf86-video-vesa xorg-xf86-video-fbdev"
147 PROVIDE="xorg-server"
148 ;;
149 esac
150 }
152 post_install_xorg_server() {
153 install -dm1777 -oroot -groot "$1/tmp/.ICE-unix" "$1/tmp/.X11-unix"
154 }
155 post_install_xorg_server_Xdmx() {
156 install -dm1777 -oroot -groot "$1/tmp/.ICE-unix" "$1/tmp/.X11-unix"
157 }
158 post_install_xorg_server_Xephyr() {
159 install -dm1777 -oroot -groot "$1/tmp/.ICE-unix" "$1/tmp/.X11-unix"
160 }
161 post_install_xorg_server_Xfbdev() {
162 install -dm1777 -oroot -groot "$1/tmp/.ICE-unix" "$1/tmp/.X11-unix"
163 }
164 post_install_xorg_server_Xnest() {
165 install -dm1777 -oroot -groot "$1/tmp/.ICE-unix" "$1/tmp/.X11-unix"
166 }
167 post_install_xorg_server_Xvfb() {
168 install -dm1777 -oroot -groot "$1/tmp/.ICE-unix" "$1/tmp/.X11-unix"
169 }
170 # We need /var/tmp rw to let xkbcomp build XKB definition.
171 post_install_xorg_server_light() {
172 chmod 1777 "$1/var/tmp"
173 }