actions.py 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 shelltools
  7. from pisi.actionsapi import autotools
  8. from pisi.actionsapi import pisitools
  9. from pisi.actionsapi import get
  10. def setup():
  11. shelltools.system("./autogen.sh")
  12. #autotools.autoreconf("-fi")
  13. autotools.configure("--disable-oss \
  14. --disable-lynx \
  15. --enable-gstreamer \
  16. --enable-gtk3 \
  17. --enable-pulse \
  18. --enable-alsa \
  19. --enable-null \
  20. --enable-tdb \
  21. --with-builtin=dso \
  22. --with-systemd-unit-dir=no \
  23. --disable-static")
  24. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  25. def build():
  26. autotools.make()
  27. def install():
  28. autotools.rawInstall('DESTDIR="%s"' % get.installDIR())
  29. #pisitools.remove("/usr/lib/gtk-3.0/modules/libcanberra-gtk-module.so")
  30. #pisitools.removeDir("/usr/share/gtk-doc")
  31. pisitools.dodoc("LGPL")