moved into main repo for pisi 2.0

This commit is contained in:
ayhanyalcinsoy
2015-06-19 13:40:41 +03:00
parent 9378a7865f
commit 802326e660
96 changed files with 6410 additions and 0 deletions
+72
View File
@@ -0,0 +1,72 @@
# -*- 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
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,nouveau,svga,swrast \
--with-dri-drivers=i915,i965,r200,radeon,nouveau,swrast \
--with-egl-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-sysfs \
--enable-xvmc \
--enable-glx-tls \
--enable-gallium-llvm \
--enable-llvm-shared-libs \
--enable-shared-glapi \
--enable-texture-float \
"
if get.buildTYPE() == "emul32":
# compile with llvm doesn't work for now, test it later
options += " --with-dri-driverdir=/usr/lib32/xorg/modules/dri \
--with-gallium-drivers=r600,nouveau,swrast \
--with-clang-libdir=/usr/lib32 \
--disable-gallium-llvm \
--disable-asm "
elif get.ARCH() == "x86_64":
options += " --with-clang-libdir=/usr/lib \
--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":
return
pisitools.dodoc("docs/COPYING")
pisitools.dohtml("docs/*")
+17
View File
@@ -0,0 +1,17 @@
#!/usr/bin/python
import os
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
os.system("/usr/sbin/alternatives \
--install /usr/lib32/libGL.so.1.2.0 libGL-32bit /usr/lib32/mesa/libGL.so.1.2.0 80 \
--slave /usr/lib32/xorg/modules/volatile xorg-modules-volatile-32bit /var/empty")
if not os.path.lexists("/usr/lib32/libGL.so.1"):
os.symlink("libGL.so.1.2.0", "/usr/lib32/libGL.so.1")
def preRemove():
# FIXME This is not needed when upgrading package; but pisi does not
# provide a way to learn operation type.
#os.system("/usr/sbin/alternatives --remove libGL-32bit /usr/lib32/mesa/libGL.so.1.2")
pass
+18
View File
@@ -0,0 +1,18 @@
#!/usr/bin/python
import os
def postInstall(fromVersion, fromRelease, toVersion, toRelease):
os.system("/usr/sbin/alternatives \
--install /usr/lib/libGL.so.1.2.0 libGL /usr/lib/mesa/libGL.so.1.2.0 80 \
--slave /usr/lib/xorg/modules/volatile xorg-modules-volatile /var/empty")
if not os.path.lexists("/usr/lib/libGL.so.1"):
os.symlink("libGL.so.1.2.0", "/usr/lib/libGL.so.1")
def preRemove():
# FIXME This is not needed when upgrading package; but pisi does not
# provide a way to learn operation type.
#os.system("/usr/sbin/alternatives --remove libGL /usr/lib/mesa/libGL.so.1.2")
pass
+19
View File
@@ -0,0 +1,19 @@
<driconf>
<device screen="0" driver="i915">
<application name="Default">
<option name="vblank_mode" value="0" />
</application>
</device>
<device screen="0" driver="i965">
<application name="Default">
<option name="vblank_mode" value="0" />
</application>
</device>
<device screen="0" driver="r300">
<application name="Default">
<option name="vblank_mode" value="0" />
<option name="force_s3tc_enable" value="false" />
<option name="disable_lowimpact_fallback" value="true" />
</application>
</device>
</driconf>
+282
View File
@@ -0,0 +1,282 @@
<?xml version="1.0" ?>
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
<PISI>
<Source>
<Name>mesa</Name>
<Homepage>http://www.mesa3d.org</Homepage>
<Packager>
<Name>PisiLinux Community</Name>
<Email>admins@pisilinux.org</Email>
</Packager>
<License>MIT</License>
<IsA>library</IsA>
<IsA>app:console</IsA>
<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="0983b699538d4f096dbee78887ca4575c878e10a" type="targz">ftp://ftp.freedesktop.org/pub/mesa/10.5.5/mesa-10.5.5.tar.gz</Archive>
<BuildDependencies>
<Dependency>llvm-libs</Dependency>
<Dependency>llvm-clang-devel</Dependency>
<Dependency>xorg-proto</Dependency>
<Dependency>libdrm-devel</Dependency>
<Dependency>libXext-devel</Dependency>
<Dependency>wayland-devel</Dependency>
<Dependency>libvdpau-devel</Dependency>
<Dependency>libXfixes-devel</Dependency>
<Dependency>libtalloc-devel</Dependency>
<Dependency>libXdamage-devel</Dependency>
<Dependency>libomxil-bellagio-devel</Dependency>
<Dependency>libXxf86vm-devel</Dependency>
<Dependency>libXvMC-devel</Dependency>
<Dependency>libXv-devel</Dependency>
<Dependency>python-mako</Dependency>
<Dependency releaseFrom="3">libxshmfence-devel</Dependency>
</BuildDependencies>
</Source>
<Package>
<Name>mesa</Name>
<RuntimeDependencies>
<Dependency>llvm-libs</Dependency>
<Dependency>libdrm</Dependency>
<Dependency>libXext</Dependency>
<Dependency>libXfixes</Dependency>
<Dependency>libXdamage</Dependency>
<Dependency>libXxf86vm</Dependency>
<Dependency>libXv</Dependency>
<Dependency>libXvMC</Dependency>
<Dependency>libdrm-intel</Dependency>
<Dependency>libdrm-radeon</Dependency>
<Dependency>libdrm-nouveau</Dependency>
<Dependency>wayland-client</Dependency>
<Dependency>wayland-server</Dependency>
<Dependency>llvm-clang</Dependency>
<Dependency>libclc</Dependency>
<Dependency releaseFrom="3">libxshmfence</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="config">/etc</Path>
<Path fileType="executable">/usr/bin</Path>
<Path fileType="library">/usr/lib</Path>
<Path fileType="doc">/usr/share/doc</Path>
</Files>
<AdditionalFiles>
<AdditionalFile owner="root" permission="0644" target="/etc/drirc">drirc</AdditionalFile>
</AdditionalFiles>
<Provides>
<COMAR script="package.py">System.Package</COMAR>
</Provides>
</Package>
<Package>
<Name>mesa-devel</Name>
<Summary>Development files for mesa</Summary>
<RuntimeDependencies>
<Dependency>libdrm-devel</Dependency>
<Dependency>libXext-devel</Dependency>
<Dependency>wayland-devel</Dependency>
<Dependency>libXfixes-devel</Dependency>
<Dependency>libXdamage-devel</Dependency>
<Dependency>libXxf86vm-devel</Dependency>
<Dependency>libxshmfence-devel</Dependency>
<Dependency release="current">mesa</Dependency>
</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>mesa-32bit</Name>
<PartOf>emul32</PartOf>
<Summary>32-bit shared libraries for mesa</Summary>
<BuildType>emul32</BuildType>
<BuildDependencies>
<Dependency>expat-32bit</Dependency>
<Dependency>libXt-devel</Dependency>
<Dependency>libXv-32bit</Dependency>
<Dependency>libX11-32bit</Dependency>
<Dependency>libcap-32bit</Dependency>
<Dependency>libdrm-32bit</Dependency>
<Dependency>libXext-32bit</Dependency>
<Dependency>libXvMC-32bit</Dependency>
<Dependency>libudev-32bit</Dependency>
<Dependency>wayland-32bit</Dependency>
<Dependency>libvdpau-32bit</Dependency>
<Dependency>libXfixes-32bit</Dependency>
<Dependency>libXdamage-32bit</Dependency>
<Dependency>libXxf86vm-32bit</Dependency>
<Dependency>libdrm-intel-32bit</Dependency>
<Dependency>libdrm-radeon-32bit</Dependency>
<Dependency>libdrm-nouveau-32bit</Dependency>
</BuildDependencies>
<RuntimeDependencies>
<Dependency>expat-32bit</Dependency>
<Dependency>libX11-32bit</Dependency>
<Dependency>libdrm-32bit</Dependency>
<Dependency>libxcb-32bit</Dependency>
<Dependency>libXext-32bit</Dependency>
<Dependency>wayland-32bit</Dependency>
<Dependency>libXfixes-32bit</Dependency>
<Dependency>libXdamage-32bit</Dependency>
<Dependency>libXxf86vm-32bit</Dependency>
<Dependency>libXv-32bit</Dependency>
<Dependency>libXvMC-32bit</Dependency>
<Dependency>libdrm-intel-32bit</Dependency>
<Dependency>libxshmfence-32bit</Dependency>
<Dependency>libdrm-radeon-32bit</Dependency>
<Dependency>libdrm-nouveau-32bit</Dependency>
<Dependency release="current">mesa</Dependency>
</RuntimeDependencies>
<Files>
<Path fileType="library">/usr/lib32</Path>
</Files>
<Provides>
<COMAR script="package-emul32.py">System.Package</COMAR>
</Provides>
</Package>
<History>
<Update release="20">
<Date>2015-05-16</Date>
<Version>10.5.5</Version>
<Comment>Version bump.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="19">
<Date>2014-05-05</Date>
<Version>10.5.4</Version>
<Comment>Version bump.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="18">
<Date>2015-01-28</Date>
<Version>10.4.3</Version>
<Comment>Version bump.</Comment>
<Name>Ergün Salman</Name>
<Email>poyraz76@pisilinux.org</Email>
</Update>
<Update release="17">
<Date>2015-01-20</Date>
<Version>10.4.2</Version>
<Comment>Version bump.</Comment>
<Name>Ergün Salman</Name>
<Email>poyraz76@pisilinux.org</Email>
</Update>
<Update release="16">
<Date>2014-09-24</Date>
<Version>10.3.0</Version>
<Comment>Version bump.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="15">
<Date>2014-08-31</Date>
<Version>10.2.6</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="14">
<Date>2014-07-08</Date>
<Version>10.1.6</Version>
<Comment>Version bump.</Comment>
<Name>Vedat Demir</Name>
<Email>vedat@pisilinux.org</Email>
</Update>
<Update release="13">
<Date>2014-05-24</Date>
<Version>10.1.4</Version>
<Comment>Version bump.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="12">
<Date>2014-05-16</Date>
<Version>10.1.3</Version>
<Comment>Release bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="11">
<Date>2014-05-10</Date>
<Version>10.1.3</Version>
<Comment>Version bump.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="10">
<Date>2014-04-23</Date>
<Version>10.1.1</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="9">
<Date>2014-03-08</Date>
<Version>10.1.0</Version>
<Comment>Version bump.</Comment>
<Name>Yusuf Aydemir</Name>
<Email>yusuf.aydemir@pisilinux.org</Email>
</Update>
<Update release="8">
<Date>2013-11-06</Date>
<Version>9.2.0</Version>
<Comment>Fix deps.</Comment>
<Name>Serdar Soytetir</Name>
<Email>kaptan@pisilinux.org</Email>
</Update>
<Update release="7">
<Date>2013-09-02</Date>
<Version>9.2.0</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="6">
<Date>2013-08-25</Date>
<Version>9.1.5</Version>
<Comment>Release bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="5">
<Date>2013-07-18</Date>
<Version>9.1.5</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="4">
<Date>2013-07-14</Date>
<Version>9.1.4</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="3">
<Date>2013-06-01</Date>
<Version>9.1</Version>
<Comment>add missing dep.</Comment>
<Name>Erdinç Gültekin</Name>
<Email>erdincgultekin@pisilinux.org</Email>
</Update>
<Update release="2">
<Date>2013-02-28</Date>
<Version>9.1</Version>
<Comment>Version bump.</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
<Update release="1">
<Date>2012-11-04</Date>
<Version>9.0</Version>
<Comment>First release</Comment>
<Name>Marcin Bojara</Name>
<Email>marcin@pisilinux.org</Email>
</Update>
</History>
</PISI>
+20
View File
@@ -0,0 +1,20 @@
<?xml version="1.0" ?>
<PISI>
<Source>
<Name>mesa</Name>
<Summary xml:lang="tr">Mesa grafik kitaplıkları ve yardımcı uygulamalar</Summary>
<Description xml:lang="tr">Mesa, OpenGL belirtiminin (etkileşimli 3B grafiklerin gerçeklenmesi için bir sistem) açık kaynaklı bir uyarlamasıdır.</Description>
<Summary xml:lang="pl">Mesa biblioteki graficzne i narzędzia</Summary>
<Description xml:lang="pl">Mesa jest open-source'ową implementacją specyfikacji OpenGL do renderowania trójwymiarowej grafiki.</Description>
</Source>
<Package>
<Name>mesa-devel</Name>
<Summary xml:lang="tr">mesa için geliştirme dosyaları</Summary>
</Package>
<Package>
<Name>mesa-32bit</Name>
<Summary xml:lang="tr">mesa için 32-bit paylaşımlı kitaplıklar</Summary>
</Package>
</PISI>