summaryrefslogtreecommitdiff
path: root/repo/x11/xf86-video-intel.xibuild
diff options
context:
space:
mode:
authordavidovski <david@davidovski.xyz>2022-05-01 21:21:05 +0000
committerdavidovski <david@davidovski.xyz>2022-05-01 21:21:05 +0000
commit606bc59d0f8f67815c6a717843835477d44db6b3 (patch)
tree687b3fe5bc844b90a3841e1ea543aa9f9934a93a /repo/x11/xf86-video-intel.xibuild
parent1084afc3c4d9c83e61620de60ba59a4393a33cb0 (diff)
added ungoogled chromium
Diffstat (limited to 'repo/x11/xf86-video-intel.xibuild')
-rw-r--r--repo/x11/xf86-video-intel.xibuild27
1 files changed, 17 insertions, 10 deletions
diff --git a/repo/x11/xf86-video-intel.xibuild b/repo/x11/xf86-video-intel.xibuild
index 2b46e0c..ac5fce2 100644
--- a/repo/x11/xf86-video-intel.xibuild
+++ b/repo/x11/xf86-video-intel.xibuild
@@ -6,17 +6,23 @@ DEPS="xorg-server mesa libxvmc pixman xcb-util"
DESC="X.org intel video driver"
PKG_VER=2.99.917
-# TODO switch to official source not blfs
-SOURCE=https://anduin.linuxfromscratch.org/BLFS/xf86-video-intel/xf86-video-intel-20210222.tar.xz
-#BRANCH=$PKG_VER
+_pkgver=31486f40f8e8f8923ca0799aea84b58799754564
+SOURCE=https://github.com/freedesktop/xorg-xf86-video-intel/archive/$_pkgver.zip
+
+prepare () {
+ autoreconf -vif
+}
build () {
- ./autogen.sh
- ./configure $XORG_CONFIG \
- --enable-kms-only \
- --enable-uxa \
- --mandir=/usr/share/man &&
- make
+ export LDFLAGS="$LDFLAGS -Wl,-z,lazy"
+ ./configure \
+ --build=$CBUILD \
+ --host=$CHOST \
+ --prefix=/usr \
+ --enable-xvmc \
+ --disable-selective-werror \
+ --with-default-dri=3
+ make
}
package () {
@@ -26,12 +32,13 @@ package () {
$PKG_DEST/usr/share/man/man1/intel-virtual-output.1 &&
sed -i '/\.TH/s/4/1/' $PKG_DEST/usr/share/man/man1/intel-virtual-output.1
+
mkdir -p $PKG_DEST/etc/X11/xorg.conf.d
cat >> $PKG_DEST/etc/X11/xorg.conf.d/20-intel.conf << "EOF"
Section "Device"
Identifier "Intel Graphics"
Driver "intel"
- #Option "DRI" "2" # DRI3 is default
+ #Option "DRI" "3" # DRI3 is default
#Option "AccelMethod" "sna" # default
#Option "AccelMethod" "uxa" # fallback
EndSection