actions.py 850 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. WorkDir="live"
  11. def setup():
  12. shelltools.system("./genMakefiles shared")
  13. def build():
  14. # http://bugs.gentoo.org/show_bug.cgi?id=247844
  15. autotools.make('-j1 LINK_OPTS="-L. %s -lssl -lcrypto"' % get.LDFLAGS().replace("-Wl,--as-needed",""))
  16. def install():
  17. for directory in ["BasicUsageEnvironment", "groupsock", "liveMedia", "UsageEnvironment"]:
  18. pisitools.insinto("/usr/include/%s" % directory, "%s/include/*" % directory)
  19. pisitools.insinto("/usr/lib/", "%s/*.so" % directory)
  20. pisitools.dodoc("README", "COPYING")