Fix libphp name in php.mk
- From php80 and onwards libphp name is libphp.so without the major version number. Add a check to fix the RUN_DEPENDS. PR: 251252 Reported by: jonaspalm@posteo.de Approved by: ale (maintainer) Sponsored by: Bounce Experts
This commit is contained in:
parent
cd0d83cd41
commit
ed26168a5c
1 changed files with 4 additions and 0 deletions
|
@ -275,8 +275,12 @@ 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} == "")
|
||||
USE_APACHE_RUN= 22+
|
||||
.include "${PORTSDIR}/Mk/Uses/apache.mk"
|
||||
. if ${PHP_VER} < 80
|
||||
# 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}
|
||||
. else
|
||||
RUN_DEPENDS+= ${PHPBASE}/${APACHEMODDIR}/libphp.so:${MOD_PHP_PORT}
|
||||
. endif
|
||||
. endif
|
||||
|
||||
PLIST_SUB+= PHP_EXT_DIR=${PHP_EXT_DIR}
|
||||
|
|
Loading…
Reference in a new issue