# Maintainer: Natanael Copa global pkgname := 'mesa' global pkgver := '17.1.4' global pkgrel := '1' global pkgdesc := '"Mesa DRI OpenGL library'" global url := '"http://www.mesa3d.org'" global arch := '"all'" global license := '"LGPL'" global depends := '' global subpackages := ""$pkgname-dev $pkgname-dri-ati:_dri $pkgname-dri-nouveau:_dri $pkgname-dri-freedreno:_dri $pkgname-dri-swrast:_dri $pkgname-dri-vmwgfx:_dri $pkgname-dri-virtio:_dri $pkgname-glapi $pkgname-egl $pkgname-gl $pkgname-gles $pkgname-xatracker $pkgname-osmesa $pkgname-gbm $pkgname-libwayland-egl:_wayland "" global _llvmver := '4' global depends_dev := '"libdrm-dev dri2proto libx11-dev libxext-dev libxxf86vm-dev libxdamage-dev libxfixes-dev libxcb-dev glproto dri3proto presentproto libxshmfence-dev'" global makedepends := ""$depends_dev expat-dev xextproto python2 libxt-dev makedepend talloc-dev py-libxml2 flex bison llvm$_llvmver-dev eudev-dev libvdpau-dev libxvmc-dev gettext zlib-dev wayland-dev libelf-dev py-mako autoconf automake libtool"" global source := ""https://mesa.freedesktop.org/archive/mesa-$pkgver.tar.xz glx_ro_text_segm.patch musl-fixes.patch musl-fix-includes.patch drmdeps.patch "" global replaces := '"mesa-dricore'" global _dri_driverdir := '/usr/lib/xorg/modules/dri' global _dri_drivers := '"r200,radeon,nouveau,swrast'" global _gallium_drivers := '"r300,r600,radeonsi,nouveau,freedreno,svga,swrast,virgl'" global _vulkan_drivers := '"radeon'" global builddir := ""$srcdir/mesa-$pkgver"" global _arch_opts := '' matchstr $CARCH { x86* { global _dri_drivers := ""$(_dri_drivers),i915,i965"" global _vulcan_drivers := ""$_vulcan_drivers,intel"" global subpackages := ""$subpackages $pkgname-dri-intel:_dri"" global _arch_opts := '"--enable-dri3'" } arm* { global _gallium_drivers := ""$(_gallium_drivers),vc4"" matchstr $CARCH { armhf { global CFLAGS := ""$CFLAGS -mfpu=neon""} } } } proc prepare { cd $builddir for i in [$source] { matchstr $i { *.patch { msg $i; patch -p1 -i "$srcdir"/$i || return 1} } } libtoolize --force \ && aclocal \ && automake --add-missing \ && autoreconf || return 1 } proc build { cd $builddir export CFLAGS="$CFLAGS -D_XOPEN_SOURCE=700" ./configure \ --build=$CBUILD \ --host=$CHOST \ --prefix=/usr \ --sysconfdir=/etc \ --with-dri-driverdir=$_dri_driverdir \ --disable-asm \ --disable-xvmc \ --enable-glx-rts \ --with-gallium-drivers=$(_gallium_drivers) \ --with-dri-drivers=$(_dri_drivers) \ --with-vulcan-drivers=$(_vulkan_drivers) \ --with-llvm-prefix=/usr/lib/llvm$_llvmver \ --enable-llvm-shared-libs \ --enable-gallium-llvm \ --with-egl-platforms=x11,drm,wayland \ --enable-shared-glapi \ --enable-gbm \ --disable-glx-tls \ --disable-nine \ --enable-dri \ --enable-glx \ --enable-osmesa \ --enable-gles1 \ --enable-gles2 \ --enable-egl \ --enable-texture-float \ --enable-xa \ --enable-vdpau \ $_arch_opts \ || return 1 make || return 1 } proc package { cd $builddir make -j1 DESTDIR="$pkgdir" install || return 1 } proc egl { global replaces := '"mesa'" global pkgdesc := '"Mesa libEGL runtime libraries'" install -d "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libEGL.so* \ "$subpkgdir"/usr/lib/ } proc gl { global replaces := '"mesa'" global pkgdesc := '"Mesa libGL runtime libraries'" install -d "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libGL.so* \ "$subpkgdir"/usr/lib/ } proc glapi { global replaces := ""$pkgname-gles"" global pkgdesc := '"Mesa shared glapi'" install -d "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libglapi.so.* \ "$subpkgdir"/usr/lib/ } proc gles { global replaces := '"mesa'" global pkgdesc := '"Mesa libGLESv2 runtime libraries'" install -d "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libGLES*.so* \ "$subpkgdir"/usr/lib/ } proc xatracker { global pkgdesc := '"Mesa XA state tracker for vmware'" install -d "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libxatracker*.so.* \ "$subpkgdir"/usr/lib/ } proc osmesa { global pkgdesc := '"Mesa offscreen rendering libraries'" install -d "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libOSMesa.so.* \ "$subpkgdir"/usr/lib/ } proc gbm { global pkgdesc := '"Mesa gbm library'" global replaces := '"mesa'" install -d "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libgbm.so.* \ "$subpkgdir"/usr/lib/ } proc _mv_dri { install -d "$subpkgdir"/$_dri_driverdir while [ $# -gt 0 ] { mv "$pkgdir"/$_dri_driverdir/$(1).so \ "$subpkgdir"/$_dri_driverdir/ || return 1 shift } } proc _mv_vdpau { var i = '' install -d "$subpkgdir"/usr/lib/vdpau for i in [@Argv] { mv "$pkgdir"/usr/lib/vdpau/libvdpau_$i.* \ "$subpkgdir"/usr/lib/vdpau/ || return 1 } } proc _mv_gpipe { return 0 # http://cgit.freedesktop.org/mesa/mesa/commit/?id=44ec468e8033553c26a112cebba41c343db00eb1 # https://code.google.com/p/chromium/issues/detail?id=412089 # local i # install -d "$subpkgdir"/usr/lib/gallium-pipe # for i in "$@"; do # mv "$pkgdir"/usr/lib/gallium-pipe/pipe_$i.* \ # "$subpkgdir"/usr/lib/gallium-pipe/ || return 1 # done } proc _dri { var n = $(subpkgname##*-dri-) global pkgdesc := ""Mesa DRI driver for $n"" matchstr $n { ati { _mv_dri radeon_dri r200_dri r300_dri r600_dri radeonsi_dri \ && _mv_vdpau r300 r600 radeonsi \ && _mv_gpipe r300 r600 } intel { _mv_dri i915_dri i965_dri } nouveau { _mv_dri nouveau_dri nouveau_vieux_dri \ && _mv_vdpau nouveau \ && _mv_gpipe nouveau } freedreno { _mv_dri msm_dri kgsl_dri } swrast { _mv_dri swrast_dri kms_swrast_dri && _mv_gpipe swrast } vmwgfx { _mv_dri vmwgfx_dri && _mv_gpipe vmwgfx } virtio { _mv_dri virtio_gpu_dri } } } proc _wayland { global pkgdesc := '"Mesa libwayland-egl library'" mkdir -p "$subpkgdir"/usr/lib mv "$pkgdir"/usr/lib/libwayland-egl.so.* "$subpkgdir"/usr/lib/ \ || return 1 } global sha512sums := '"cb8369f0edd3e17b4eee8da159b9dc487f8144d69fe4b95901e9aa6a924759866f26f91fc2ead7036707eecea41582185e7ce73d54f97bf310f198b72ee0a8e4 mesa-17.1.4.tar.xz c3d4804ebc24c7216e4c9d4995fb92e116be7f478024b44808ee134a4c93bb51d1f66fe5fb6eca254f124c4abf6f81272b027824b3e2650a9607818bf793035a glx_ro_text_segm.patch 163bb96773686a7446f40a8415acef762910afb2f4f2271d429d9cbd9e3048111c8c0023c1f072fa63f33b68b2aea9d066efd9083904265151eeccbe8ccb7227 musl-fixes.patch c7d91a660a033df91fac9c557039efc8669f0c26b2d35997d50753938b70d1af0bd110dcab3f8236eafab7d4be5dd7cd128a3e057e67e7e6a38a73fd6a7ef62e musl-fix-includes.patch 1b2edb267d8bf54f68a8d886b838933d3aed91a1a19805ed9235c3e715a1a27847891279aa9a87fa8f799d2b39a18f12072b579e7d0c39fe7901c07b5fa64e8a drmdeps.patch'" (CommandList children: [ (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgname) op:Equal rhs:{(mesa)} spids:[3])] spids: [3] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgver) op:Equal rhs:{(17.1.4)} spids:[6])] spids: [6] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:pkgrel) op:Equal rhs:{(1)} spids:[9])] spids: [9] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Mesa DRI OpenGL library"))} spids: [12] ) ] spids: [12] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:url) op: Equal rhs: {(DQ ("http://www.mesa3d.org"))} spids: [17] ) ] spids: [17] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:arch) op:Equal rhs:{(DQ (all))} spids:[22])] spids: [22] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:license) op:Equal rhs:{(DQ (LGPL))} spids:[27])] spids: [27] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:depends) op:Equal rhs:{(SQ )} spids:[32])] spids: [32] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: { (DQ ($ VSub_Name "$pkgname") ("-dev\n") ("\t") ($ VSub_Name "$pkgname") ("-dri-ati:_dri\n") ("\t") ($ VSub_Name "$pkgname") ("-dri-nouveau:_dri\n") ("\t") ($ VSub_Name "$pkgname") ("-dri-freedreno:_dri\n") ("\t") ($ VSub_Name "$pkgname") ("-dri-swrast:_dri\n") ("\t") ($ VSub_Name "$pkgname") ("-dri-vmwgfx:_dri\n") ("\t") ($ VSub_Name "$pkgname") ("-dri-virtio:_dri\n") ("\t") ($ VSub_Name "$pkgname") ("-glapi ") ($ VSub_Name "$pkgname") ("-egl ") ($ VSub_Name "$pkgname") ("-gl ") ($ VSub_Name "$pkgname") ("-gles\n") ("\t") ($ VSub_Name "$pkgname") ("-xatracker ") ($ VSub_Name "$pkgname") ("-osmesa ") ($ VSub_Name "$pkgname") ("-gbm\n") ("\t") ($ VSub_Name "$pkgname") ("-libwayland-egl:_wayland\n") ("\t") ) } spids: [34] ) ] spids: [34] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_llvmver) op:Equal rhs:{(4)} spids:[79])] spids: [79] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:depends_dev) op: Equal rhs: { (DQ ("libdrm-dev dri2proto libx11-dev libxext-dev libxxf86vm-dev\n") ("\tlibxdamage-dev libxfixes-dev libxcb-dev glproto dri3proto presentproto\n") ("\tlibxshmfence-dev") ) } spids: [82] ) ] spids: [82] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:makedepends) op: Equal rhs: { (DQ ($ VSub_Name "$depends_dev") (" expat-dev xextproto python2 libxt-dev makedepend\n") ("\ttalloc-dev py-libxml2 flex bison llvm") ($ VSub_Name "$_llvmver") ("-dev eudev-dev libvdpau-dev\n") ("\tlibxvmc-dev gettext zlib-dev wayland-dev libelf-dev py-mako\n") ("\tautoconf automake libtool") ) } spids: [89] ) ] spids: [89] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:source) op: Equal rhs: { (DQ ("https://mesa.freedesktop.org/archive/mesa-") ($ VSub_Name "$pkgver") (".tar.xz\n") ("\tglx_ro_text_segm.patch\n") ("\tmusl-fixes.patch\n") ("\tmusl-fix-includes.patch\n") ("\tdrmdeps.patch\n") ("\t") ) } spids: [100] ) ] spids: [100] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:replaces) op: Equal rhs: {(DQ (mesa-dricore))} spids: [113] ) ] spids: [113] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_dri_driverdir) op: Equal rhs: {(/usr/lib/xorg/modules/dri)} spids: [119] ) ] spids: [119] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_dri_drivers) op: Equal rhs: {(DQ ("r200,radeon,nouveau,swrast"))} spids: [122] ) ] spids: [122] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_gallium_drivers) op: Equal rhs: {(DQ ("r300,r600,radeonsi,nouveau,freedreno,svga,swrast,virgl"))} spids: [127] ) ] spids: [127] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_vulkan_drivers) op: Equal rhs: {(DQ (radeon))} spids: [132] ) ] spids: [132] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:builddir) op: Equal rhs: {(DQ ($ VSub_Name "$srcdir") (/mesa-) ($ VSub_Name "$pkgver"))} spids: [138] ) ] spids: [138] ) (Assignment keyword: Assign_None pairs: [(assign_pair lhs:(LhsName name:_arch_opts) op:Equal rhs:{(SQ )} spids:[146])] spids: [146] ) (Case to_match: {(DQ ($ VSub_Name "$CARCH"))} arms: [ (case_arm pat_list: [{(x86) (Lit_Other "*")}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_dri_drivers) op: Equal rhs: {(DQ (${ VSub_Name _dri_drivers) (",i915,i965"))} spids: [162] ) ] spids: [162] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_vulcan_drivers) op: Equal rhs: {(DQ ($ VSub_Name "$_vulcan_drivers") (",intel"))} spids: [171] ) ] spids: [171] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:subpackages) op: Equal rhs: { (DQ ($ VSub_Name "$subpackages") (" ") ($ VSub_Name "$pkgname") ("-dri-intel:_dri") ) } spids: [178] ) ] spids: [178] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_arch_opts) op: Equal rhs: {(DQ (--enable-dri3))} spids: [187] ) ] spids: [187] ) ] spids: [157 159 193 -1] ) (case_arm pat_list: [{(arm) (Lit_Other "*")}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:_gallium_drivers) op: Equal rhs: {(DQ (${ VSub_Name _gallium_drivers) (",vc4"))} spids: [200] ) ] spids: [200] ) (Case to_match: {(DQ ($ VSub_Name "$CARCH"))} arms: [ (case_arm pat_list: [{(armhf)}] action: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:CFLAGS) op: Equal rhs: {(DQ ($ VSub_Name "$CFLAGS") (" -mfpu=neon"))} spids: [221] ) ] spids: [221] ) ] spids: [218 219 226 -1] ) ] spids: [209 215 229] ) ] spids: [195 197 232 -1] ) ] spids: [149 155 234] ) (FuncDef name: prepare body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (ForEach iter_name: i iter_words: [{($ VSub_Name "$source")}] do_arg_iter: False body: (DoGroup children: [ (Case to_match: {($ VSub_Name "$i")} arms: [ (case_arm pat_list: [{(Lit_Other "*") (.patch)}] action: [ (Sentence child: (C {(msg)} {($ VSub_Name "$i")}) terminator: ) (AndOr children: [ (C {(patch)} {(-p1)} {(-i)} {(DQ ($ VSub_Name "$srcdir")) (/) ($ VSub_Name "$i")} ) (ControlFlow token: arg_word: {(1)} ) ] op_id: Op_DPipe ) ] spids: [270 272 296 -1] ) ] spids: [263 267 299] ) ] spids: [260 302] ) spids: [256 258] ) (AndOr children: [ (C {(libtoolize)} {(--force)}) (AndOr children: [ (C {(aclocal)}) (AndOr children: [ (C {(automake)} {(--add-missing)}) (AndOr children: [ (C {(autoreconf)}) (ControlFlow token: arg_word: {(1)} ) ] op_id: Op_DPipe ) ] op_id: Op_DAmp ) ] op_id: Op_DAmp ) ] op_id: Op_DAmp ) ] spids: [241] ) spids: [237 240] ) (FuncDef name: build body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (C {(export)} {(Lit_VarLike "CFLAGS=") (DQ ($ VSub_Name "$CFLAGS") (" -D_XOPEN_SOURCE=700"))} ) (AndOr children: [ (C {(./configure)} {(--build) (Lit_Other "=") ($ VSub_Name "$CBUILD")} {(--host) (Lit_Other "=") ($ VSub_Name "$CHOST")} {(--prefix) (Lit_Other "=") (/usr)} {(--sysconfdir) (Lit_Other "=") (/etc)} {(--with-dri-driverdir) (Lit_Other "=") ($ VSub_Name "$_dri_driverdir")} {(--disable-asm)} {(--disable-xvmc)} {(--enable-glx-rts)} {(--with-gallium-drivers) (Lit_Other "=") (${ VSub_Name _gallium_drivers)} {(--with-dri-drivers) (Lit_Other "=") (${ VSub_Name _dri_drivers)} {(--with-vulcan-drivers) (Lit_Other "=") (${ VSub_Name _vulkan_drivers)} {(--with-llvm-prefix) (Lit_Other "=") (/usr/lib/llvm) ($ VSub_Name "$_llvmver")} {(--enable-llvm-shared-libs)} {(--enable-gallium-llvm)} {(--with-egl-platforms) (Lit_Other "=") (x11) (Lit_Comma ",") (drm) (Lit_Comma ",") (wayland) } {(--enable-shared-glapi)} {(--enable-gbm)} {(--disable-glx-tls)} {(--disable-nine)} {(--enable-dri)} {(--enable-glx)} {(--enable-osmesa)} {(--enable-gles1)} {(--enable-gles2)} {(--enable-egl)} {(--enable-texture-float)} {(--enable-xa)} {(--enable-vdpau)} {($ VSub_Name "$_arch_opts")} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) (AndOr children: [(C {(make)}) (ControlFlow token: arg_word:{(1)})] op_id: Op_DPipe ) ] spids: [342] ) spids: [338 341] ) (FuncDef name: package body: (BraceGroup children: [ (C {(cd)} {(DQ ($ VSub_Name "$builddir"))}) (AndOr children: [ (C {(make)} {(-j1)} {(Lit_VarLike "DESTDIR=") (DQ ($ VSub_Name "$pkgdir"))} {(install)}) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [536] ) spids: [532 535] ) (FuncDef name: egl body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:replaces) op: Equal rhs: {(DQ (mesa))} spids: [573] ) ] spids: [573] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Mesa libEGL runtime libraries"))} spids: [579] ) ] spids: [579] ) (C {(install)} {(-d)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib)}) (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/lib/libEGL.so) (Lit_Other "*")} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib/)} ) ] spids: [570] ) spids: [566 569] ) (FuncDef name: gl body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:replaces) op: Equal rhs: {(DQ (mesa))} spids: [620] ) ] spids: [620] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Mesa libGL runtime libraries"))} spids: [626] ) ] spids: [626] ) (C {(install)} {(-d)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib)}) (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/lib/libGL.so) (Lit_Other "*")} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib/)} ) ] spids: [617] ) spids: [613 616] ) (FuncDef name: glapi body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:replaces) op: Equal rhs: {(DQ ($ VSub_Name "$pkgname") (-gles))} spids: [667] ) ] spids: [667] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Mesa shared glapi"))} spids: [674] ) ] spids: [674] ) (C {(install)} {(-d)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib)}) (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/lib/libglapi.so.) (Lit_Other "*")} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib/)} ) ] spids: [664] ) spids: [660 663] ) (FuncDef name: gles body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:replaces) op: Equal rhs: {(DQ (mesa))} spids: [715] ) ] spids: [715] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Mesa libGLESv2 runtime libraries"))} spids: [721] ) ] spids: [721] ) (C {(install)} {(-d)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib)}) (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/lib/libGLES) (Lit_Other "*") (.so) (Lit_Other "*")} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib/)} ) ] spids: [712] ) spids: [708 711] ) (FuncDef name: xatracker body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Mesa XA state tracker for vmware"))} spids: [764] ) ] spids: [764] ) (C {(install)} {(-d)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib)}) (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/lib/libxatracker) (Lit_Other "*") (.so.) (Lit_Other "*") } {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib/)} ) ] spids: [761] ) spids: [757 760] ) (FuncDef name: osmesa body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Mesa offscreen rendering libraries"))} spids: [807] ) ] spids: [807] ) (C {(install)} {(-d)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib)}) (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/lib/libOSMesa.so.) (Lit_Other "*")} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib/)} ) ] spids: [804] ) spids: [800 803] ) (FuncDef name: gbm body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Mesa gbm library"))} spids: [848] ) ] spids: [848] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:replaces) op: Equal rhs: {(DQ (mesa))} spids: [854] ) ] spids: [854] ) (C {(install)} {(-d)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib)}) (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/lib/libgbm.so.) (Lit_Other "*")} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib/)} ) ] spids: [845] ) spids: [841 844] ) (FuncDef name: _mv_dri body: (BraceGroup children: [ (C {(install)} {(-d)} {(DQ ($ VSub_Name "$subpkgdir")) (/) ($ VSub_Name "$_dri_driverdir")}) (While cond: [ (Sentence child: (C {(Lit_Other "[")} {($ VSub_Pound "$#")} {(-gt)} {(0)} {(Lit_Other "]")}) terminator: ) ] body: (DoGroup children: [ (AndOr children: [ (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/) ($ VSub_Name "$_dri_driverdir") (/) (${ VSub_Number 1) (.so) } {(DQ ($ VSub_Name "$subpkgdir")) (/) ($ VSub_Name "$_dri_driverdir") (/)} ) (ControlFlow token: arg_word: {(1)} ) ] op_id: Op_DPipe ) (C {(shift)}) ] spids: [920 955] ) ) ] spids: [892] ) spids: [888 891] ) (FuncDef name: _mv_vdpau body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [(assign_pair lhs:(LhsName name:i) op:Equal spids:[969])] spids: [967] ) (C {(install)} {(-d)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib/vdpau)}) (ForEach iter_name: i iter_words: [{(DQ ($ VSub_At "$@"))}] do_arg_iter: False body: (DoGroup children: [ (AndOr children: [ (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/lib/vdpau/libvdpau_) ($ VSub_Name "$i") (.) (Lit_Other "*") } {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib/vdpau/)} ) (ControlFlow token: arg_word: {(1)} ) ] op_id: Op_DPipe ) ] spids: [993 1020] ) spids: [987 991] ) ] spids: [964] ) spids: [960 963] ) (FuncDef name: _mv_gpipe body: (BraceGroup children: [(ControlFlow token: arg_word:{(0)})] spids: [1029] ) spids: [1025 1028] ) (FuncDef name: _dri body: (BraceGroup children: [ (Assignment keyword: Assign_Local pairs: [ (assign_pair lhs: (LhsName name:n) op: Equal rhs: { (BracedVarSub token: suffix_op: (StringUnary op_id:VOp1_DPound arg_word:{("*-dri-")}) spids: [1075 1079] ) } spids: [1074] ) ] spids: [1072] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Mesa DRI driver for ") ($ VSub_Name "$n"))} spids: [1082] ) ] spids: [1082] ) (Case to_match: {($ VSub_Name "$n")} arms: [ (case_arm pat_list: [{(ati)}] action: [ (AndOr children: [ (C {(_mv_dri)} {(radeon_dri)} {(r200_dri)} {(r300_dri)} {(r600_dri)} {(radeonsi_dri)} ) (AndOr children: [ (C {(_mv_vdpau)} {(r300)} {(r600)} {(radeonsi)}) (C {(_mv_gpipe)} {(r300)} {(r600)}) ] op_id: Op_DAmp ) ] op_id: Op_DAmp ) ] spids: [1096 1097 1135 -1] ) (case_arm pat_list: [{(intel)}] action: [(C {(_mv_dri)} {(i915_dri)} {(i965_dri)})] spids: [1138 1139 1149 -1] ) (case_arm pat_list: [{(nouveau)}] action: [ (AndOr children: [ (C {(_mv_dri)} {(nouveau_dri)} {(nouveau_vieux_dri)}) (AndOr children: [(C {(_mv_vdpau)} {(nouveau)}) (C {(_mv_gpipe)} {(nouveau)})] op_id: Op_DAmp ) ] op_id: Op_DAmp ) ] spids: [1152 1153 1179 -1] ) (case_arm pat_list: [{(freedreno)}] action: [(C {(_mv_dri)} {(msm_dri)} {(kgsl_dri)})] spids: [1182 1183 1194 -1] ) (case_arm pat_list: [{(swrast)}] action: [ (AndOr children: [ (C {(_mv_dri)} {(swrast_dri)} {(kms_swrast_dri)}) (C {(_mv_gpipe)} {(swrast)}) ] op_id: Op_DAmp ) ] spids: [1197 1198 1214 -1] ) (case_arm pat_list: [{(vmwgfx)}] action: [ (AndOr children: [(C {(_mv_dri)} {(vmwgfx_dri)}) (C {(_mv_gpipe)} {(vmwgfx)})] op_id: Op_DAmp ) ] spids: [1217 1218 1232 -1] ) (case_arm pat_list: [{(virtio)}] action: [(C {(_mv_dri)} {(virtio_gpu_dri)})] spids: [1235 1236 1244 -1] ) ] spids: [1089 1093 1247] ) ] spids: [1069] ) spids: [1065 1068] ) (FuncDef name: _wayland body: (BraceGroup children: [ (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:pkgdesc) op: Equal rhs: {(DQ ("Mesa libwayland-egl library"))} spids: [1259] ) ] spids: [1259] ) (C {(mkdir)} {(-p)} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib)}) (AndOr children: [ (C {(mv)} {(DQ ($ VSub_Name "$pkgdir")) (/usr/lib/libwayland-egl.so.) (Lit_Other "*")} {(DQ ($ VSub_Name "$subpkgdir")) (/usr/lib/)} ) (ControlFlow token: arg_word:{(1)}) ] op_id: Op_DPipe ) ] spids: [1256] ) spids: [1252 1255] ) (Assignment keyword: Assign_None pairs: [ (assign_pair lhs: (LhsName name:sha512sums) op: Equal rhs: { (DQ ( "cb8369f0edd3e17b4eee8da159b9dc487f8144d69fe4b95901e9aa6a924759866f26f91fc2ead7036707eecea41582185e7ce73d54f97bf310f198b72ee0a8e4 mesa-17.1.4.tar.xz\n" ) ( "c3d4804ebc24c7216e4c9d4995fb92e116be7f478024b44808ee134a4c93bb51d1f66fe5fb6eca254f124c4abf6f81272b027824b3e2650a9607818bf793035a glx_ro_text_segm.patch\n" ) ( "163bb96773686a7446f40a8415acef762910afb2f4f2271d429d9cbd9e3048111c8c0023c1f072fa63f33b68b2aea9d066efd9083904265151eeccbe8ccb7227 musl-fixes.patch\n" ) ( "c7d91a660a033df91fac9c557039efc8669f0c26b2d35997d50753938b70d1af0bd110dcab3f8236eafab7d4be5dd7cd128a3e057e67e7e6a38a73fd6a7ef62e musl-fix-includes.patch\n" ) ( "1b2edb267d8bf54f68a8d886b838933d3aed91a1a19805ed9235c3e715a1a27847891279aa9a87fa8f799d2b39a18f12072b579e7d0c39fe7901c07b5fa64e8a drmdeps.patch" ) ) } spids: [1299] ) ] spids: [1299] ) ] )