actions.py 852 B

12345678910111213141516171819202122232425262728
  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 get
  9. def setup():
  10. pisitools.dosed("configure.ac", "AM_CONFIG_HEADER", "AC_CONFIG_HEADERS")
  11. autotools.autoreconf("-vif")
  12. autotools.configure("--disable-static \
  13. --disable-example-progs \
  14. --enable-cpp-progs \
  15. --with-cd-paranoia-name=libcdio-paranoia")
  16. pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  17. def build():
  18. autotools.make()
  19. def install():
  20. autotools.rawInstall("-j1 DESTDIR=%s" % (get.installDIR()))
  21. pisitools.dodoc("AUTHORS", "NEWS.md", "THANKS")