]> git.armaanb.net Git - asd-repo.git/commitdiff
chromium: use vaapi
authorArmaan Bhojwani <me@armaanb.net>
Wed, 14 Jul 2021 21:38:17 +0000 (17:38 -0400)
committerArmaan Bhojwani <me@armaanb.net>
Thu, 15 Jul 2021 03:55:28 +0000 (23:55 -0400)
extra/chromium/build
extra/chromium/depends
extra/libva/build [new file with mode: 0755]
extra/libva/checksums [new file with mode: 0644]
extra/libva/depends [new file with mode: 0644]
extra/libva/sources [new file with mode: 0644]
extra/libva/version [new file with mode: 0644]

index d21e63c4934a39c6b00ae064f5d1cda4377b49b5..6b059c4d1b1c4da772771af7cf16be43dc6e7163 100755 (executable)
@@ -1,18 +1,6 @@
 #!/bin/sh -e
 
-# Musl patches
-for patch in musl-*.patch; do
-    patch -p1 < "$patch"
-done
-
-# Patches specifically for my messed up system
-# no libatomic/clang plugins (wyverkiss), no gzip (me)
-for patch in wyverkiss-*.patch; do
-    patch -p1 < "$patch"
-done
-
-# Ungoogled Chromium patches
-for patch in chromium-*.patch; do
+for patch in *.patch; do
     patch -p1 < "$patch"
 done
 
@@ -138,7 +126,7 @@ conf="
     use_custom_libcxx=false
     use_gnome_keyring=false
     use_system_harfbuzz=true
-    use_vaapi=false
+    use_vaapi=true
     chrome_pgo_phase=0
     enable_mdns=false
     enable_nacl=false
@@ -162,11 +150,16 @@ ulimit -n 4096
 ninja -C out/Release chrome
 
 # Package the monster.
-install -Dm755 chromium.sh                         "$1/usr/bin/chromium"
-install -Dm755 out/Release/chrome                  "$1/usr/lib/chromium/chromium"
-install -Dm644 out/Release/icudtl.dat              "$1/usr/lib/chromium"
-install -Dm644 out/Release/resources.pak           "$1/usr/lib/chromium/resources.pak"
-install -Dm644 out/Release/locales/en-US.pak       "$1/usr/lib/chromium/locales/en-US.pak"
-install -Dm644 out/Release/chrome_100_percent.pak  "$1/usr/lib/chromium/chrome_100_percent.pak"
-install -Dm644 out/Release/chrome_200_percent.pak  "$1/usr/lib/chromium/chrome_200_percent.pak"
-install -Dm644 out/Release/v8_context_snapshot.bin "$1/usr/lib/chromium/v8_context_snapshot.bin"
+install -Dm755 chromium.sh            "$1/usr/bin/chromium"
+install -Dm755 out/Release/chrome     "$1/usr/lib/chromium/chromium"
+install -Dm644 out/Release/icudtl.dat "$1/usr/lib/chromium"
+install -Dm644 out/Release/locales/*.pak -t "$1/usr/lib/chromium/locales"
+
+for lib in libEGL.so libGLESv2.so; do
+    install -Dm755 "out/Release/$lib" "$1/usr/lib/chromium"
+done
+
+for stuff in bin pak; do
+    install -Dm644 out/Release/*.$stuff "$1/usr/lib/chromium"
+done
+
index 112b1b6b20aa3ec2f4715d276cd153786003954b..ef6cc2f4988e733698c86b278c61667e2e1e9f20 100644 (file)
@@ -1,3 +1,4 @@
+
 alsa-lib
 byacc              make
 bzip2
@@ -15,6 +16,7 @@ libdrm
 libexif
 libgcrypt
 libjpeg-turbo
+libva
 libwebp
 libxml2
 libxslt
@@ -28,4 +30,3 @@ python             make
 python2            make
 samurai            make
 xcb-proto
-
diff --git a/extra/libva/build b/extra/libva/build
new file mode 100755 (executable)
index 0000000..df54af3
--- /dev/null
@@ -0,0 +1,17 @@
+#!/bin/sh -e
+
+export DESTDIR="$1"
+
+meson \
+    --prefix=/usr \
+    --sysconfdir=/etc \
+    --mandir=/usr/share/man \
+    -Dwith_wayland=no \
+    -Dwith_x11=yes \
+    -Dwith_glx=no \
+    -Ddocs=false \
+    -Dintrospection=false \
+    . output
+
+ninja -C output
+ninja -C output install
diff --git a/extra/libva/checksums b/extra/libva/checksums
new file mode 100644 (file)
index 0000000..c669541
--- /dev/null
@@ -0,0 +1 @@
+7bca8c8a854653e15e602f243e2452e84e4b454b26549bf80a932ab29d7d6b21
diff --git a/extra/libva/depends b/extra/libva/depends
new file mode 100644 (file)
index 0000000..158e9ac
--- /dev/null
@@ -0,0 +1,9 @@
+libX11
+libXext
+libXfixes
+libdrm
+linux-headers make
+mesa
+meson         make
+pkgconf       make
+wayland
diff --git a/extra/libva/sources b/extra/libva/sources
new file mode 100644 (file)
index 0000000..ba22be3
--- /dev/null
@@ -0,0 +1 @@
+https://github.com/intel/libva/archive/2.12.0.tar.gz
diff --git a/extra/libva/version b/extra/libva/version
new file mode 100644 (file)
index 0000000..f30894e
--- /dev/null
@@ -0,0 +1 @@
+2.12.0 1