1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- #!/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 pisitools
- from pisi.actionsapi import shelltools
- from pisi.actionsapi import get
- libdir = "lib"
- def setup():
- shelltools.export("LC_ALL", "en_US.UTF-8")
- shelltools.export("CFLAGS", get.CFLAGS().replace("-ggdb3", ""))
- pisitools.cflags.add(" -ffat-lto-objects")
- pisitools.cxxflags.add(" -ffat-lto-objects")
- autotools.rawConfigure("--prefix=/usr \
- --libdir=/usr/%s \
- --enable-pic \
- --enable-vp8 \
- --enable-vp9 \
- --enable-vp9-highbitdepth \
- --enable-vp9-temporal-denoising \
- --enable-shared \
- --enable-runtime-cpu-detect \
- --enable-postproc \
- --enable-experimental \
- --disable-install-docs \
- --disable-install-srcs" % libdir)
- def build():
- autotools.make("verbose=true")
- def install():
- autotools.rawInstall("DESTDIR=%s" % get.installDIR())
- pisitools.remove("/usr/%s/*.a" % libdir)
- pisitools.dosym("/usr/lib/libvpx.so.9.0.1", "/usr/lib/libvpx.so.8")
- pisitools.dodoc("AUTHORS", "CHANGELOG", "LICENSE", "PATENTS")
|