Changeset View
Changeset View
Standalone View
Standalone View
Mk/Uses/php.mk
Show First 20 Lines • Show All 200 Lines • ▼ Show 20 Lines | |||||
MOD_PHP_PORT?= www/mod_php${PHP_VER} | MOD_PHP_PORT?= www/mod_php${PHP_VER} | ||||
. if ${php_ARGS:Mbuild} | . if ${php_ARGS:Mbuild} | ||||
BUILD_DEPENDS+= ${PHPBASE}/include/php/main/php.h:${PHP_PORT} | BUILD_DEPENDS+= ${PHPBASE}/include/php/main/php.h:${PHP_PORT} | ||||
. endif | . endif | ||||
RUN_DEPENDS+= ${PHPBASE}/include/php/main/php.h:${PHP_PORT} | RUN_DEPENDS+= ${PHPBASE}/include/php/main/php.h:${PHP_PORT} | ||||
. if ${php_ARGS:Mmod} || (${php_ARGS:Mweb} && defined(PHP_VERSION) && ${PHP_SAPI:Mcgi} == "" && ${PHP_SAPI:Mfpm} == "") | . if ${php_ARGS:Mmod} || (${php_ARGS:Mweb} && defined(PHP_VERSION) && ${PHP_SAPI:Mcgi} == "" && ${PHP_SAPI:Mfpm} == "") | ||||
USE_APACHE_RUN= 22+ | USE_APACHE_RUN= 22+ | ||||
.include "${PORTSDIR}/Mk/bsd.apache.mk" | .include "${PORTSDIR}/Mk/Uses/apache.mk" | ||||
# libphpX.so only has the major version number in it, so remove the last digit of PHP_VER to get it. | # libphpX.so only has the major version number in it, so remove the last digit of PHP_VER to get it. | ||||
RUN_DEPENDS+= ${PHPBASE}/${APACHEMODDIR}/libphp${PHP_VER:C/.$//}.so:${MOD_PHP_PORT} | RUN_DEPENDS+= ${PHPBASE}/${APACHEMODDIR}/libphp${PHP_VER:C/.$//}.so:${MOD_PHP_PORT} | ||||
. endif | . endif | ||||
PLIST_SUB+= PHP_EXT_DIR=${PHP_EXT_DIR} | PLIST_SUB+= PHP_EXT_DIR=${PHP_EXT_DIR} | ||||
SUB_LIST+= PHP_EXT_DIR=${PHP_EXT_DIR} | SUB_LIST+= PHP_EXT_DIR=${PHP_EXT_DIR} | ||||
. if ${php_ARGS:Mphpize} || ${php_ARGS:Mext} || ${php_ARGS:Mzend} | . if ${php_ARGS:Mphpize} || ${php_ARGS:Mext} || ${php_ARGS:Mzend} | ||||
▲ Show 20 Lines • Show All 205 Lines • Show Last 20 Lines |