actions.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  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 shelltools
  9. from pisi.actionsapi import get
  10. WorkDir = "SDL2_mixer-%s" % get.srcVERSION()
  11. def setup():
  12. #pisitools.dosed("timidity/config.h", "/usr/local/lib/timidity", "/usr/share/timidity")
  13. options = "--disable-dependency-tracking \
  14. --disable-static \
  15. --enable-music-midi \
  16. --enable-music-midi-timidity \
  17. --enable-music-mod \
  18. --enable-music-mp3 \
  19. --enable-music-ogg"
  20. if get.buildTYPE() == "emul32":
  21. options += " --includedir=/usr/include \
  22. --libdir=/usr/lib32"
  23. shelltools.export("PKG_CONFIG_PATH", "/usr/lib32/pkgconfig")
  24. shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
  25. shelltools.export("CXXFLAGS", "%s -m32" % get.CXXFLAGS())
  26. shelltools.export("LDFLAGS", "%s -m32" % get.LDFLAGS())
  27. autotools.configure(options)
  28. def build():
  29. autotools.make()
  30. def install():
  31. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  32. pisitools.dodoc("CHANGES.txt", "LICENSE.txt", "README.txt")