wok-next view 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
line source
1 # SliTaz package receipt.
3 PACKAGE="xorg-server-light"
4 VERSION="1.12.1"
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"
16 DEPENDS="xorg-xkeyboard-config xorg-libpciaccess xorg-libXxf86vm \
17 xorg-libXfont xorg-libXau xorg-base-fonts libgcrypt pixman udev \
18 xorg-xf86-input-evdev"
19 BUILD_DEPENDS="xorg-libxkbfile-dev xorg-libpciaccess-dev xorg-libXxf86vm-dev \
20 xorg-libXfont-dev libgcrypt-dev pixman-dev udev-dev perl flex xorg-dev-proto"
22 # Rules to configure and make the package.
23 compile_rules()
24 {
25 #CFLAGS="-march=$ARCH -O2 -pipe -fomit-frame-pointer"
26 #CXXFLAGS="$CFLAGS"
27 # Sizes: 792.0K with -Os and 968.0K
28 cd $src
29 ./configure \
30 --prefix=/usr \
31 --sysconfdir=/etc \
32 --localstatedir=/var \
33 --with-module-dir=/usr/lib/X11/modules \
34 --with-xkb-output=/var/lib/xkb \
35 --with-serverconfig-path=/etc/X11 \
36 --enable-install-setuid \
37 --enable-xorg \
38 --enable-config-udev \
39 --disable-config-dbus \
40 --with-fontrootdir=/usr/share/fonts \
41 --with-os-name="SliTaz GNU/Linux" \
42 --with-builder-addr=$MAINTAINER \
43 --disable-screensaver \
44 --disable-glx \
45 --disable-dri \
46 --disable-dri2 \
47 --disable-xinerama \
48 --disable-libdrm \
49 --disable-xvfb \
50 --disable-xnest \
51 --disable-xfbdev \
52 $CONFIGURE_ARGS &&
53 make && make install
54 }
56 # Rules to gen a SliTaz package suitable for Tazpkg.
57 genpkg_rules()
58 {
59 mkdir -p $fs/usr/lib $fs/var $fs/etc/X11/xorg.conf.d
60 cp -a $install/usr/lib/X11 $fs/usr/lib
61 cp -a $install/usr/bin $fs/usr
62 cp -a $install/var/lib $fs/var
63 cp -a $install/etc $fs
64 # Remove static libs and split Xnest
65 rm $fs/usr/lib/X11/*/*.*a
66 rm $fs/usr/lib/X11/*/*/*.*a
67 }
69 # We need /var/tmp rw to let xkbcomp builr XKB definition.
70 post_install()
71 {
72 chmod 1777 $1/var/tmp
73 }