actions.py 870 B

1234567891011121314151617181920212223242526272829
  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 cmaketools
  7. from pisi.actionsapi import pisitools
  8. from pisi.actionsapi import get
  9. def setup():
  10. cmaketools.configure("-DPHYSFS_BUILD_STATIC=OFF \
  11. -DPHYSFS_BUILD_SHARED=ON \
  12. -DPHYSFS_ARCHIVE_7Z=OFF \
  13. -DPHYSFS_BUILD_TEST=OFF \
  14. -DPHYSFS_BUILD_WX_TEST=OFF \
  15. -DPHYSFS_INTERNAL_ZLIB=OFF \
  16. -DCMAKE_BUILD_TYPE=Release \
  17. -DCMAKE_INSTALL_PREFIX=/usr ")
  18. def build():
  19. cmaketools.make()
  20. def install():
  21. cmaketools.rawInstall('DESTDIR="%s"' % get.installDIR())
  22. pisitools.dodoc("README*", "LICENSE*")