actions.py 925 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. #!/usr/bin/python
  2. # -*- coding: utf-8 -*-
  3. #
  4. # Licensed under the GNU General Public License, version 3.
  5. # See the file https://www.gnu.org/licenses/gpl-3.0.txt
  6. from pisi.actionsapi import autotools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. i = ''.join([
  10. ' --prefix=/usr',
  11. ' --with-mesa',
  12. ' --disable-debug',
  13. ' --enable-man',
  14. ' --enable-html',
  15. ' --enable-shared',
  16. ' --enable-threadsafe',
  17. ' --enable-exceptions',
  18. ' --enable-optimization',
  19. ' --enable-system-expat',
  20. ' --enable-javascript-api',
  21. ' --disable-maintainer-mode',
  22. ' --disable-dependency-tracking '
  23. ])
  24. def setup():
  25. autotools.configure(i)
  26. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  27. def build():
  28. autotools.make()
  29. def install():
  30. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  31. pisitools.dodoc("AUTHORS", "COPYING", "THANKS")