phalcon.sh 766 B

123456789101112131415161718192021222324252627
  1. #!/bin/bash
  2. fw_depends php
  3. RETCODE=$(fw_exists ${IROOT}/phalcon.installed)
  4. [ ! "$RETCODE" == 0 ] || { \
  5. source $IROOT/phalcon.installed
  6. return 0; }
  7. # Enable the PHP phalcon extension
  8. sed -i 's|;extension=phalcon.so|extension=phalcon.so|g' $PHP_HOME/lib/php.ini
  9. fw_get -O https://github.com/phalcon/cphalcon/archive/phalcon-v1.3.2.tar.gz
  10. fw_untar phalcon-v1.3.2.tar.gz
  11. cd cphalcon-phalcon-v1.3.2/build/64bits
  12. $PHP_HOME/bin/phpize
  13. # For some reason we have to point to php-config
  14. # explicitly, it's not found by the prefix settings
  15. ./configure --prefix=$PHP_HOME --exec-prefix=$PHP_HOME \
  16. --with-php-config=$PHP_HOME/bin/php-config \
  17. --enable-phalcon --quiet
  18. make --quiet
  19. make install
  20. echo "" > $IROOT/phalcon.installed
  21. source $IROOT/phalcon.installed