wok-current rev 25709

Rework mesa-dri to use symlink (85% size free), thanks alanyih
author Stanislas Leduc <shann@slitaz.org>
date Mon Jun 03 16:29:38 2024 +0000 (5 months ago)
parents cec918ae56ee
children 4fd464abe902
files mesa-dri-ati/receipt mesa-dri-crocus/receipt mesa-dri-intel/receipt mesa-dri-iris/receipt mesa-dri-nouveau/receipt mesa-dri-virtio/receipt mesa-dri-vmwgfx/receipt mesa-dri/receipt
line diff
     1.1 --- a/mesa-dri-ati/receipt	Sun Jun 02 13:33:59 2024 +0000
     1.2 +++ b/mesa-dri-ati/receipt	Mon Jun 03 16:29:38 2024 +0000
     1.3 @@ -16,5 +16,12 @@
     1.4  genpkg_rules()
     1.5  {
     1.6  	mkdir -p $fs/usr/lib/dri
     1.7 -	cp $install/usr/lib/dri/r[0-9a]*_dri.so	$fs/usr/lib/dri
     1.8 +
     1.9 +	for drv in "r200" "radeon"; do
    1.10 +		ln -s i830_dri.so $fs/usr/lib/dri/"$drv"_dri.so
    1.11 +	done
    1.12 +
    1.13 +        for drv in "r300" "r600" "radeonsi"; do
    1.14 +        	ln -s kms_swrast_dri.so $fs/usr/lib/dri/"$drv"_dri.so
    1.15 +        done
    1.16  }
     2.1 --- a/mesa-dri-crocus/receipt	Sun Jun 02 13:33:59 2024 +0000
     2.2 +++ b/mesa-dri-crocus/receipt	Mon Jun 03 16:29:38 2024 +0000
     2.3 @@ -15,5 +15,5 @@
     2.4  genpkg_rules()
     2.5  {
     2.6  	mkdir -p $fs/usr/lib/dri
     2.7 -	cp $install/usr/lib/dri/crocus_dri.so $fs/usr/lib/dri
     2.8 +	ln -s kms_swrast_dri.so $fs/usr/lib/dri/crocus_dri.so
     2.9  }
     3.1 --- a/mesa-dri-intel/receipt	Sun Jun 02 13:33:59 2024 +0000
     3.2 +++ b/mesa-dri-intel/receipt	Mon Jun 03 16:29:38 2024 +0000
     3.3 @@ -15,5 +15,8 @@
     3.4  genpkg_rules()
     3.5  {
     3.6  	mkdir -p $fs/usr/lib/dri
     3.7 -	cp $install/usr/lib/dri/i[0-9]*_dri.so $fs/usr/lib/dri
     3.8 +	cp $install/usr/lib/dri/i830_dri.so $fs/usr/lib/dri
     3.9 +	for drv in "i915" "i965"; do
    3.10 +		ln -s i830_dri.so $fs/usr/lib/dri/"$drv"_dri.so
    3.11 +	done
    3.12  }
     4.1 --- a/mesa-dri-iris/receipt	Sun Jun 02 13:33:59 2024 +0000
     4.2 +++ b/mesa-dri-iris/receipt	Mon Jun 03 16:29:38 2024 +0000
     4.3 @@ -15,5 +15,5 @@
     4.4  genpkg_rules()
     4.5  {
     4.6  	mkdir -p $fs/usr/lib/dri
     4.7 -	cp $install/usr/lib/dri/iris_dri.so $fs/usr/lib/dri
     4.8 +	ln -s kms_swrast_dri.so $fs/usr/lib/dri/iris_dri.so
     4.9  }
     5.1 --- a/mesa-dri-nouveau/receipt	Sun Jun 02 13:33:59 2024 +0000
     5.2 +++ b/mesa-dri-nouveau/receipt	Mon Jun 03 16:29:38 2024 +0000
     5.3 @@ -17,7 +17,9 @@
     5.4  	mkdir -p $fs/usr/lib/dri
     5.5  	mkdir -p $fs/etc/X11/xorg.conf.d
     5.6  
     5.7 -	cp $install/usr/lib/dri/nouveau*_dri.so	$fs/usr/lib/dri
     5.8 +        for drv in "nouveau" "nouveau_vieux"; do
     5.9 +                ln -s i830_dri.so $fs/usr/lib/dri/"$drv"_dri.so
    5.10 +        done
    5.11  
    5.12  	cat > $fs/etc/X11/xorg.conf.d/90-DRI.conf <<EOT
    5.13  Section "DRI"
     6.1 --- a/mesa-dri-virtio/receipt	Sun Jun 02 13:33:59 2024 +0000
     6.2 +++ b/mesa-dri-virtio/receipt	Mon Jun 03 16:29:38 2024 +0000
     6.3 @@ -15,5 +15,5 @@
     6.4  genpkg_rules()
     6.5  {
     6.6  	mkdir -p $fs/usr/lib/dri
     6.7 -	cp $install/usr/lib/dri/virtio_gpu_dri.so $fs/usr/lib/dri
     6.8 +	ln -s kms_swrast_dri.so $fs/usr/lib/dri/virtio_gpu_dri.so
     6.9  }
     7.1 --- a/mesa-dri-vmwgfx/receipt	Sun Jun 02 13:33:59 2024 +0000
     7.2 +++ b/mesa-dri-vmwgfx/receipt	Mon Jun 03 16:29:38 2024 +0000
     7.3 @@ -15,5 +15,5 @@
     7.4  genpkg_rules()
     7.5  {
     7.6  	mkdir -p $fs/usr/lib/dri
     7.7 -	cp $install/usr/lib/dri/vmwgfx_dri.so	$fs/usr/lib/dri
     7.8 +	ln -s kms_swrast_dri.so $fs/usr/lib/dri/vmwgfx_dri.so
     7.9  }
     8.1 --- a/mesa-dri/receipt	Sun Jun 02 13:33:59 2024 +0000
     8.2 +++ b/mesa-dri/receipt	Mon Jun 03 16:29:38 2024 +0000
     8.3 @@ -17,7 +17,8 @@
     8.4  genpkg_rules()
     8.5  {
     8.6  	mkdir -p $fs/usr/lib/dri
     8.7 -	cp $install/usr/lib/dri/swrast_dri.so	$fs/usr/lib/dri
     8.8 +	cp $install/usr/lib/dri/kms_swrast_dri.so	$fs/usr/lib/dri
     8.9 +	ln -s kms_swrast_dri.so $fs/usr/lib/dri/swrast_dri.so
    8.10  
    8.11  	mkdir -p $fs/etc/X11/xorg.conf.d
    8.12  	cp -a $stuff/*.conf			$fs/etc/X11/xorg.conf.d