#from http://www.php.net/downloads.php #this imports variables here PackageSetup() if(WIN32) #### windows..... not done yet message(FATAL_ERROR "package ${PACKAGE} not currently available for windows") else() #configure based install like ./configure --prefix=/$HOME/apache ExternalProject_Add( ${PACKAGE} ${Package_std_dirs} URL http://it.php.net/get/php-5.2.13.tar.gz/from/this/mirror CONFIGURE_COMMAND /configure --srcdir= --prefix= --with-apxs2=/bin/apxs --with-mysql= --with-pdo-mysql= --disable-cgi --with-zlib --with-gettext --with-mcrypt= --with-gd --with-jpeg-dir= --with-png-dir= ) endif()