xavs2 add to repo

This commit is contained in:
idriskalp
2020-01-14 18:47:16 +03:00
parent 6e0bc29259
commit ec2b5a348e
2 changed files with 93 additions and 0 deletions
+39
View File
@@ -0,0 +1,39 @@
#!/usr/bin/python
# -*- coding: utf-8 -*-
#
# Licensed under the GNU General Public License, version 3.
# See the file http://www.gnu.org/copyleft/gpl.txt
from pisi.actionsapi import autotools
from pisi.actionsapi import cmaketools
from pisi.actionsapi import pisitools
from pisi.actionsapi import shelltools
from pisi.actionsapi import get
NoStrip=["/usr/lib"]
def setup():
shelltools.cd("build/linux")
autotools.rawConfigure("--prefix=/usr \
--extra-ldflags='-Wl,-z,noexecstack' \
--chroma-format='all' \
--enable-shared \
--enable-lto \
--enable-pic \
--disable-swscale \
--disable-lavf \
--disable-ffms \
--disable-gpac \
")
def build():
shelltools.cd("build/linux")
autotools.make()
def install():
shelltools.cd("build/linux")
autotools.rawInstall("DESTDIR=%s" %get.installDIR())
pisitools.remove("/usr/lib/libxavs2.a")
shelltools.cd("../..")
pisitools.dodoc("COPYING", "README.md")