actions.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637
  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 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("AUTOPOINT", "true")
  12. pisitools.dosed("autogen.sh", "tool_run.*autopoint --force.*")
  13. pisitools.dosed("ext/modplug/gstmodplug.cc", "stdafx.h", "libmodplug/stdafx.h")
  14. pisitools.dosed("configure.ac", "AM_CONFIG_HEADER", "AC_CONFIG_HEADERS")
  15. shelltools.export("NOCONFIGURE", "1")
  16. shelltools.system("./autogen.sh")
  17. autotools.configure("--with-package-name='PisiLinux gstreamer-plugins-bad package' \
  18. --with-package-origin='http://www.pisilinux.org'")
  19. # for fix unused dependency
  20. pisitools.dosed("libtool"," -shared ", " -Wl,--as-needed -shared ")
  21. def build():
  22. autotools.make()
  23. def install():
  24. autotools.rawInstall("DESTDIR=%s" % get.installDIR())
  25. pisitools.dodoc("ABOUT-NLS", "AUTHORS", "ChangeLog", "COPYING*", "NEWS", "README", "RELEASE", "REQUIREMENTS")