[csw-devel] SF.net SVN: gar:[14370] csw/mgar/pkg/php5/trunk/Makefile

bdwalton at users.sourceforge.net bdwalton at users.sourceforge.net
Thu Apr 21 04:22:29 CEST 2011


Revision: 14370
          http://gar.svn.sourceforge.net/gar/?rev=14370&view=rev
Author:   bdwalton
Date:     2011-04-21 02:22:29 +0000 (Thu, 21 Apr 2011)

Log Message:
-----------
php5/trunk: add modulations so we can get our cgi binary back, segment configure args

Modified Paths:
--------------
    csw/mgar/pkg/php5/trunk/Makefile

Modified: csw/mgar/pkg/php5/trunk/Makefile
===================================================================
--- csw/mgar/pkg/php5/trunk/Makefile	2011-04-21 02:19:02 UTC (rev 14369)
+++ csw/mgar/pkg/php5/trunk/Makefile	2011-04-21 02:22:29 UTC (rev 14370)
@@ -18,6 +18,9 @@
 available.
 endef
 
+EXTRA_MODULATORS = SAPI
+MODULATIONS_SAPI = cgi ap2
+
 # turn on the build scripts to enable/disable modules
 PHP5_EXT = 1
 AP2_MODS = 1
@@ -195,7 +198,13 @@
 
 
 
+CONFIGURE_ARGS += --prefix=$(prefix)/php5
+## build this static, php can not run without it.
+## it is more efficient to have this built into the php binary
+CONFIGURE_ARGS += --enable-simplexml
 CONFIGURE_ARGS += --disable-static
+
+ifeq ($(SAPI),ap2)
 CONFIGURE_ARGS += --enable-bcmath=shared
 CONFIGURE_ARGS += --enable-calendar=shared
 CONFIGURE_ARGS += --enable-cli
@@ -218,9 +227,6 @@
 CONFIGURE_ARGS += --enable-posix=shared
 CONFIGURE_ARGS += --enable-session=shared
 CONFIGURE_ARGS += --enable-shmop=shared
-## build this static, php can not run without it.
-## it is more efficient to have this built into the php binary
-CONFIGURE_ARGS += --enable-simplexml
 CONFIGURE_ARGS += --enable-soap=shared
 CONFIGURE_ARGS += --enable-sockets=shared
 CONFIGURE_ARGS += --enable-sqlite-utf8
@@ -233,7 +239,6 @@
 CONFIGURE_ARGS += --enable-xmlreader=shared
 CONFIGURE_ARGS += --enable-xmlwriter=shared
 CONFIGURE_ARGS += --enable-zip=shared
-CONFIGURE_ARGS += --prefix=$(prefix)/php5
 CONFIGURE_ARGS += --with-apxs2=$(prefix)/apache2/sbin/apxs
 CONFIGURE_ARGS += --with-bz2=shared,$(prefix)
 CONFIGURE_ARGS += --with-curl=shared,$(prefix)
@@ -287,6 +292,7 @@
 CONFIGURE_ARGS += --with-xsl=shared,$(prefix)
 CONFIGURE_ARGS += --with-zlib-dir=$(prefix)
 CONFIGURE_ARGS += --with-zlib=$(prefix)
+endif
 
 # Disable Tests (report submitted to PHP QA)
 SKIPTEST = 1


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.


More information about the devel mailing list