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/*")