actions.py 820 B

1234567891011121314151617181920212223242526
  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. autotools.autoreconf("-vfi")
  12. autotools.configure("--enable-shared \
  13. --disable-static \
  14. --enable-djbfft")
  15. def build():
  16. autotools.make('CFLAGS="%s"' % get.CFLAGS())
  17. def install():
  18. autotools.rawInstall('DESTDIR="%s" docdir=/%s/%s/html' % (get.installDIR(), get.docDIR(), get.srcNAME()))
  19. pisitools.insinto("/usr/include/a52dec", "liba52/a52_internal.h")
  20. pisitools.dodoc("AUTHORS", "ChangeLog", "NEWS", "README", "doc/liba52.txt")