#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://www.php.net/distributions/php-5.3.5.tar.gz URL_MD5 fb727a3ac72bf0ce37e1a20468a7bb81 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()