actions.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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-audio="alsa oss" \
  15. --with-cpu=%s \
  16. --with-optimization=2 \
  17. --enable-network=yes \
  18. --disable-ltdl-install' % cpu
  19. if get.buildTYPE() == "emul32":
  20. options += " --with-cpu=i586"
  21. shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
  22. autotools.configure(options)
  23. def build():
  24. autotools.make()
  25. def install():
  26. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  27. if get.buildTYPE() == "emul32": return
  28. pisitools.dodoc("ChangeLog", "COPYING", "NEWS", "README", "AUTHORS")
  29. pisitools.remove("/usr/lib/libmpg123.la")