wok-4.x view xorg-server/receipt @ rev 2912

gst-ffmpeg problem with new ffmpeg; so compiled with built-in ffmpeg for now; size up
author Rohit Joshi <jozee@slitaz.org>
date Wed May 06 13:20:04 2009 +0000 (2009-05-06)
parents e9f7584e5ff5
children 5219b9de8e9f
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 freetype libSDL
10 libiconv zlib"
11 BUILD_DEPENDS="xorg-dev-proto xorg-libXfont-dev xorg-xtrans xorg-libxkbfile-dev
12 xorg-libfontenc-dev xorg-libxkbfile"
13 TARBALL="$PACKAGE-$VERSION.tar.bz2"
14 WEB_SITE="http://www.x.org/"
15 WGET_URL="http://xorg.freedesktop.org/releases/individual/xserver/$TARBALL"
16 KDRIVE="
17 Xchips
18 Xvesa
19 Xephyr
20 Xi810
21 Xnvidia
22 Xepson
23 Xsmi
24 Xr128
25 Xvia
26 Xpm2
27 Xati
28 Xfake
29 Xneomagic
30 Xmach64
31 Xfbdev
32 Xmga
33 Xvfb
34 Xnest"
36 # Rules to configure and make the package.
37 compile_rules()
38 {
39 cd $src
40 ./configure \
41 --prefix=/usr \
42 --sysconfdir=/etc \
43 --mandir=/usr/share/man \
44 --localstatedir=/var \
45 --with-module-dir=/usr/lib/X11/modules \
46 --with-xkb-output=/var/lib/xkb \
47 --with-serverconfig-path=/etc/X11 \
48 --with-fontdir=/usr/share/fonts/X11 \
49 --enable-install-setuid \
50 --enable-kdrive \
51 --enable-kdrive-vesa \
52 --with-os-name="SliTaz GNU/Linux" \
53 --with-builder-addr=$MAINTAINER \
54 --disable-dri \
55 --disable-xorgcfg \
56 $CONFIGURE_ARGS &&
57 make &&
58 make DESTDIR=$PWD/_pkg install
59 }
61 # Rules to gen a SliTaz package suitable for Tazpkg.
62 genpkg_rules()
63 {
64 mkdir -p $fs/usr/lib $fs/var $fs/etc/X11
66 cp -a $_pkg/usr/lib/X11 $fs/usr/lib
67 cp -a $_pkg/usr/lib/xserver $fs/usr/lib
68 cp -a $_pkg/usr/bin $fs/usr
69 cp -a $_pkg/var/lib $fs/var
71 # Remove static libs and all krive
72 rm $fs/usr/lib/X11/*/*.*a
73 rm $fs/usr/lib/X11/*/*/*.*a
74 for i in $KDRIVE
75 do
76 rm $fs/usr/bin/$i
77 done
78 }
80 # We need /var/tmp rw to let xkbcomp builr XKB definition.
81 post_install()
82 {
83 local root
84 root=$1
85 chmod 1777 $root/var/tmp
86 # Reinstall libX11 if needed...
87 if [ ! -f $1/usr/share/X11/XKeysymDB ]; then
88 echo "Missing file: /usr/share/X11/XKeysymDB"
89 tazpkg get-install xorg-libX11 --forced --root=$1/
90 fi
91 }
93 # Kdrive Xvesa don't like /var/lib/xkb
94 post_remove()
95 {
96 rm -rf /var/lib/xkb
97 }