install.sh 757 B

123456789101112131415161718192021
  1. #!/bin/bash
  2. RETCODE=$(fw_exists ${IROOT}/cppsp.installed)
  3. [ ! "$RETCODE" == 0 ] || { return 0; }
  4. sudo apt-get install -y postgresql-server-dev-9.3 libpq-dev
  5. fw_get -o cppsp_0.2.3.tar.xz http://downloads.sourceforge.net/project/cpollcppsp/CPPSP%200.2%20%28testing%29/cppsp_0.2.3.tar.xz
  6. fw_untar cppsp_0.2.3.tar.xz
  7. # Using cp+rm over mv intentionally, because apparently this download
  8. # causes oddball issues when mv'ed around inside a folder mounted
  9. # inside of VirtualBox (may have something to do with case-sensitive
  10. # filesystems)
  11. cp -R cppsp_rel0.2.3/ ${IROOT}/cppsp_0.2.3
  12. rm -rf cppsp_rel0.2.3/
  13. sed -i 's|CXX := .*|CXX := g++-4.8|g' ${IROOT}/cppsp_0.2.3/makefile
  14. sed -i 's|-Wall|-w|g' ${IROOT}/cppsp_0.2.3/makefile
  15. touch ${IROOT}/cppsp.installed