wok-next annotate xorg-server-light/receipt @ rev 15603
Use install instead of _pkg
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Dec 06 10:39:07 2013 +0000 (2013-12-06) |
parents | 3a88d3e7ea0c |
children | acc5cd1a7d8e |
rev | line source |
---|---|
pankso@10645 | 1 # SliTaz package receipt. |
pankso@10645 | 2 |
pankso@10645 | 3 PACKAGE="xorg-server-light" |
pankso@12524 | 4 VERSION="1.12.1" |
pankso@10645 | 5 CATEGORY="x-window" |
pankso@10645 | 6 SHORT_DESC="Xorg core server light version (no dri, gl, and friends)." |
pankso@10645 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@15023 | 8 LICENSE="MIT" |
pankso@10645 | 9 SUGGESTED="xorg-xf86-video-vesa" |
pankso@10645 | 10 SOURCE="xorg-server" |
pankso@10645 | 11 TARBALL="$SOURCE-$VERSION.tar.bz2" |
pankso@10645 | 12 WEB_SITE="http://www.x.org/" |
pankso@10645 | 13 WGET_URL="http://xorg.freedesktop.org/releases/individual/xserver/$TARBALL" |
pankso@10645 | 14 PROVIDE="xorg-server" |
pankso@10645 | 15 |
pankso@10645 | 16 DEPENDS="xorg-xkeyboard-config xorg-libpciaccess xorg-libXxf86vm \ |
pankso@10645 | 17 xorg-libXfont xorg-libXau xorg-base-fonts libgcrypt pixman udev \ |
pankso@10645 | 18 xorg-xf86-input-evdev" |
pankso@10645 | 19 BUILD_DEPENDS="xorg-libxkbfile-dev xorg-libpciaccess-dev xorg-libXxf86vm-dev \ |
pankso@10645 | 20 xorg-libXfont-dev libgcrypt-dev pixman-dev udev-dev perl flex xorg-dev-proto" |
pankso@10645 | 21 |
pankso@10645 | 22 # Rules to configure and make the package. |
pankso@10645 | 23 compile_rules() |
pankso@10645 | 24 { |
pankso@10808 | 25 #CFLAGS="-march=$ARCH -O2 -pipe -fomit-frame-pointer" |
pankso@10808 | 26 #CXXFLAGS="$CFLAGS" |
pankso@10808 | 27 # Sizes: 792.0K with -Os and 968.0K |
pankso@10645 | 28 cd $src |
pankso@10645 | 29 ./configure \ |
pankso@10645 | 30 --prefix=/usr \ |
pankso@10645 | 31 --sysconfdir=/etc \ |
pankso@10645 | 32 --localstatedir=/var \ |
pankso@10645 | 33 --with-module-dir=/usr/lib/X11/modules \ |
pankso@10645 | 34 --with-xkb-output=/var/lib/xkb \ |
pankso@10645 | 35 --with-serverconfig-path=/etc/X11 \ |
pankso@10645 | 36 --enable-install-setuid \ |
pankso@10645 | 37 --enable-xorg \ |
pankso@10645 | 38 --enable-config-udev \ |
pankso@10645 | 39 --disable-config-dbus \ |
pankso@10645 | 40 --with-fontrootdir=/usr/share/fonts \ |
pankso@10645 | 41 --with-os-name="SliTaz GNU/Linux" \ |
pankso@10645 | 42 --with-builder-addr=$MAINTAINER \ |
pankso@10645 | 43 --disable-screensaver \ |
pankso@10645 | 44 --disable-glx \ |
pankso@10645 | 45 --disable-dri \ |
pankso@10645 | 46 --disable-dri2 \ |
pankso@10645 | 47 --disable-xinerama \ |
pankso@10645 | 48 --disable-libdrm \ |
pankso@10645 | 49 --disable-xvfb \ |
pankso@10645 | 50 --disable-xnest \ |
gokhlayeh@11573 | 51 --disable-xfbdev \ |
gokhlayeh@11573 | 52 $CONFIGURE_ARGS && |
pankso@10645 | 53 make && make install |
pankso@10645 | 54 } |
pankso@10645 | 55 |
pankso@10645 | 56 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@10645 | 57 genpkg_rules() |
pankso@10645 | 58 { |
pankso@10645 | 59 mkdir -p $fs/usr/lib $fs/var $fs/etc/X11/xorg.conf.d |
pankso@12524 | 60 cp -a $install/usr/lib/X11 $fs/usr/lib |
pankso@12524 | 61 cp -a $install/usr/bin $fs/usr |
pankso@12524 | 62 cp -a $install/var/lib $fs/var |
pankso@12524 | 63 cp -a $install/etc $fs |
pankso@10645 | 64 # Remove static libs and split Xnest |
pankso@10645 | 65 rm $fs/usr/lib/X11/*/*.*a |
pankso@10645 | 66 rm $fs/usr/lib/X11/*/*/*.*a |
pankso@10645 | 67 } |
pankso@10645 | 68 |
pankso@10645 | 69 # We need /var/tmp rw to let xkbcomp builr XKB definition. |
pankso@10645 | 70 post_install() |
pankso@10645 | 71 { |
pankso@10645 | 72 chmod 1777 $1/var/tmp |
pankso@10645 | 73 } |