wok view xorg-server-light/receipt @ rev 16041

syslinux/iso2exe: fix 'a la umsdos' install
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sun Mar 09 14:09:57 2014 +0000 (2014-03-09)
parents 307866ad479e
children 699180e3f8df
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-server-light"
4 VERSION="1.12.4"
5 CATEGORY="x-window"
6 SHORT_DESC="Xorg core server light version (no dri, gl, and friends)."
7 MAINTAINER="pankso@slitaz.org"
8 LICENSE="MIT"
9 SUGGESTED="xorg-xf86-video-vesa"
10 SOURCE="xorg-server"
11 TARBALL="$SOURCE-$VERSION.tar.bz2"
12 WEB_SITE="http://www.x.org/"
13 WGET_URL="http://xorg.freedesktop.org/releases/individual/xserver/$TARBALL"
14 PROVIDE="xorg-server"
15 HOST_ARCH="i486 arm"
17 DEPENDS="xorg-xkeyboard-config xorg-libpciaccess xorg-libXxf86vm \
18 xorg-libXfont xorg-libXau xorg-base-fonts libgcrypt pixman udev \
19 xorg-xf86-input-evdev libgpg-error libgcrypt freetype libxcb bzip2"
20 BUILD_DEPENDS="xorg-libxkbfile-dev xorg-libpciaccess-dev xorg-libXxf86vm-dev \
21 xorg-libXfont-dev libgpg-error-dev libgcrypt-dev pixman-dev udev-dev perl \
22 flex xorg-dev-proto freetype-dev libxcb-dev bzip2-dev"
24 # Handle arch compilation
25 case "$ARCH" in
26 arm)
27 #--disable-xf86vidmode
28 BUILD_DEPENDS="xorg-libxkbfile-dev xorg-libpciaccess-dev pixman-dev \
29 xorg-util-macros xorg-libXfont-dev libgcrypt-dev xorg-resourceproto \
30 xorg-bigreqsproto xorg-xcmiscproto xorg-renderproto xorg-damageproto \
31 xorg-compositeproto xorg-xf86dgaproto xorg-randrproto xorg-recordproto \
32 xorg-videoproto xorg-xtrans libgpg-error-dev libgcrypt-dev freetype-dev \
33 libxcb-dev bzip2-dev"
34 ARCH_ARGS="--disable-config-udev"
35 ARM_LIBS="/cross/$arch/sysroot/usr/lib"
36 export LIBTOOL=${HOST_SYSTEm}-libtool ;;
37 i?86)
38 ARCH_ARGS="--enable-config-udev" ;;
39 esac
41 # Rules to configure and make the package.
42 compile_rules()
43 {
44 ./configure \
45 --prefix=/usr \
46 --sysconfdir=/etc \
47 --localstatedir=/var \
48 --with-module-dir=/usr/lib/X11/modules \
49 --with-xkb-output=/var/lib/xkb \
50 --with-serverconfig-path=/etc/X11 \
51 --enable-install-setuid \
52 --enable-xorg \
53 --disable-config-dbus \
54 --with-fontrootdir=/usr/share/fonts \
55 --with-os-name="SliTaz GNU/Linux" \
56 --with-builder-addr=$MAINTAINER \
57 --disable-screensaver \
58 --disable-glx \
59 --disable-dri \
60 --disable-dri2 \
61 --disable-xinerama \
62 --disable-libdrm \
63 --disable-xvfb \
64 --disable-xnest \
65 --disable-xfbdev \
66 --disable-xv \
67 XSERVERCFLAGS_LIBS="-L${ARM_LIBS} -lrt -lpthread -lmd -lgcrypt -lm -lz \
68 -lcrypto -lpixman -lxkbfile -lXfont -lfreetype -lXau -lfontenc -lXdmcp" \
69 XSERVERLIBS_LIBS="-L${ARM_LIBS} -lrt -lpthread -lmd -lgcrypt -lm -lz \
70 -lcrypto -lpixman -lxkbfile -lXfont -lfreetype -lXau -lfontenc -lXdmcp" \
71 ${CONFIGURE_ARGS} ${ARCH_ARGS} &&
72 make && make install
73 }
75 # Rules to gen a SliTaz package suitable for Tazpkg.
76 genpkg_rules()
77 {
78 mkdir -p $fs/usr/lib $fs/var $fs/etc/X11/xorg.conf.d
79 cp -a $install/usr/lib/X11 $fs/usr/lib
80 cp -a $install/usr/bin $fs/usr
81 cp -a $install/var/lib $fs/var
82 cp -a $install/etc $fs
83 # Remove static libs and split Xnest
84 rm $fs/usr/lib/X11/*/*.*a
85 rm $fs/usr/lib/X11/*/*/*.*a
86 }
88 # We need /var/tmp rw to let xkbcomp builr XKB definition.
89 post_install()
90 {
91 chmod 1777 $1/var/tmp
92 }