wok-6.x annotate xorg-server-light/receipt @ rev 16062
ARM: Xorg light dont build yet but we have a Kdrive Xfbdev for ARM now :-)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Mar 12 01:33:20 2014 +0100 (2014-03-12) |
parents | 699180e3f8df |
children | 9be2dfe2fe72 |
rev | line source |
---|---|
pankso@10645 | 1 # SliTaz package receipt. |
pankso@10645 | 2 |
pankso@10645 | 3 PACKAGE="xorg-server-light" |
pankso@15751 | 4 VERSION="1.12.4" |
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@16062 | 15 #HOST_ARCH="i486 arm" |
pankso@10645 | 16 |
pankso@10645 | 17 DEPENDS="xorg-xkeyboard-config xorg-libpciaccess xorg-libXxf86vm \ |
pankso@10645 | 18 xorg-libXfont xorg-libXau xorg-base-fonts libgcrypt pixman udev \ |
pankso@16039 | 19 xorg-xf86-input-evdev libgpg-error libgcrypt freetype libxcb bzip2" |
pankso@10645 | 20 BUILD_DEPENDS="xorg-libxkbfile-dev xorg-libpciaccess-dev xorg-libXxf86vm-dev \ |
pankso@16039 | 21 xorg-libXfont-dev libgpg-error-dev libgcrypt-dev pixman-dev udev-dev perl \ |
pankso@16039 | 22 flex xorg-dev-proto freetype-dev libxcb-dev bzip2-dev" |
pankso@10645 | 23 |
pankso@16062 | 24 # Handle cross compilation: ARM can't find -lmd |
pankso@16021 | 25 case "$ARCH" in |
pankso@16039 | 26 arm) |
pankso@16039 | 27 BUILD_DEPENDS="xorg-libxkbfile-dev xorg-libpciaccess-dev pixman-dev \ |
pankso@16039 | 28 xorg-util-macros xorg-libXfont-dev libgcrypt-dev xorg-resourceproto \ |
pankso@16039 | 29 xorg-bigreqsproto xorg-xcmiscproto xorg-renderproto xorg-damageproto \ |
pankso@16039 | 30 xorg-compositeproto xorg-xf86dgaproto xorg-randrproto xorg-recordproto \ |
pankso@16039 | 31 xorg-videoproto xorg-xtrans libgpg-error-dev libgcrypt-dev freetype-dev \ |
pankso@16039 | 32 libxcb-dev bzip2-dev" |
pankso@16062 | 33 ARCH_ARGS="--disable-config-udev --disable-xf86vidmode" |
pankso@16062 | 34 export ARM_LIBS="/cross/$arch/sysroot/usr/lib" |
pankso@16062 | 35 export LIBTOOL=${HOST_SYSTEM}-libtool |
pankso@16062 | 36 export XSERVERCFLAGS_LIBS="-L${ARM_LIBS} -lrt -lpthread -lmd -lgcrypt \ |
pankso@16062 | 37 -lm -lz -lcrypto -lxkbfile -lXfont -lfreetype -lXau -lfontenc -lXdmcp" |
pankso@16062 | 38 export XSERVERLIBS_LIBS="-L${ARM_LIBS} -lrt -lpthread -lmd -lgcrypt \ |
pankso@16062 | 39 -lm -lz -lcrypto -lxkbfile -lXfont -lfreetype -lXau -lfontenc -lXdmcp" ;; |
pankso@16039 | 40 i?86) |
pankso@16039 | 41 ARCH_ARGS="--enable-config-udev" ;; |
pankso@16021 | 42 esac |
pankso@16021 | 43 |
pankso@10645 | 44 # Rules to configure and make the package. |
pankso@10645 | 45 compile_rules() |
pankso@10645 | 46 { |
pankso@10645 | 47 ./configure \ |
pankso@10645 | 48 --prefix=/usr \ |
pankso@10645 | 49 --sysconfdir=/etc \ |
pankso@10645 | 50 --localstatedir=/var \ |
pankso@10645 | 51 --with-module-dir=/usr/lib/X11/modules \ |
pankso@10645 | 52 --with-xkb-output=/var/lib/xkb \ |
pankso@10645 | 53 --with-serverconfig-path=/etc/X11 \ |
pankso@16062 | 54 --with-fontrootdir=/usr/share/fonts \ |
pankso@16062 | 55 --with-os-name="SliTaz GNU/Linux" \ |
pankso@16062 | 56 --with-vendor-web="http://www.slitaz.org/" \ |
pankso@16062 | 57 --with-builder-addr="$MAINTAINER" \ |
pankso@10645 | 58 --enable-install-setuid \ |
pankso@10645 | 59 --enable-xorg \ |
pankso@10645 | 60 --disable-config-dbus \ |
pankso@10645 | 61 --disable-screensaver \ |
pankso@10645 | 62 --disable-glx \ |
pankso@10645 | 63 --disable-dri \ |
pankso@10645 | 64 --disable-dri2 \ |
pankso@10645 | 65 --disable-xinerama \ |
pankso@10645 | 66 --disable-libdrm \ |
pankso@10645 | 67 --disable-xvfb \ |
pankso@10645 | 68 --disable-xnest \ |
gokhlayeh@11573 | 69 --disable-xfbdev \ |
pankso@16062 | 70 --disable-xephyr \ |
pankso@16062 | 71 --disable-xfake \ |
pankso@16021 | 72 --disable-xv \ |
pankso@16039 | 73 ${CONFIGURE_ARGS} ${ARCH_ARGS} && |
pankso@10645 | 74 make && make install |
pankso@10645 | 75 } |
pankso@10645 | 76 |
pankso@10645 | 77 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@10645 | 78 genpkg_rules() |
pankso@10645 | 79 { |
pankso@10645 | 80 mkdir -p $fs/usr/lib $fs/var $fs/etc/X11/xorg.conf.d |
pankso@12524 | 81 cp -a $install/usr/lib/X11 $fs/usr/lib |
pankso@12524 | 82 cp -a $install/usr/bin $fs/usr |
pankso@12524 | 83 cp -a $install/var/lib $fs/var |
pankso@12524 | 84 cp -a $install/etc $fs |
pankso@10645 | 85 # Remove static libs and split Xnest |
pankso@10645 | 86 rm $fs/usr/lib/X11/*/*.*a |
pankso@10645 | 87 rm $fs/usr/lib/X11/*/*/*.*a |
pankso@10645 | 88 } |
pankso@10645 | 89 |
pankso@10645 | 90 # We need /var/tmp rw to let xkbcomp builr XKB definition. |
pankso@10645 | 91 post_install() |
pankso@10645 | 92 { |
pankso@10645 | 93 chmod 1777 $1/var/tmp |
pankso@10645 | 94 } |