On Tue, Dec 22, 2009 at 10:39:34PM -0600, Andres Salazar wrote:
| Hello,
|
| I can install sucessfully apache2 from packages, with php5-core custom
| compiled with this line in the Makefile:
|
| CONFIGURE_ARGS+=--with-apxs2=/usr/local/sbin/apxs2 \
|
|
| My question is... is there anyway for the users of apache2 to be able
| to use php5 in packages without recompiling? I was told that doing a
| symlink between the old apxs and the new apxs but i could not get that
| to work... apache2 refuses to load the php5 module.
I looked at this, but didn't have time to finish it yet:
Index: Makefile
===================================================================
RCS file: /cvs/ports/www/php5/core/Makefile,v
retrieving revision 1.52
diff -u -r1.52 Makefile
--- Makefile 1 Oct 2009 12:22:32 -0000 1.52
+++ Makefile 11 Dec 2009 20:05:47 -0000
@@ -11,8 +11,17 @@
MULTI_PACKAGES= -main -fastcgi
-CONFIGURE_ARGS+=--with-apxs=/usr/sbin/apxs \
- --without-mysql \
+FLAVORS= apache2
+FLAVOR?=
+
+.if ${FLAVOR:L} == "apache2"
+CONFIGURE_ARGS+=--with-apxs2=/usr/local/sbin/apxs2
+BUILD_DEPENDS+= ::www/apache-httpd
+.else
+CONFIGURE_ARGS+=--with-apxs=/usr/sbin/apxs
+.endif
+
+CONFIGURE_ARGS+=--without-mysql \
--enable-xml \
--enable-wddx \
--enable-cli \
Feel free to expand on that :)
Paul 'WEiRD' de Weerd
--
>++++++++[<++++++++++>-]<+++++++.>+++[<------>-]<.>+++[<+
+++++++++++>-]<.>++[<------------>-]<+.--------------.[-]
http://www.weirdnet.nl/