Kaydet (Commit) 261158b5 authored tarafından Your Name's avatar Your Name

fix mesa

üst b1c42396
This diff is collapsed.
7de2df76abe8f14430ee6cd81a8fbe8797517526
\ No newline at end of file
668a5b23896ba5c6fe5a71108fe24cf0eb54f277
\ No newline at end of file
5837de8cbf520a19a795d4c5a02e8ab03ef804e6
\ No newline at end of file
aa8fdcc151a7f77961c9b17e135ab94839b7aec4
\ No newline at end of file
......@@ -6,15 +6,29 @@
from inary.actionsapi import autotools
from inary.actionsapi import inarytools
from inary.actionsapi import shelltools
from inary.actionsapi import get
if get.buildTYPE() == "emul32":
shelltools.export("CFLAGS","-m32")
shelltools.export("CXXFLAGS","-m32")
shelltools.export("LDFLAGS","-m32")
def build():
autotools.make()
autotools.make("zstdmt")
autotools.make("-C contrib/pzstd")
def install():
autotools.rawInstall("PREFIX=/usr DESTDIR=%s" % get.installDIR())
if get.buildTYPE() == "emul32":
autotools.rawInstall("LIBDIR=/usr/lib32 \
PKGCONFIGDIR=/usr/lib32/pkgconfig \
PREFIX=/usr \
DESTDIR=%s" % get.installDIR())
shelltools.system("sed -i s/lib$/lib32/ {}/usr/lib32/pkgconfig/libzstd.pc || true".format(get.installDIR()))
return
else:
autotools.rawInstall("LIBDIR=/usr/lib PREFIX=/usr DESTDIR=%s" % get.installDIR())
inarytools.dobin("zstdmt")
inarytools.dobin("contrib/pzstd/pzstd")
inarytools.dodoc("LICENSE", "README*")
......@@ -31,6 +31,16 @@
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man</Path>
</Files>
</Package>
<Package>
<Name>zstd-32bit</Name>
<BuildType>emul32</BuildType>
<RuntimeDependencies>
<Dependency>lz4</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32</Path>
</Files>
</Package>
<Package>
<Name>zstd-devel</Name>
......@@ -39,6 +49,7 @@
</RuntimeDependencies>
<Files>
<Path fileType="data">/usr/lib/pkgconfig</Path>
<Path fileType="library">/usr/lib32/pkgconfig</Path>
<Path fileType="header">/usr/include</Path>
</Files>
</Package>
......
......@@ -8,6 +8,8 @@ from inary.actionsapi import mesontools
from inary.actionsapi import inarytools
from inary.actionsapi import shelltools
shelltools.system("export")
def setup():
#inarytools.dosed("configure.ac", "pthread-stubs", deleteLine=True)
mesontools.meson_configure("--prefix=/usr -Dudev=true")
......
<?xml version="1.0" ?>
<!DOCTYPE INARY SYSTEM "https://raw.githubusercontent.com/Zaryob/inary/master/inary-spec.dtd">
<INARY>
<Source>
<Name>libdrm</Name>
<Homepage>http://dri.freedesktop.org/libdrm/</Homepage>
<Packager>
<Name>Suleyman Poyraz</Name>
<Email>zaryob.dev@gmail.com</Email>
</Packager>
<License>MIT</License>
<IsA>library</IsA>
<PartOf>x11.library</PartOf>
<Summary>Userspace interface to kernel DRM services</Summary>
<Description>libdrm is a library providing the userspace interface to kernel DRM services.</Description>
<Archive sha1sum="c08ba0e9b19cea7cd2bbd9fcc39218ac443b41a5" >https://dri.freedesktop.org/libdrm/libdrm-2.4.101.tar.xz</Archive>
<BuildDependencies>
<Dependency>libpciaccess-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>libdrm</Name>
<RuntimeDependencies>
<Dependency versionFrom="0.13.4">libpciaccess</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc</Path>
<Path fileType="library">/usr/lib/libdrm.*</Path>
<Path fileType="data">/lib/udev/rules.d</Path>
<Path fileType="doc">/usr/share/doc</Path>
<Path fileType="man">/usr/share/man</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/lib/udev/rules.d/91-drm-modeset.rules">91-drm-modeset.rules</AdditionalFile>
</AdditionalFiles>
</Package>
<Package>
<Name>libdrm-intel</Name>
<Summary>Userspace interface to kernel DRM services for intel</Summary>
<RuntimeDependencies>
<Dependency release="current">libdrm</Dependency>
<Dependency>libpciaccess</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib/libdrm_intel.*</Path>
</Files>
</Package>
<Package>
<Name>libdrm-nouveau</Name>
<Summary>Userspace interface to kernel DRM services for nouveau</Summary>
<RuntimeDependencies>
<Dependency release="current">libdrm</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib/libdrm_nouveau.*</Path>
</Files>
</Package>
<Package>
<Name>libdrm-radeon</Name>
<Summary>Userspace interface to kernel DRM services for radeon</Summary>
<RuntimeDependencies>
<Dependency release="current">libdrm</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib/libdrm_radeon.*</Path>
</Files>
</Package>
<Package>
<Name>libdrm-amd</Name>
<Summary>Userspace interface to kernel DRM services for amdgpu</Summary>
<RuntimeDependencies>
<Dependency release="current">libdrm</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib/libdrm_amdgpu.*</Path>
<Path fileType="data">/usr/share/libdrm/amdgpu.ids</Path>
</Files>
</Package>
<Package>
<Name>libdrm-devel</Name>
<Summary>Development files for libdrm</Summary>
<RuntimeDependencies>
<Dependency release="current">libdrm</Dependency>
<Dependency release="current">libdrm-intel</Dependency>
<Dependency release="current">libdrm-nouveau</Dependency>
<Dependency release="current">libdrm-radeon</Dependency>
<Dependency release="current">libdrm-amd</Dependency>
<Dependency release="current">libdrm</Dependency>
<!--Dependency>mesa-devel</Dependency--><!--circle dep-->
</RuntimeDependencies>
<Files>
<Path fileType="header">/usr/include</Path>
<Path fileType="data">/usr/lib/pkgconfig</Path>
<Path fileType="data">/usr/lib32/pkgconfig</Path>
</Files>
</Package>
<Package>
<Name>libdrm-32bit</Name>
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for libdrm</Summary>
<BuildType>emul32</BuildType>
<BuildDependencies>
<Dependency versionFrom="0.13.4">libpciaccess-32bit</Dependency>
</BuildDependencies>
<RuntimeDependencies>
<Dependency release="current">libdrm</Dependency>
<Dependency versionFrom="0.13.4">libpciaccess-32bit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32/libdrm.*</Path>
</Files>
</Package>
<Package>
<Name>libdrm-intel-32bit</Name>
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for libdrm-intel</Summary>
<BuildType>emul32</BuildType>
<RuntimeDependencies>
<Dependency release="current">libdrm-intel</Dependency>
<Dependency release="current">libdrm-32bit</Dependency>
<Dependency>libpciaccess-32bit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32/libdrm_intel.*</Path>
</Files>
</Package>
<Package>
<Name>libdrm-nouveau-32bit</Name>
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for libdrm-nouveau</Summary>
<BuildType>emul32</BuildType>
<RuntimeDependencies>
<Dependency release="current">libdrm-nouveau</Dependency>
<Dependency release="current">libdrm-32bit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32/libdrm_nouveau.*</Path>
</Files>
</Package>
<Package>
<Name>libdrm-radeon-32bit</Name>
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for libdrm-radeon</Summary>
<BuildType>emul32</BuildType>
<RuntimeDependencies>
<Dependency release="current">libdrm-radeon</Dependency>
<Dependency release="current">libdrm-32bit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32/libdrm_radeon.*</Path>
</Files>
</Package>
<Package>
<Name>libdrm-amd-32bit</Name>
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for libdrm-amdgpu</Summary>
<BuildType>emul32</BuildType>
<RuntimeDependencies>
<Dependency release="current">libdrm-amd</Dependency>
<Dependency release="current">libdrm-32bit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32/libdrm_amdgpu.*</Path>
</Files>
</Package>
<Package>
<Name>libkms</Name>
<Summary>Userspace library for kernel mode setting</Summary>
<RuntimeDependencies>
<Dependency release="current">libdrm</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib/libkms.*</Path>
</Files>
</Package>
<Package>
<Name>libkms-32bit</Name>
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for libkms</Summary>
<BuildType>emul32</BuildType>
<RuntimeDependencies>
<Dependency release="current">libkms</Dependency>
<Dependency release="current">libdrm-32bit</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32/libkms.*</Path>
</Files>
</Package>
<History>
<Update release="3">
<Date>2019-11-17</Date>
<Version>2.4.101</Version>
<Comment>Package is rebuilded and released up.</Comment>
<Name>Suleyman Poyraz</Name>
<Email>zaryob.dev@gmail.com</Email>
</Update>
<Update release="2">
<Date>2019-11-17</Date>
<Version>2.4.97</Version>
<Comment>Package is rebuilded and released up.</Comment>
<Name>Suleyman Poyraz</Name>
<Email>zaryob.dev@gmail.com</Email>
</Update>
<Update release="1">
<Date>2019-04-12</Date>
<Version>2.4.97</Version>
<Comment>First release</Comment>
<Name>Suleyman Poyraz</Name>
<Email>zaryob.dev@gmail.com</Email>
</Update>
</History>
</INARY>
......@@ -11,14 +11,12 @@ from inary.actionsapi import shelltools
Libdir = "/usr/lib32" if get.buildTYPE() == "emul32" else "/usr/lib"
shelltools.export("CFLAGS","")
shelltools.export("CXXFLAGS","")
shelltools.export("LDFLAGS","")
def clangize():
clang="{}".format("clang" if get.buildTYPE()!="emul32" else "clang -m32")
clangpp="{}".format("clang++" if get.buildTYPE()!="emul32" else "clang++ -m32")
shelltools.export("CC", clang)
shelltools.export("CXX", clangpp)
def setup():
#clangize()
options ="\
-D b_lto=false \
......@@ -34,8 +32,8 @@ def setup():
-D egl=true \
-D gallium-extra-hud=true \
-D gallium-nine=true \
-D gallium-omx=bellagio \
-D gallium-opencl=icd \
-D gallium-omx=disabled \
-D gallium-opencl=icd \
-D gallium-va=true \
-D gallium-vdpau=true \
-D gallium-xa=true \
......@@ -45,35 +43,30 @@ def setup():
-D gles2=true \
-D glvnd=true \
-D glx=dri \
-D libunwind=true \
-D libunwind=enabled \
-D llvm=true \
-D lmsensors=true \
-D osmesa=gallium \
-D shared-glapi=true \
-D valgrind=false \
-D zstd=false"
-D zstd=false \
-D shared-glapi=true"
if get.buildTYPE() == "emul32":
shelltools.export("CC","gcc -m32")
shelltools.export("CXX","g++ -m32")
shelltools.export("LDFLAGS","-m32")
shelltools.export("PKG_CONFIG_PATH","/usr/lib32/pkgconfig")
options += " --libdir=/usr/lib32 --native-file crossfile.ini"
else:
shelltools.export("PKG_CONFIG_PATH","/usr/lib/pkgconfig")
shelltools.export("CC","gcc")
shelltools.export("CXX","g++")
options += " --libdir=/usr/lib"
mesontools.meson_configure(options)
def build():
#clangize()
mesontools.ninja_build("xmlpool-pot xmlpool-update-po xmlpool-gmo")
#mesontools.ninja_build("xmlpool-pot xmlpool-update-po xmlpool-gmo")
shelltools.system("meson compile -C inaryPackageBuild")
def install():
#clangize()
if get.buildTYPE() == "emul32":
shelltools.system("DESTDIR='{}' ninja -C inaryPackageBuild install".format(get.installDIR()))
return
......
......@@ -15,7 +15,7 @@
<PartOf>x11.library</PartOf>
<Summary>Mesa graphics libraries and utilities</Summary>
<Description>Mesa is an open-source implementation of the OpenGL specification - a system for rendering interactive 3D graphics.</Description>
<Archive sha1sum="9f48d8f48499018fb685b592591db351324e983b" >https://mesa.freedesktop.org/archive/mesa-20.1.2.tar.xz</Archive>
<Archive sha1sum="08c161d477bf9510e0a911996521ef248de288c4" >https://archive.mesa3d.org/mesa-20.2.2.tar.xz</Archive>
<BuildDependencies>
<Dependency>libdrm-devel</Dependency>
<Dependency>clang</Dependency>
......@@ -39,6 +39,7 @@
<Dependency>llvm</Dependency>
<Dependency>llvm-libs</Dependency>
<Dependency>libxshmfence-devel</Dependency>
<Dependency>zstd-devel</Dependency>
</BuildDependencies>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="crossfile.ini">crossfile.ini</AdditionalFile>
......@@ -47,6 +48,7 @@
<Package>
<Name>mesa</Name>
<RuntimeDependencies>
<Dependency>zstd</Dependency>
<Dependency>lm_sensors</Dependency>
<Dependency>libdrm-amd</Dependency>
<Dependency>libX11</Dependency>
......@@ -163,6 +165,13 @@
</Files>
</Package>
<History>
<Update release="5">
<Date>2020-06-21</Date>
<Version>20.2.2</Version>
<Comment>Version bump to 20.2.1</Comment>
<Name>Suleyman Poyraz</Name>
<Email>zaryob.dev@gmail.com</Email>
</Update>
<Update release="4">
<Date>2020-06-21</Date>
<Version>20.1.2</Version>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment