actions.py 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. # -*- coding: utf-8 -*-
  2. #
  3. # Licensed under the GNU General Public License, version 3.
  4. # See the file http://www.gnu.org/licenses/gpl.txt
  5. from pisi.actionsapi import autotools
  6. from pisi.actionsapi import pisitools
  7. from pisi.actionsapi import get
  8. from pisi.actionsapi import shelltools
  9. #This package using ltdl. .la files should be deleted only for plugins
  10. KeepSpecial = ["libtool"]
  11. def setup():
  12. cpu = "x86-64" if get.ARCH() == "x86_64" else "sse"
  13. pisitools.dosed("configure", "-faltivec")
  14. options = '--with-cpu=%s \
  15. --with-optimization=2 \
  16. --enable-network=yes \
  17. --disable-ltdl-install' % cpu
  18. if get.buildTYPE() == "emul32":
  19. options += " --with-audio='alsa oss pulse sdl' --with-cpu=i586"
  20. shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
  21. else:
  22. options += " --with-audio='alsa oss pulse sdl jack' \
  23. "
  24. autotools.configure(options)
  25. def build():
  26. autotools.make()
  27. def install():
  28. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  29. if get.buildTYPE() == "emul32": return
  30. pisitools.dodoc("ChangeLog", "COPYING", "NEWS", "README", "AUTHORS")
  31. pisitools.remove("/usr/lib/libmpg123.la")