wok-current annotate xorg-server-light/receipt @ rev 25712

Use symlink for libxvmc-mesa
author Stanislas Leduc <shann@slitaz.org>
date Mon Jun 10 20:42:21 2024 +0000 (6 months ago)
parents 814c58f64f83
children
rev   line source
pankso@10645 1 # SliTaz package receipt.
pankso@10645 2
pankso@10645 3 PACKAGE="xorg-server-light"
pankso@16080 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 SOURCE="xorg-server"
pankso@10645 10 TARBALL="$SOURCE-$VERSION.tar.bz2"
pascal@20423 11 WEB_SITE="https://www.x.org/"
pankso@10645 12 WGET_URL="http://xorg.freedesktop.org/releases/individual/xserver/$TARBALL"
pankso@10645 13 PROVIDE="xorg-server"
pankso@16067 14 HOST_ARCH="i486 arm"
pankso@10645 15
pankso@16067 16 SUGGESTED="xorg-xf86-video-vesa xorg-xf86-video-fbdev"
pankso@10645 17 DEPENDS="xorg-xkeyboard-config xorg-libpciaccess xorg-libXxf86vm \
pankso@16067 18 xorg-libXfont xorg-libXau xorg-base-fonts libgcrypt pixman \
pankso@16067 19 xorg-xf86-input-evdev libgpg-error libgcrypt freetype libxcb \
pankso@16076 20 xorg-libXcomposite xorg-libXv bzip2 udev"
pankso@16067 21 BUILD_DEPENDS="xorg-libxkbfile-dev xorg-libpciaccess-dev pixman-dev \
pankso@16039 22 xorg-util-macros xorg-libXfont-dev libgcrypt-dev xorg-resourceproto \
pankso@16039 23 xorg-bigreqsproto xorg-xcmiscproto xorg-renderproto xorg-damageproto \
pankso@16039 24 xorg-compositeproto xorg-xf86dgaproto xorg-randrproto xorg-recordproto \
pankso@16039 25 xorg-videoproto xorg-xtrans libgpg-error-dev libgcrypt-dev freetype-dev \
pankso@16076 26 libxcb-dev xorg-libXcomposite-dev xorg-libXxf86vm-dev xorg-libXv-dev \
pascal@19697 27 bzip2-dev udev-dev xorg-resourceproto xorg-xf86dgaproto xorg-bigreqsproto \
pascal@19697 28 xorg-bigreqsproto xorg-xcmiscproto xorg-bigreqsproto xorg-resourceproto"
pankso@16067 29
pascal@24072 30 current_version()
pascal@24072 31 {
pascal@24072 32 wget -O - $(dirname $WGET_URL) 2>/dev/null | \
pascal@24072 33 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q
pascal@24072 34 }
pascal@24072 35
pankso@16067 36 # Handle cross compilation. ARM use build host: perl flex
pankso@16067 37 case "$ARCH" in
pankso@16067 38 arm)
pankso@16067 39 #--disable-static
pankso@16068 40 ARCH_ARGS="--enable-malloc0returnsnull"
pankso@16067 41 OS_NAME="SliTaz ARM"
pankso@16067 42 VENDOR="http://arm.slitaz.org" ;;
pankso@16039 43 i?86)
pankso@16067 44 BUILD_DEPENDS="$BUILD_DEPENDS perl flex udev-dev"
pankso@16067 45 OS_NAME="SliTaz GNU/Linux"
pankso@16067 46 VENDOR="http://www.slitaz.org" ;;
pankso@16021 47 esac
pankso@16021 48
pankso@10645 49 # Rules to configure and make the package.
pankso@10645 50 compile_rules()
pankso@10645 51 {
pankso@10645 52 ./configure \
pankso@10645 53 --prefix=/usr \
pankso@10645 54 --sysconfdir=/etc \
pankso@10645 55 --localstatedir=/var \
pankso@10645 56 --with-module-dir=/usr/lib/X11/modules \
pankso@10645 57 --with-xkb-output=/var/lib/xkb \
pankso@10645 58 --with-serverconfig-path=/etc/X11 \
pankso@16062 59 --with-fontrootdir=/usr/share/fonts \
pankso@16067 60 --with-os-name="$OS_NAME" \
pankso@16067 61 --with-vendor-web="$VENDOR" \
pankso@16062 62 --with-builder-addr="$MAINTAINER" \
pankso@10645 63 --enable-install-setuid \
pankso@10645 64 --enable-xorg \
pankso@16068 65 --enable-config-udev \
pankso@10645 66 --disable-config-dbus \
pankso@10645 67 --disable-screensaver \
pankso@10645 68 --disable-glx \
pankso@10645 69 --disable-dri \
pankso@10645 70 --disable-dri2 \
pankso@10645 71 --disable-xinerama \
pankso@10645 72 --disable-libdrm \
pankso@10645 73 --disable-xvfb \
pankso@10645 74 --disable-xnest \
gokhlayeh@11573 75 --disable-xfbdev \
pankso@16062 76 --disable-xephyr \
pankso@16062 77 --disable-xfake \
pankso@16067 78 --disable-ipv6 \
pankso@16067 79 --disable-docs \
pankso@16067 80 --disable-devel-docs \
pankso@16039 81 ${CONFIGURE_ARGS} ${ARCH_ARGS} &&
pankso@10645 82 make && make install
pankso@10645 83 }
pankso@10645 84
pankso@16067 85 # Be sure it as cross compile
pankso@16067 86 testsuite()
pankso@16067 87 {
pankso@16067 88 readelf -h $install/usr/bin/Xorg
pankso@16067 89 }
pankso@16067 90
pankso@10645 91 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@10645 92 genpkg_rules()
pankso@10645 93 {
pankso@10645 94 mkdir -p $fs/usr/lib $fs/var $fs/etc/X11/xorg.conf.d
pankso@12524 95 cp -a $install/usr/lib/X11 $fs/usr/lib
pankso@12524 96 cp -a $install/usr/bin $fs/usr
pankso@12524 97 cp -a $install/var/lib $fs/var
pankso@12524 98 cp -a $install/etc $fs
pankso@10645 99 # Remove static libs and split Xnest
pankso@10645 100 rm $fs/usr/lib/X11/*/*.*a
pankso@10645 101 rm $fs/usr/lib/X11/*/*/*.*a
pankso@10645 102 }
pankso@10645 103
pankso@10645 104 # We need /var/tmp rw to let xkbcomp builr XKB definition.
pankso@10645 105 post_install()
pankso@10645 106 {
pascal@18730 107 chmod 1777 "$1/var/tmp"
pankso@10645 108 }