actions.py 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  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. autotools.configure('--enable-fbdev \
  12. --enable-mmx \
  13. --enable-sse \
  14. --enable-jpeg \
  15. --enable-png \
  16. --enable-gif \
  17. --enable-freetype \
  18. --enable-multi \
  19. --disable-sdl \
  20. --disable-multi \
  21. --disable-debug \
  22. --disable-static \
  23. --enable-zlib \
  24. --enable-x11 \
  25. --enable-video4linux \
  26. --enable-video4linux2 \
  27. --with-inputdrivers="all" \
  28. --with-gfxdrivers="all" \
  29. --disable-vnc')
  30. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  31. def build():
  32. autotools.make()
  33. def install():
  34. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  35. pisitools.dohtml("docs/html/")
  36. pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README*", "TODO", "fb.modes")