actions.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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/copyleft/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.export("LDFLAGS", "%s -lm" % get.LDFLAGS())
  12. autotools.autoreconf("-fi")
  13. autotools.configure("--with-libwrap \
  14. --enable-static=no \
  15. --enable-alsa \
  16. --enable-ipv6 \
  17. --enable-oss \
  18. --disable-arts \
  19. --disable-dependency-tracking \
  20. --sysconfdir=/etc/esd")
  21. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  22. def build():
  23. autotools.make()
  24. def install():
  25. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  26. # Delete the esound library
  27. pisitools.remove("/usr/bin/esd")
  28. pisitools.remove("/usr/share/man/man1/esd.1*")
  29. pisitools.dodoc("MAINTAINERS", "NEWS", "README")