--- admin/PlamoBuild-template-20180815 2018-08-15 16:18:50.000000000 +0900 +++ plamo/02_x11/Xwindow.txz/mesa/PlamoBuild.mesa-11.0.9 2020-11-14 23:44:20.000000000 +0900 @@ -1,19 +1,28 @@ #!/bin/sh ###################################################################### -url="" +url="ftp://ftp.freedesktop.org/pub/mesa/11.0.9/mesa-11.0.9.tar.xz + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/02_x11/Xwindow.txz/MesaLib-10.1.0-svga_texture-1.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/02_x11/Xwindow.txz/MesaLib-9.1.6-add_xdemos-1.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/02_x11/Xwindow.txz/Mesa-11.0.5-x86_tls_entry.patch.gz + ftp://plamo.linet.gr.jp/pub/Plamo-src/plamo/02_x11/Xwindow.txz/Mesa-11.0.5-nouveau_unorderd.patch.gz" verify= digest= branch= commitid= -pkgbase= -vers= +pkgbase=mesa +vers=11.0.9 arch=`uname -m` -build=P1 +build=P4 src=$pkgbase-$vers -patchfiles="" -OPT_CONFIG="" -DOCS="README" +patchfiles="MesaLib-10.1.0-svga_texture-1.patch.gz + MesaLib-9.1.6-add_xdemos-1.patch.gz + Mesa-11.0.5-x86_tls_entry.patch.gz + Mesa-11.0.5-nouveau_unorderd.patch.gz" +OPT_CONFIG="--enable-texture-float --enable-gles1 --enable-gles2 + --enable-osmesa --enable-xa --enable-gbm --enable-glx-tls + --enable-llvm-shared-libs --with-egl-platforms=drm,x11" +DOCS="" template=20180815 tmplurl=ftp://plamo.linet.gr.jp/pub/Plamo-src/admin ###################################################################### @@ -42,7 +51,11 @@ if [ -x configure ] ; then ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var \ --libdir='${exec_prefix}'/$libdir --infodir='${prefix}'/share/info \ - --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} + --mandir='${prefix}'/share/man ${OPT_CONFIG[$i]} \ + --with-gallium-drivers=`[ $arch == armv7l ] && echo vc4,swrast \ + || echo nouveau,r300,r600,radeonsi,svga,swrast,i915,ilo` \ + `[ $arch == armv7l ] && echo --with-dri-drivers=swrast` \ + CXXFLAGS="-std=c++11 -g -O2" fi done fi @@ -65,16 +78,33 @@ make install DESTDIR=$P fi done + ln -s gallium_drv_video.so $P/usr/$libdir/dri/r600_drv_video.so touch $W/i.et cd $W TZ=UTC find $P ! -type l -newer i.st ! -newer i.et \ -exec touch -t `date -u '+%m%d0000'` {} \; compress + strip_libdir $P/usr/$libdir/dri + strip_libdir $P/usr/$libdir/vdpau + install -d $docdir/$src setup_docdir convert_links - tar cvpf $pkg.tar -C $P `cd $P ; find usr/bin | tail -n+2` - tar rvpf $pkg.tar -C $P `cd $P ; find usr/share/man/man1 | tail -n+2` + touch -t `date '+%m%d0900'` $P/usr/$libdir/{dri,vdpau} + tar cvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -name libglapi*` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -name libGLES*` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir/pkgconfig | tail -n+2` + tar rvpf $pkg.tar -C $P usr/$libdir/dri + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -name libOSMesa*` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -name libGL*` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -name libgbm*` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -name libEGL*` + tar rvpf $pkg.tar -C $P usr/$libdir/vdpau + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -name libxatracker*` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/$libdir -name libXvMC*` + tar rvpf $pkg.tar -C $P `cd $P ; find usr/include -maxdepth 1 | tail -n+2` + tar rvpf $pkg.tar -C $P etc/drirc tar rvpf $pkg.tar -C $P usr/share/doc/$src + tar rvpf $pkg.tar -C $P install/doinst.sh TZ=UTC touch -t `date -u '+%m%d0000'` $pkg.tar xz $pkg.tar ; touch $pkg.tar.xz ; mv $pkg.tar.xz $pkg.txz cleanup