actions.py 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file http://www.gnu.org/licenses/gpl.txt
  6. from pisi.actionsapi import shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.export("LDFLAGS", get.LDFLAGS())
  12. autotools.configure("--enable-gpl \
  13. --enable-gpl3 \
  14. --disable-gtk2 \
  15. --qt-libdir=/usr/lib/ \
  16. --qt-includedir=/usr/include/qt5 \
  17. --avformat-vdpau \
  18. --avformat-swscale")
  19. # Enable bindings
  20. shelltools.echo("%s/src/swig/config.mak" % get.curDIR(), "SUBDIRS = perl python")
  21. def build():
  22. autotools.make()
  23. autotools.make("-C src/swig")
  24. def install():
  25. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  26. # We should manually install the bindings :(
  27. pisitools.insinto("/usr/lib/%s/site-packages/" % get.curPYTHON(), "src/swig/python/mlt.py")
  28. pisitools.dolib("src/swig/python/_mlt.so", "/usr/lib/%s/site-packages/" % get.curPYTHON())
  29. pisitools.insinto("/usr/lib/perl5/vendor_perl/%s/" % get.curPERL(), "src/swig/perl/blib/lib/mlt.pm")
  30. pisitools.dolib("src/swig/perl/blib/arch/auto/mlt/mlt.so", "/usr/lib/perl5/vendor_perl/%s/i686-linux-thread-multi/auto/mlt/" % get.curPERL())
  31. pisitools.dodoc("ChangeLog", "COPYING", "GPL*", "README")