wok-6.x annotate xorg-server/receipt @ rev 1309

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