mesa: separate out libgbm-devel

This commit is contained in:
Hill Ma 2021-11-04 16:28:41 +01:00 committed by Daniel Kolesa
parent 5ab63bbf68
commit 2ef08aed69
2 changed files with 13 additions and 3 deletions

1
srcpkgs/libgbm-devel Symbolic link
View File

@ -0,0 +1 @@
mesa

View File

@ -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