Regular → Executable
+85
-35
@@ -11,57 +11,105 @@ from pisi.actionsapi import shelltools
|
|||||||
|
|
||||||
Libdir = "/usr/lib32" if get.buildTYPE() == "emul32" else "/usr/lib"
|
Libdir = "/usr/lib32" if get.buildTYPE() == "emul32" else "/usr/lib"
|
||||||
|
|
||||||
|
|
||||||
def setup():
|
def setup():
|
||||||
autotools.autoreconf("-vif")
|
#autotools.autoreconf("-vif")
|
||||||
|
|
||||||
# --enable-sysfs option provides better hardware information support with "lspci"
|
# --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.
|
# --enable-32-bit option is not present anymore. Although build fails in emul32. With --disable-asm option, not fail. Needs to be tested.
|
||||||
|
|
||||||
options ="\
|
shelltools.system("sed -i 's|python2|python|g' \
|
||||||
--with-dri-driverdir=/usr/lib/xorg/modules/dri \
|
meson.build \
|
||||||
--with-gallium-drivers=r300,r600,radeonsi,nouveau,svga,swrast,virgl \
|
src/meson.build")
|
||||||
--with-dri-drivers=i915,i965,r200,radeon,nouveau,swrast \
|
shelltools.system("sed -i 's|prog_python2|prog_python|g' \
|
||||||
--with-platforms=x11,drm,wayland \
|
src/util/xmlpool/meson.build \
|
||||||
--enable-xa \
|
src/util/meson.build \
|
||||||
--enable-dri \
|
src/mapi/glapi/gen/meson.build \
|
||||||
--enable-egl \
|
src/mapi/shared-glapi/meson.build \
|
||||||
--enable-gbm \
|
src/mapi/es1api/meson.build \
|
||||||
--enable-glx \
|
src/mapi/es2api/meson.build \
|
||||||
--enable-dri3 \
|
src/compiler/meson.build \
|
||||||
--enable-gles1 \
|
src/compiler/spirv/meson.build \
|
||||||
--enable-gles2 \
|
src/compiler/nir/meson.build \
|
||||||
--enable-vdpau \
|
src/compiler/glsl/meson.build \
|
||||||
--enable-osmesa \
|
src/vulkan/util/meson.build \
|
||||||
--enable-xvmc \
|
src/amd/common/meson.build \
|
||||||
--enable-glx-tls \
|
src/amd/vulkan/meson.build \
|
||||||
--enable-llvm \
|
src/intel/genxml/meson.build \
|
||||||
--enable-nine \
|
src/intel/isl/meson.build \
|
||||||
--enable-libunwind \
|
src/intel/compiler/meson.build \
|
||||||
--enable-llvm-shared-libs \
|
src/intel/vulkan/meson.build \
|
||||||
--enable-shared-glapi \
|
src/mesa/main/meson.build \
|
||||||
--enable-texture-float \
|
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":
|
if get.buildTYPE() == "emul32":
|
||||||
|
shelltools.export("CC", "gcc -m32")
|
||||||
|
shelltools.export("CXX", "g++ -m32")
|
||||||
shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig")
|
shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig")
|
||||||
shelltools.export("LLVM_CONFIG","/usr/bin/llvm-config-32")
|
shelltools.export("LLVM_CONFIG","/usr/bin/llvm-config-32")
|
||||||
options += " --with-dri-driverdir=/usr/lib32/xorg/modules/dri \
|
options += " --libdir=/usr/lib32 \
|
||||||
--with-clang-libdir=/usr/lib32 \
|
-Ddri-drivers-path=/usr/lib32/xorg/modules/dri \
|
||||||
--disable-asm "
|
-Dclang-libdir-path=/usr/lib32 \
|
||||||
|
-Dgallium-opencl=disabled"
|
||||||
|
|
||||||
elif get.ARCH() == "x86_64":
|
elif get.ARCH() == "x86_64":
|
||||||
options += " --with-clang-libdir=/usr/lib \
|
options += " -Dclang-libdir-path=/usr/lib \
|
||||||
--enable-omx-bellagio \
|
-Dgallium-omx=bellagio \
|
||||||
--enable-opencl-icd "
|
-Dgallium-opencl=disabled .."
|
||||||
|
|
||||||
autotools.configure(options)
|
shelltools.system(options)
|
||||||
pisitools.dosed("libtool","( -shared )", " -Wl,--as-needed\\1")
|
#pisitools.dosed("libtool","( -shared )", " -Wl,--as-needed\\1")
|
||||||
|
|
||||||
def build():
|
def build():
|
||||||
autotools.make()
|
shelltools.cd("build")
|
||||||
|
shelltools.system("ninja")
|
||||||
|
|
||||||
def install():
|
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.domove("%s/libGL.so.1.2.0" % Libdir, "%s/mesa" % Libdir)
|
||||||
pisitools.dosym("libGL.so.1.2.0", "%s/libGL.so.1.2" % Libdir)
|
pisitools.dosym("libGL.so.1.2.0", "%s/libGL.so.1.2" % Libdir)
|
||||||
@@ -71,6 +119,8 @@ def install():
|
|||||||
#pisitools.remove("/usr/lib32/libwayland-egl.so*")
|
#pisitools.remove("/usr/lib32/libwayland-egl.so*")
|
||||||
return
|
return
|
||||||
|
|
||||||
|
shelltools.cd("..")
|
||||||
|
|
||||||
#pisitools.dodoc("docs/COPYING")
|
#pisitools.dodoc("docs/COPYING")
|
||||||
pisitools.dohtml("docs/*")
|
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>
|
<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>
|
<Archive sha1sum="1ada7d5fc5fabca63c78396b5afa587b94b9f2e0" type="tarxz">https://mesa.freedesktop.org/archive/mesa-18.2.5.tar.xz</Archive>
|
||||||
<BuildDependencies>
|
<BuildDependencies>
|
||||||
|
<Dependency>meson</Dependency>
|
||||||
<Dependency>zlib-devel</Dependency>
|
<Dependency>zlib-devel</Dependency>
|
||||||
<Dependency>xorg-proto</Dependency>
|
<Dependency>xorg-proto</Dependency>
|
||||||
<Dependency>openssl-devel</Dependency>
|
<Dependency>openssl-devel</Dependency>
|
||||||
@@ -35,9 +36,9 @@
|
|||||||
<Dependency>eudev-devel</Dependency>
|
<Dependency>eudev-devel</Dependency>
|
||||||
<Dependency>nettle-devel</Dependency>
|
<Dependency>nettle-devel</Dependency>
|
||||||
<Dependency>python-mako</Dependency>
|
<Dependency>python-mako</Dependency>
|
||||||
<Dependency versionFrom="5.0.1">llvm</Dependency>
|
<Dependency versionFrom="6.0.1">llvm</Dependency>
|
||||||
<Dependency versionFrom="5.0.1">llvm-libs</Dependency>
|
<Dependency versionFrom="6.0.1">llvm-libs</Dependency>
|
||||||
<Dependency versionFrom="5.0.1">llvm-clang-devel</Dependency>
|
<Dependency versionFrom="6.0.1">llvm-clang-devel</Dependency>
|
||||||
<Dependency versionFrom="1.2">libxshmfence-devel</Dependency>
|
<Dependency versionFrom="1.2">libxshmfence-devel</Dependency>
|
||||||
<Dependency>automake</Dependency>
|
<Dependency>automake</Dependency>
|
||||||
<Dependency>libunwind-devel</Dependency>
|
<Dependency>libunwind-devel</Dependency>
|
||||||
@@ -82,15 +83,16 @@
|
|||||||
<Dependency>nettle</Dependency>
|
<Dependency>nettle</Dependency>
|
||||||
<Dependency>libunwind</Dependency>
|
<Dependency>libunwind</Dependency>
|
||||||
<Dependency versionFrom="1.2">libxshmfence</Dependency>
|
<Dependency versionFrom="1.2">libxshmfence</Dependency>
|
||||||
<Dependency versionFrom="5.0.1">llvm</Dependency>
|
<Dependency versionFrom="6.0.1">llvm</Dependency>
|
||||||
<Dependency versionFrom="5.0.1">llvm-clang</Dependency>
|
<Dependency versionFrom="6.0.1">llvm-clang</Dependency>
|
||||||
<Dependency versionFrom="5.0.1">llvm-libs</Dependency>
|
<Dependency versionFrom="6.0.1">llvm-libs</Dependency>
|
||||||
</RuntimeDependencies>
|
</RuntimeDependencies>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="config">/etc</Path>
|
<Path fileType="config">/etc</Path>
|
||||||
<Path fileType="executable">/usr/bin</Path>
|
<Path fileType="executable">/usr/bin</Path>
|
||||||
<Path fileType="library">/usr/lib</Path>
|
<Path fileType="library">/usr/lib</Path>
|
||||||
<Path fileType="library">/usr/lib/libGL.so.1.2</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>
|
<Path fileType="doc">/usr/share/doc</Path>
|
||||||
</Files>
|
</Files>
|
||||||
<AdditionalFiles>
|
<AdditionalFiles>
|
||||||
@@ -154,7 +156,7 @@
|
|||||||
<Dependency>libxshmfence-32bit</Dependency>
|
<Dependency>libxshmfence-32bit</Dependency>
|
||||||
<Dependency>nettle-32bit</Dependency>
|
<Dependency>nettle-32bit</Dependency>
|
||||||
<Dependency>libunwind-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>
|
<Dependency>libXrandr-32bit</Dependency>
|
||||||
</BuildDependencies>
|
</BuildDependencies>
|
||||||
<RuntimeDependencies>
|
<RuntimeDependencies>
|
||||||
@@ -182,7 +184,7 @@
|
|||||||
<Dependency>wayland-32bit</Dependency>
|
<Dependency>wayland-32bit</Dependency>
|
||||||
<Dependency>libunwind-32bit</Dependency>
|
<Dependency>libunwind-32bit</Dependency>
|
||||||
<Dependency release="current">mesa</Dependency>
|
<Dependency release="current">mesa</Dependency>
|
||||||
<Dependency versionFrom="5.0.1">llvm-32bit</Dependency>
|
<Dependency versionFrom="6.0.1">llvm-32bit</Dependency>
|
||||||
</RuntimeDependencies>
|
</RuntimeDependencies>
|
||||||
<Files>
|
<Files>
|
||||||
<Path fileType="library">/usr/lib32</Path>
|
<Path fileType="library">/usr/lib32</Path>
|
||||||
@@ -193,6 +195,13 @@
|
|||||||
</Package>
|
</Package>
|
||||||
|
|
||||||
<History>
|
<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">
|
<Update release="11">
|
||||||
<Date>2018-11-17</Date>
|
<Date>2018-11-17</Date>
|
||||||
<Version>18.2.5</Version>
|
<Version>18.2.5</Version>
|
||||||
|
|||||||
Reference in New Issue
Block a user