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