mirror of
https://git.FreeBSD.org/ports.git
synced 2025-02-07 11:49:40 +00:00
Add hook for building mod_php4 as an apache2 module (WITH_APACHE2).
This commit is contained in:
parent
bdafa4c36e
commit
b39a88a3f7
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=58407
@ -23,9 +23,15 @@ DISTNAME= php-${PORTVERSION}
|
||||
MAINTAINER= dirk@FreeBSD.org
|
||||
|
||||
.if !defined(STANDALONE)
|
||||
.if defined(WITH_APACHE2)
|
||||
BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache2
|
||||
RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache2
|
||||
LIB_DEPENDS= pth.14:${PORTSDIR}/devel/pth
|
||||
.else
|
||||
BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
|
||||
RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
|
||||
.endif
|
||||
.endif
|
||||
|
||||
PHP_DISTDIR= distributions
|
||||
|
||||
@ -46,8 +52,15 @@ CONFIGURE_ARGS= --with-config-file-path=${PREFIX}/etc/php.standalone \
|
||||
|
||||
MAKE_ENV= STANDALONE="${STANDALONE}"
|
||||
.else
|
||||
CONFIGURE_ARGS= --with-apxs=${PREFIX}/sbin/apxs \
|
||||
--with-config-file-path=${PREFIX}/etc
|
||||
.if defined(WITH_APACHE2)
|
||||
CONFIGURE_ARGS= --with-apxs2=${PREFIX}/sbin/apxs \
|
||||
--with-tsrm-pth
|
||||
PLIST_SUB= MOD_DIR=libexec/apache2
|
||||
.else
|
||||
CONFIGURE_ARGS= --with-apxs=${PREFIX}/sbin/apxs
|
||||
.endif
|
||||
CONFIGURE_ARGS+=--with-config-file-path=${PREFIX}/etc
|
||||
PLIST_SUB= MOD_DIR=libexec/apache
|
||||
.endif
|
||||
|
||||
CONFIGURE_ARGS+=--enable-versioning \
|
||||
@ -70,6 +83,10 @@ PLIST_SUB= AP_LIBEXEC=${AP_LIBEXEC:S/^${PREFIX}\///}
|
||||
|
||||
pre-fetch:
|
||||
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php
|
||||
.if !defined(STANDALONE) && !defined(WITH_APACHE2)
|
||||
@${ECHO_CMD} "Define WITH_APACHE2 to build mod_php4 as an apache2 module."
|
||||
@${ECHO_CMD} ""
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
.if !defined(STANDALONE)
|
||||
|
@ -239,7 +239,7 @@ lib/php/build/rules.mk
|
||||
lib/php/build/rules_common.mk
|
||||
lib/php/build/rules_pear.mk
|
||||
lib/php/build/shtool
|
||||
libexec/apache/libphp4.so
|
||||
%%MOD_DIR%%/libphp4.so
|
||||
@exec %D/sbin/apxs -e -a -n php4 %f
|
||||
@unexec %D/sbin/apxs -e -A -n php4 %f
|
||||
@dirrm include/php/TSRM
|
||||
|
@ -23,9 +23,15 @@ DISTNAME= php-${PORTVERSION}
|
||||
MAINTAINER= dirk@FreeBSD.org
|
||||
|
||||
.if !defined(STANDALONE)
|
||||
.if defined(WITH_APACHE2)
|
||||
BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache2
|
||||
RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache2
|
||||
LIB_DEPENDS= pth.14:${PORTSDIR}/devel/pth
|
||||
.else
|
||||
BUILD_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
|
||||
RUN_DEPENDS= ${LOCALBASE}/sbin/apxs:${PORTSDIR}/www/apache13
|
||||
.endif
|
||||
.endif
|
||||
|
||||
PHP_DISTDIR= distributions
|
||||
|
||||
@ -46,8 +52,15 @@ CONFIGURE_ARGS= --with-config-file-path=${PREFIX}/etc/php.standalone \
|
||||
|
||||
MAKE_ENV= STANDALONE="${STANDALONE}"
|
||||
.else
|
||||
CONFIGURE_ARGS= --with-apxs=${PREFIX}/sbin/apxs \
|
||||
--with-config-file-path=${PREFIX}/etc
|
||||
.if defined(WITH_APACHE2)
|
||||
CONFIGURE_ARGS= --with-apxs2=${PREFIX}/sbin/apxs \
|
||||
--with-tsrm-pth
|
||||
PLIST_SUB= MOD_DIR=libexec/apache2
|
||||
.else
|
||||
CONFIGURE_ARGS= --with-apxs=${PREFIX}/sbin/apxs
|
||||
.endif
|
||||
CONFIGURE_ARGS+=--with-config-file-path=${PREFIX}/etc
|
||||
PLIST_SUB= MOD_DIR=libexec/apache
|
||||
.endif
|
||||
|
||||
CONFIGURE_ARGS+=--enable-versioning \
|
||||
@ -70,6 +83,10 @@ PLIST_SUB= AP_LIBEXEC=${AP_LIBEXEC:S/^${PREFIX}\///}
|
||||
|
||||
pre-fetch:
|
||||
@${SETENV} ${SCRIPTS_ENV} ${SH} ${SCRIPTDIR}/configure.php
|
||||
.if !defined(STANDALONE) && !defined(WITH_APACHE2)
|
||||
@${ECHO_CMD} "Define WITH_APACHE2 to build mod_php4 as an apache2 module."
|
||||
@${ECHO_CMD} ""
|
||||
.endif
|
||||
|
||||
post-install:
|
||||
.if !defined(STANDALONE)
|
||||
|
@ -239,7 +239,7 @@ lib/php/build/rules.mk
|
||||
lib/php/build/rules_common.mk
|
||||
lib/php/build/rules_pear.mk
|
||||
lib/php/build/shtool
|
||||
libexec/apache/libphp4.so
|
||||
%%MOD_DIR%%/libphp4.so
|
||||
@exec %D/sbin/apxs -e -a -n php4 %f
|
||||
@unexec %D/sbin/apxs -e -A -n php4 %f
|
||||
@dirrm include/php/TSRM
|
||||
|
Loading…
x
Reference in New Issue
Block a user