actions.py 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  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. def setup():
  11. shelltools.system('sed -i "s/sys_siglist\[termsig\]/strsignal(termsig)/" "x11/rootv.c"')
  12. shelltools.system('sed -i "s/sys_siglist\[signal\]/strsignal(signal)/" "console/record.c"')
  13. shelltools.system('sed -i "s/sys_siglist\[termsig\]/strsignal(termsig)/" "console/fbtools.c"')
  14. shelltools.system("NOCONFIGURE=1 ./autogen.sh")
  15. shelltools.export("CFLAGS", "%s -Wno-pointer-sign %s" % (get.CFLAGS(), get.LDFLAGS()))
  16. autotools.autoreconf("-vfi")
  17. autotools.configure("--with-x \
  18. --enable-xfree-ext \
  19. --enable-xvideo \
  20. --enable-dv \
  21. --disable-motif \
  22. --enable-quicktime \
  23. --enable-alsa \
  24. --enable-lirc \
  25. --enable-gl \
  26. --enable-zvbi \
  27. --enable-xft \
  28. --prefix=/usr \
  29. --enable-aa")
  30. # --enable-mmx \ # let the build decide it
  31. def build():
  32. autotools.make()
  33. def install():
  34. autotools.install("libdir=%(D)s/usr/lib/xawtv \
  35. resdir=%(D)s/etc/X11" % {"D": get.installDIR()})
  36. pisitools.dobin("x11/v4lctl")
  37. pisitools.dodoc("COPYING", "Changes", "README*", "TODO")
  38. pisitools.removeDir("/usr/share/man/fr")
  39. pisitools.removeDir("/usr/share/man/es")
  40. pisitools.dodir("/usr/share/xawtv")
  41. pisitools.domove("/usr/share/*.list", "/usr/share/xawtv/")
  42. pisitools.domove("/usr/share/Index*", "/usr/share/xawtv/")
  43. shelltools.chmod("contrib/xawtv48x48.xpm", 0644)
  44. pisitools.insinto("/usr/share/pixmaps", "contrib/xawtv48x48.xpm", "xawtv.xpm")