wok-current annotate xorg-xf86-video-intel/receipt @ rev 25733
Accept licence PyQt-x11-gpl, bump firmware* to 20240610, build imagemagick (merge)
author | Stanislas Leduc <shann@slitaz.org> |
---|---|
date | Fri Dec 20 16:13:23 2024 +0000 (11 days ago) |
parents | 3ad63c8fc2f9 |
children |
rev | line source |
---|---|
pankso@1039 | 1 # SliTaz package receipt. |
pankso@1039 | 2 |
pankso@1039 | 3 PACKAGE="xorg-xf86-video-intel" |
Hans-G?nter@22273 | 4 VERSION="2.99.917" |
pankso@1039 | 5 CATEGORY="x-window" |
Hans-G?nter@22273 | 6 TAGS="xorg display" |
pankso@3016 | 7 SHORT_DESC="Xorg server Intel driver." |
pankso@1039 | 8 MAINTAINER="pankso@slitaz.org" |
pascal@15579 | 9 LICENSE="MIT" |
Hans-G?nter@22273 | 10 WEB_SITE="https://www.x.org/wiki/" |
Hans-G?nter@22273 | 11 |
pankso@1039 | 12 SOURCE="xf86-video-intel" |
shann@25728 | 13 case $SLITAZ_ARCH in |
shann@25728 | 14 i?86) |
shann@25728 | 15 BRANCH="d39197bb" ;; |
shann@25728 | 16 x86_64) |
shann@25728 | 17 BRANCH="a511f22c" ;; |
shann@25728 | 18 esac |
shann@25728 | 19 TARBALL="$SOURCE-$VERSION-$BRANCH.tar.bz2" |
shann@25728 | 20 WGET_URL="git|https://gitlab.freedesktop.org/xorg/driver/xf86-video-intel.git" |
pankso@1039 | 21 |
shann@25634 | 22 DEPENDS="libdrm libdrm-intel mesa-dri-intel xcb-util xorg-libXfont2 \ |
shann@25634 | 23 xorg-libXvMC xorg-server" |
shann@25634 | 24 BUILD_DEPENDS="automake libtool git libdrm-dev libpthread-stubs-dev \ |
shann@25634 | 25 xcb-util-dev xorg-libXfont2-dev xorg-libXvMC-dev xorg-server-dev" |
pankso@12530 | 26 |
pankso@12530 | 27 MODS='/usr/lib/X11/modules' |
pankso@12530 | 28 |
shann@25728 | 29 HOST_ARCH="i486 x86_64" |
shann@25728 | 30 |
pascal@24072 | 31 current_version() |
pascal@24072 | 32 { |
pascal@24072 | 33 wget -O - $(dirname $WGET_URL) 2>/dev/null | \ |
pascal@24072 | 34 sed "/$SOURCE-[0-9]/!d;/tar/!d;s|.*$SOURCE-\\(.*\\).tar.*\".*|\\1|" | sort -Vr | sed q |
pascal@24072 | 35 } |
pascal@24072 | 36 |
pankso@1039 | 37 # Rules to configure and make the package. |
pankso@1039 | 38 compile_rules() |
pankso@1039 | 39 { |
shann@25728 | 40 case $SLITAZ_ARCH in |
shann@25728 | 41 i?86) |
shann@25728 | 42 # Patch from use driver with new Xorg |
shann@25728 | 43 # see https://gnats.netbsd.org/51687 |
shann@25728 | 44 patch -Np1 < $stuff/patch-src_compat-api.h |
shann@25728 | 45 patch -Np1 < $stuff/patch-src_legacy_i810_i810__video.c |
shann@25728 | 46 patch -Np1 < $stuff/patch-src_sna_sna__accel.c |
shann@25728 | 47 patch -Np1 < $stuff/patch-src_sna_sna__acpi.c |
shann@25728 | 48 patch -Np1 < $stuff/patch-src_sna_sna__driver.c |
shann@25728 | 49 patch -Np1 < $stuff/patch-src_sna_sna.h |
shann@25728 | 50 patch -Np1 < $stuff/patch-src_uxa_intel__display.c |
shann@25728 | 51 patch -Np1 < $stuff/patch-src_uxa_intel.h |
shann@25728 | 52 # see https://lists.x.org/archives/xorg-devel/2018-May/056924.html |
shann@25728 | 53 patch -Np1 < $stuff/patch2-src_sna_sna__accel.c |
shann@25728 | 54 esac |
shann@25634 | 55 |
shann@25634 | 56 # Patch to fix build for i686 |
shann@25634 | 57 # see https://src.fedoraproject.org/rpms/xorg-x11-drv-intel/c/f2e86334f3a168b04afddb57d4bc4f630e59a5e9 |
shann@25634 | 58 patch -Np1 < $stuff/fix_build_i686.patch |
shann@25634 | 59 |
shann@25634 | 60 # Patch to build with new glibc 2.28 |
shann@25634 | 61 # see https://yhbt.net/lore/all/CAMKF1sqHoFmmW3-c1nPMcf04TCRT6EjUAtkQ=kksEy8aY=sMwQ@mail.gmail.com/T/ |
shann@25634 | 62 patch -Np1 < $stuff/fix_build_glibc2.28.patch |
shann@25634 | 63 |
shann@25634 | 64 # Update src |
shann@25634 | 65 autoreconf -i |
shann@25634 | 66 |
shann@25728 | 67 case $SLITAZ_ARCH in |
shann@25728 | 68 i?86) |
shann@25728 | 69 # disable dri3, need check to add support |
shann@25728 | 70 ./configure \ |
shann@25728 | 71 --sysconfdir=/etc \ |
shann@25728 | 72 --mandir=/usr/share/man \ |
shann@25728 | 73 --localstatedir=/var \ |
shann@25728 | 74 --with-xorg-module-dir=$MODS \ |
shann@25728 | 75 --enable-dri \ |
shann@25728 | 76 --enable-dri3 \ |
shann@25728 | 77 --enable-xvmc \ |
shann@25728 | 78 $CONFIGURE_ARGS ;; |
shann@25728 | 79 x86_64) |
shann@25728 | 80 ./configure \ |
shann@25728 | 81 --sysconfdir=/etc \ |
shann@25728 | 82 --mandir=/usr/share/man \ |
shann@25728 | 83 --localstatedir=/var \ |
shann@25728 | 84 --with-xorg-module-dir=$MODS \ |
shann@25728 | 85 --with-default-dri=3 \ |
shann@25728 | 86 --enable-xvmc \ |
shann@25728 | 87 $CONFIGURE_ARGS ;; |
shann@25728 | 88 esac |
shann@25634 | 89 |
Hans-G?nter@22273 | 90 make && |
Hans-G?nter@22273 | 91 make install |
pankso@1039 | 92 } |
pankso@1039 | 93 |
pankso@1039 | 94 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@1039 | 95 genpkg_rules() |
pankso@1039 | 96 { |
pankso@12530 | 97 mkdir -p ${fs}${MODS}/drivers |
Hans-G?nter@22273 | 98 |
Hans-G?nter@22273 | 99 cp -a ${install}${MODS}/drivers/*.so ${fs}${MODS}/drivers |
Hans-G?nter@22273 | 100 cp -a $install/usr/lib/*.so* $fs/usr/lib |
pankso@1039 | 101 } |