actions.py 1.0 KB

123456789101112131415161718192021222324252627282930313233343536
  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 autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import shelltools
  9. from pisi.actionsapi import get
  10. WorkDir = "mjpegtools-2.1.0"
  11. def setup():
  12. shelltools.export("CFLAGS", "%s -fno-strict-aliasing" % get.CFLAGS())
  13. autotools.autoreconf("-vfi")
  14. pisitools.dosed("configure", "ARCHFLAGS=.*", "ARCHFLAGS=")
  15. autotools.configure("--with-x \
  16. --enable-largefile \
  17. --disable-simd-accel \
  18. --with-dv-yv12 \
  19. --disable-static \
  20. --with-libpng \
  21. --with-libdv=/usr")
  22. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  23. def build():
  24. autotools.make()
  25. def install():
  26. autotools.install()
  27. pisitools.dodoc("AUTHORS","ChangeLog","README*","mjpeg_howto.txt", "TODO")