actions.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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 libtools
  9. from pisi.actionsapi import shelltools
  10. from pisi.actionsapi import get
  11. def setup():
  12. shelltools.copytree("../giflib-%s" % (get.srcVERSION().replace("_", "~")), "../giflib-%s-32" % get.srcVERSION())
  13. #libtools.libtoolize("--force --install")
  14. #autotools.autoreconf("-fi")
  15. #autotools.configure("--disable-static")
  16. #pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
  17. def build():
  18. autotools.make("-j1")
  19. shelltools.cd("../giflib-%s-32" % get.srcVERSION())
  20. shelltools.export("CC", "gcc -m32")
  21. shelltools.export("CXX", "g++ -m32")
  22. autotools.make("-j1")
  23. def install():
  24. autotools.rawInstall("PREFIX=/usr DESTDIR=%s" % get.installDIR())
  25. shelltools.cd("../giflib-%s-32" % get.srcVERSION())
  26. autotools.rawInstall("PREFIX=/usr LIBDIR=/usr/lib32 BINDIR=/usr/emul32 DESTDIR=%s" % get.installDIR())
  27. pisitools.removeDir("/usr/emul32")
  28. pisitools.remove("/usr/lib/libgif.a")
  29. pisitools.remove("/usr/lib32/libgif.a")
  30. pisitools.dohtml("doc/")
  31. pisitools.dodoc("ChangeLog","NEWS")