mesa:rebuild
This commit is contained in:
Regular → Executable
+85
-35
@@ -11,57 +11,105 @@ from pisi.actionsapi import shelltools
|
||||
|
||||
Libdir = "/usr/lib32" if get.buildTYPE() == "emul32" else "/usr/lib"
|
||||
|
||||
|
||||
def setup():
|
||||
autotools.autoreconf("-vif")
|
||||
#autotools.autoreconf("-vif")
|
||||
|
||||
# --enable-sysfs option provides better hardware information support with "lspci"
|
||||
# --enable-32-bit option is not present anymore. Although build fails in emul32. With --disable-asm option, not fail. Needs to be tested.
|
||||
|
||||
options ="\
|
||||
--with-dri-driverdir=/usr/lib/xorg/modules/dri \
|
||||
--with-gallium-drivers=r300,r600,radeonsi,nouveau,svga,swrast,virgl \
|
||||
--with-dri-drivers=i915,i965,r200,radeon,nouveau,swrast \
|
||||
--with-platforms=x11,drm,wayland \
|
||||
--enable-xa \
|
||||
--enable-dri \
|
||||
--enable-egl \
|
||||
--enable-gbm \
|
||||
--enable-glx \
|
||||
--enable-dri3 \
|
||||
--enable-gles1 \
|
||||
--enable-gles2 \
|
||||
--enable-vdpau \
|
||||
--enable-osmesa \
|
||||
--enable-xvmc \
|
||||
--enable-glx-tls \
|
||||
--enable-llvm \
|
||||
--enable-nine \
|
||||
--enable-libunwind \
|
||||
--enable-llvm-shared-libs \
|
||||
--enable-shared-glapi \
|
||||
--enable-texture-float \
|
||||
"
|
||||
shelltools.system("sed -i 's|python2|python|g' \
|
||||
meson.build \
|
||||
src/meson.build")
|
||||
shelltools.system("sed -i 's|prog_python2|prog_python|g' \
|
||||
src/util/xmlpool/meson.build \
|
||||
src/util/meson.build \
|
||||
src/mapi/glapi/gen/meson.build \
|
||||
src/mapi/shared-glapi/meson.build \
|
||||
src/mapi/es1api/meson.build \
|
||||
src/mapi/es2api/meson.build \
|
||||
src/compiler/meson.build \
|
||||
src/compiler/spirv/meson.build \
|
||||
src/compiler/nir/meson.build \
|
||||
src/compiler/glsl/meson.build \
|
||||
src/vulkan/util/meson.build \
|
||||
src/amd/common/meson.build \
|
||||
src/amd/vulkan/meson.build \
|
||||
src/intel/genxml/meson.build \
|
||||
src/intel/isl/meson.build \
|
||||
src/intel/compiler/meson.build \
|
||||
src/intel/vulkan/meson.build \
|
||||
src/mesa/main/meson.build \
|
||||
src/mesa/meson.build \
|
||||
src/mesa/drivers/dri/i965/meson.build \
|
||||
src/egl/meson.build \
|
||||
src/gallium/auxiliary/meson.build \
|
||||
src/gallium/drivers/r600/meson.build \
|
||||
src/gallium/drivers/radeonsi/meson.build")
|
||||
|
||||
shelltools.makedirs("build")
|
||||
shelltools.cd("build")
|
||||
options = "meson --prefix=/usr \
|
||||
--sysconfdir=/etc \
|
||||
--buildtype=release \
|
||||
-Ddri-drivers-path=/usr/lib/xorg/modules/dri \
|
||||
-Db_ndebug=true \
|
||||
-Dplatforms=x11,wayland,drm,surfaceless \
|
||||
-Ddri3=true \
|
||||
-Ddri-drivers=i915,i965,r200,nouveau \
|
||||
-Dgallium-drivers=r300,r600,nouveau,radeonsi,svga,swrast,virgl \
|
||||
-Dgallium-extra-hud=true \
|
||||
-Dgallium-vdpau=true \
|
||||
-Dgallium-xvmc=true \
|
||||
-Dgallium-va=false \
|
||||
-Dgallium-xa=true \
|
||||
-Dgallium-nine=true \
|
||||
-Dvulkan-drivers=amd,intel \
|
||||
-Dshared-glapi=true \
|
||||
-Dgles1=true \
|
||||
-Dgles2=true \
|
||||
-Dopengl=true \
|
||||
-Dgbm=true \
|
||||
-Dglx=dri \
|
||||
-Degl=true \
|
||||
-Dglvnd=false \
|
||||
-Dasm=true \
|
||||
-Dllvm=true \
|
||||
-Dvalgrind=false \
|
||||
-Dlibunwind=true \
|
||||
-Dbuild-tests=false \
|
||||
-Dtexture-float=true \
|
||||
-Dosmesa=gallium \
|
||||
-Dlmsensors=false \
|
||||
-Dswr-arches=avx,avx2"
|
||||
|
||||
|
||||
|
||||
if get.buildTYPE() == "emul32":
|
||||
shelltools.export("CC", "gcc -m32")
|
||||
shelltools.export("CXX", "g++ -m32")
|
||||
shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig")
|
||||
shelltools.export("LLVM_CONFIG","/usr/bin/llvm-config-32")
|
||||
options += " --with-dri-driverdir=/usr/lib32/xorg/modules/dri \
|
||||
--with-clang-libdir=/usr/lib32 \
|
||||
--disable-asm "
|
||||
options += " --libdir=/usr/lib32 \
|
||||
-Ddri-drivers-path=/usr/lib32/xorg/modules/dri \
|
||||
-Dclang-libdir-path=/usr/lib32 \
|
||||
-Dgallium-opencl=disabled"
|
||||
|
||||
elif get.ARCH() == "x86_64":
|
||||
options += " --with-clang-libdir=/usr/lib \
|
||||
--enable-omx-bellagio \
|
||||
--enable-opencl-icd "
|
||||
options += " -Dclang-libdir-path=/usr/lib \
|
||||
-Dgallium-omx=bellagio \
|
||||
-Dgallium-opencl=disabled .."
|
||||
|
||||
autotools.configure(options)
|
||||
pisitools.dosed("libtool","( -shared )", " -Wl,--as-needed\\1")
|
||||
shelltools.system(options)
|
||||
#pisitools.dosed("libtool","( -shared )", " -Wl,--as-needed\\1")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
shelltools.cd("build")
|
||||
shelltools.system("ninja")
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
shelltools.cd("build")
|
||||
shelltools.system("DESTDIR=%s ninja install" % get.installDIR())
|
||||
|
||||
pisitools.domove("%s/libGL.so.1.2.0" % Libdir, "%s/mesa" % Libdir)
|
||||
pisitools.dosym("libGL.so.1.2.0", "%s/libGL.so.1.2" % Libdir)
|
||||
@@ -70,6 +118,8 @@ def install():
|
||||
#pisitools.remove("/usr/lib32/pkgconfig/wayland-egl.pc")
|
||||
#pisitools.remove("/usr/lib32/libwayland-egl.so*")
|
||||
return
|
||||
|
||||
shelltools.cd("..")
|
||||
|
||||
#pisitools.dodoc("docs/COPYING")
|
||||
pisitools.dohtml("docs/*")
|
||||
|
||||
@@ -0,0 +1,79 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import get
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import shelltools
|
||||
|
||||
|
||||
Libdir = "/usr/lib32" if get.buildTYPE() == "emul32" else "/usr/lib"
|
||||
|
||||
def setup():
|
||||
autotools.autoreconf("-vif")
|
||||
|
||||
# --enable-sysfs option provides better hardware information support with "lspci"
|
||||
# --enable-32-bit option is not present anymore. Although build fails in emul32. With --disable-asm option, not fail. Needs to be tested.
|
||||
|
||||
options ="\
|
||||
--with-dri-driverdir=/usr/lib/xorg/modules/dri \
|
||||
--with-gallium-drivers=r300,r600,radeonsi,nouveau,svga,swrast,virgl \
|
||||
--with-dri-drivers=i915,i965,r200,radeon,nouveau,swrast \
|
||||
--with-platforms=x11,drm,wayland \
|
||||
--enable-xa \
|
||||
--enable-dri \
|
||||
--enable-egl \
|
||||
--enable-gbm \
|
||||
--enable-glx \
|
||||
--enable-dri3 \
|
||||
--enable-gles1 \
|
||||
--enable-gles2 \
|
||||
--enable-vdpau \
|
||||
--enable-osmesa \
|
||||
--enable-xvmc \
|
||||
--enable-glx-tls \
|
||||
--enable-llvm \
|
||||
--enable-nine \
|
||||
--enable-libunwind \
|
||||
--enable-llvm-shared-libs \
|
||||
--enable-shared-glapi \
|
||||
--enable-texture-float \
|
||||
"
|
||||
|
||||
if get.buildTYPE() == "emul32":
|
||||
shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig")
|
||||
shelltools.export("LLVM_CONFIG","/usr/bin/llvm-config-32")
|
||||
options += " --with-dri-driverdir=/usr/lib32/xorg/modules/dri \
|
||||
--with-clang-libdir=/usr/lib32 \
|
||||
--disable-asm "
|
||||
|
||||
elif get.ARCH() == "x86_64":
|
||||
options += " --with-clang-libdir=/usr/lib \
|
||||
--enable-omx-bellagio \
|
||||
--enable-opencl-icd "
|
||||
|
||||
autotools.configure(options)
|
||||
pisitools.dosed("libtool","( -shared )", " -Wl,--as-needed\\1")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.domove("%s/libGL.so.1.2.0" % Libdir, "%s/mesa" % Libdir)
|
||||
pisitools.dosym("libGL.so.1.2.0", "%s/libGL.so.1.2" % Libdir)
|
||||
|
||||
if get.buildTYPE() == "emul32":
|
||||
#pisitools.remove("/usr/lib32/pkgconfig/wayland-egl.pc")
|
||||
#pisitools.remove("/usr/lib32/libwayland-egl.so*")
|
||||
return
|
||||
|
||||
#pisitools.dodoc("docs/COPYING")
|
||||
pisitools.dohtml("docs/*")
|
||||
|
||||
#pisitools.remove("/usr/lib/libwayland-egl.so*")
|
||||
#pisitools.remove("/usr/lib/pkgconfig/wayland-egl.pc")
|
||||
|
||||
@@ -15,6 +15,7 @@
|
||||
<Description>Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics.</Description>
|
||||
<Archive sha1sum="1ada7d5fc5fabca63c78396b5afa587b94b9f2e0" type="tarxz">https://mesa.freedesktop.org/archive/mesa-18.2.5.tar.xz</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>meson</Dependency>
|
||||
<Dependency>zlib-devel</Dependency>
|
||||
<Dependency>xorg-proto</Dependency>
|
||||
<Dependency>openssl-devel</Dependency>
|
||||
@@ -35,9 +36,9 @@
|
||||
<Dependency>eudev-devel</Dependency>
|
||||
<Dependency>nettle-devel</Dependency>
|
||||
<Dependency>python-mako</Dependency>
|
||||
<Dependency versionFrom="5.0.1">llvm</Dependency>
|
||||
<Dependency versionFrom="5.0.1">llvm-libs</Dependency>
|
||||
<Dependency versionFrom="5.0.1">llvm-clang-devel</Dependency>
|
||||
<Dependency versionFrom="6.0.1">llvm</Dependency>
|
||||
<Dependency versionFrom="6.0.1">llvm-libs</Dependency>
|
||||
<Dependency versionFrom="6.0.1">llvm-clang-devel</Dependency>
|
||||
<Dependency versionFrom="1.2">libxshmfence-devel</Dependency>
|
||||
<Dependency>automake</Dependency>
|
||||
<Dependency>libunwind-devel</Dependency>
|
||||
@@ -82,15 +83,16 @@
|
||||
<Dependency>nettle</Dependency>
|
||||
<Dependency>libunwind</Dependency>
|
||||
<Dependency versionFrom="1.2">libxshmfence</Dependency>
|
||||
<Dependency versionFrom="5.0.1">llvm</Dependency>
|
||||
<Dependency versionFrom="5.0.1">llvm-clang</Dependency>
|
||||
<Dependency versionFrom="5.0.1">llvm-libs</Dependency>
|
||||
<Dependency versionFrom="6.0.1">llvm</Dependency>
|
||||
<Dependency versionFrom="6.0.1">llvm-clang</Dependency>
|
||||
<Dependency versionFrom="6.0.1">llvm-libs</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="config">/etc</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="library">/usr/lib/libGL.so.1.2</Path>
|
||||
<Path fileType="data">/usr/share/vulkan/icd.d</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
<AdditionalFiles>
|
||||
@@ -154,7 +156,7 @@
|
||||
<Dependency>libxshmfence-32bit</Dependency>
|
||||
<Dependency>nettle-32bit</Dependency>
|
||||
<Dependency>libunwind-32bit</Dependency>
|
||||
<Dependency versionFrom="5.0.1">llvm-32bit</Dependency>
|
||||
<Dependency versionFrom="6.0.1">llvm-32bit</Dependency>
|
||||
<Dependency>libXrandr-32bit</Dependency>
|
||||
</BuildDependencies>
|
||||
<RuntimeDependencies>
|
||||
@@ -182,7 +184,7 @@
|
||||
<Dependency>wayland-32bit</Dependency>
|
||||
<Dependency>libunwind-32bit</Dependency>
|
||||
<Dependency release="current">mesa</Dependency>
|
||||
<Dependency versionFrom="5.0.1">llvm-32bit</Dependency>
|
||||
<Dependency versionFrom="6.0.1">llvm-32bit</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="library">/usr/lib32</Path>
|
||||
@@ -193,6 +195,13 @@
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="12">
|
||||
<Date>2018-12-15</Date>
|
||||
<Version>18.2.5</Version>
|
||||
<Comment>Rebuild llvm.</Comment>
|
||||
<Name>Mustafa Cinasal</Name>
|
||||
<Email>muscnsl@gmail.com</Email>
|
||||
</Update>
|
||||
<Update release="11">
|
||||
<Date>2018-11-17</Date>
|
||||
<Version>18.2.5</Version>
|
||||
|
||||
Reference in New Issue
Block a user