From 2ef08aed69441051b9016b8fd8dfc12288d2606c Mon Sep 17 00:00:00 2001 From: Hill Ma Date: Thu, 4 Nov 2021 16:28:41 +0100 Subject: [PATCH] mesa: separate out libgbm-devel --- srcpkgs/libgbm-devel | 1 + srcpkgs/mesa/template | 15 ++++++++++++--- 2 files changed, 13 insertions(+), 3 deletions(-) create mode 120000 srcpkgs/libgbm-devel diff --git a/srcpkgs/libgbm-devel b/srcpkgs/libgbm-devel new file mode 120000 index 00000000000..1ad1bbec7ab --- /dev/null +++ b/srcpkgs/libgbm-devel @@ -0,0 +1 @@ +mesa \ No newline at end of file diff --git a/srcpkgs/mesa/template b/srcpkgs/mesa/template index d6f47316bdc..37ba69371a4 100644 --- a/srcpkgs/mesa/template +++ b/srcpkgs/mesa/template @@ -37,7 +37,7 @@ case "$XBPS_TARGET_MACHINE" in esac # Set subpackages manually to set proper rdeps in 32bit pkgs. -subpackages="libglapi libgbm libOSMesa" +subpackages="libglapi libgbm libgbm-devel libOSMesa" # Replace old mesa pkgs, superseded by libglvnd. replaces="libGL>=10_1<19.2.5_2 libEGL>=10_1<19.2.5_2 libGLES>=10_1<19.2.5_2" @@ -246,6 +246,16 @@ libgbm_package() { } } +libgbm-devel_package() { + short_desc="Mesa Generic buffer management API - development files" + depends="libgbm>=${version}_${revision}" + pkg_install() { + vmove usr/include/gbm.h + vmove usr/lib/libgbm.so + vmove usr/lib/pkgconfig/gbm.pc + } +} + libOSMesa_package() { short_desc="Mesa Off-Screen interface library" pkg_install() { @@ -257,7 +267,7 @@ MesaLib-devel_package() { depends="xorgproto libxshmfence-devel libXext-devel libXxf86vm-devel libXdamage-devel expat-devel libXfixes-devel libX11-devel libxcb-devel libdrm-devel libglvnd-devel - libOSMesa>=${version}_${revision} libgbm>=${version}_${revision} + libOSMesa>=${version}_${revision} libgbm-devel>=${version}_${revision} mesa>=${version}_${revision}" if [ "$_have_vmware" ]; then depends+=" libxatracker>=${version}_${revision}" @@ -272,7 +282,6 @@ MesaLib-devel_package() { vmove usr/lib/libEGL_mesa.so vmove usr/lib/libGLX_mesa.so vmove usr/lib/libOSMesa.so - vmove usr/lib/libgbm.so vmove usr/lib/libglapi.so if [ "$_have_vmware" ]; then vmove usr/lib/libxatracker.so