wok-next view xorg-server/receipt @ rev 2056
Up vte-terminal (0.19.4)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue Jan 20 17:36:38 2009 +0000 (2009-01-20) |
parents | 6a6ba65f2ad7 |
children | e9f7584e5ff5 |
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-server"
4 VERSION="1.2.0"
5 CATEGORY="x-window"
6 SHORT_DESC="Xorg core server."
7 MAINTAINER="pankso@slitaz.org"
8 DEPENDS="xorg xorg-libxkbfile xorg-xf86-input-mouse xorg-xf86-input-keyboard
9 xorg-xf86-video-vesa xorg-xkeyboard-config xorg-xkbcomp"
10 BUILD_DEPENDS="xorg-dev-proto xorg-libXfont-dev xorg-xtrans xorg-libxkbfile-dev
11 xorg-libfontenc-dev"
12 TARBALL="$PACKAGE-$VERSION.tar.bz2"
13 WEB_SITE="http://www.x.org/"
14 WGET_URL="http://xorg.freedesktop.org/releases/individual/xserver/$TARBALL"
15 KDRIVE="
16 Xchips
17 Xvesa
18 Xephyr
19 Xi810
20 Xnvidia
21 Xepson
22 Xsmi
23 Xr128
24 Xvia
25 Xpm2
26 Xati
27 Xfake
28 Xneomagic
29 Xmach64
30 Xfbdev
31 Xmga
32 Xvfb
33 Xnest"
35 # Rules to configure and make the package.
36 compile_rules()
37 {
38 cd $src
39 ./configure \
40 --prefix=/usr \
41 --sysconfdir=/etc \
42 --mandir=/usr/share/man \
43 --localstatedir=/var \
44 --with-module-dir=/usr/lib/X11/modules \
45 --with-xkb-output=/var/lib/xkb \
46 --with-serverconfig-path=/etc/X11 \
47 --with-fontdir=/usr/share/fonts/X11 \
48 --enable-install-setuid \
49 --enable-kdrive \
50 --enable-kdrive-vesa \
51 --with-os-name="SliTaz GNU/Linux" \
52 --with-builder-addr=$MAINTAINER \
53 --disable-dri \
54 --disable-xorgcfg \
55 $CONFIGURE_ARGS &&
56 make &&
57 make DESTDIR=$PWD/_pkg install
58 }
60 # Rules to gen a SliTaz package suitable for Tazpkg.
61 genpkg_rules()
62 {
63 mkdir -p $fs/usr/lib $fs/var $fs/etc/X11
65 cp -a $_pkg/usr/lib/X11 $fs/usr/lib
66 cp -a $_pkg/usr/lib/xserver $fs/usr/lib
67 cp -a $_pkg/usr/bin $fs/usr
68 cp -a $_pkg/var/lib $fs/var
70 # Remove static libs and all krive
71 rm $fs/usr/lib/X11/*/*.*a
72 rm $fs/usr/lib/X11/*/*/*.*a
73 for i in $KDRIVE
74 do
75 rm $fs/usr/bin/$i
76 done
77 }
79 # We need /var/tmp rw to let xkbcomp builr XKB definition.
80 post_install()
81 {
82 local root
83 root=$1
84 chmod 1777 $root/var/tmp
85 # Reinstall libX11 if needed...
86 if [ ! -f $1/usr/share/X11/XKeysymDB ]; then
87 echo "Missing file: /usr/share/X11/XKeysymDB"
88 tazpkg get-install xorg-libX11 --forced --root=$1/
89 fi
90 }
92 # Kdrive Xvesa don't like /var/lib/xkb
93 post_remove()
94 {
95 rm -rf /var/lib/xkb
96 }