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