actions.py 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 get
  7. from pisi.actionsapi import libtools
  8. from pisi.actionsapi import autotools
  9. from pisi.actionsapi import pisitools
  10. from pisi.actionsapi import shelltools
  11. NoStrip = "/"
  12. KeepSpecial = ["libtool"]
  13. def setup():
  14. shelltools.export("AUTOPOINT", "/bin/true")
  15. # autotools.autoreconf("-fi")
  16. # libtools.libtoolize("--force --copy")
  17. autotools.configure("--enable-shared \
  18. --enable-asm \
  19. --enable-gpl \
  20. --with-alsa \
  21. --with-faad2 \
  22. --with-ffmpeg \
  23. --with-lame \
  24. --with-libdv \
  25. --with-libjpeg \
  26. --with-libpng \
  27. --with-opengl \
  28. --with-schroedinger \
  29. --with-x \
  30. --with-x264 \
  31. --without-doxygen \
  32. --without-cpuflags")
  33. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  34. def build():
  35. autotools.make()
  36. def install():
  37. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  38. pisitools.remove("/usr/lib/libquicktime.la")
  39. pisitools.dodoc("README", "TODO", "ChangeLog")