Skip to content

Commit

Permalink
Mk/Uses/php.mk: Refactor
Browse files Browse the repository at this point in the history
- Replace old USE_APACHE_RUN with USES=apache:run
- Prior to php8.0 there was a check for the required libname which
  contained the version number of php. Remove the conditional.

Sponsored by:	Bounce Experts
  • Loading branch information
5u623l20 committed Apr 24, 2023
1 parent e6b5fb2 commit 9f5034f
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions Mk/Uses/php.mk
Original file line number Diff line number Diff line change
Expand Up @@ -273,14 +273,9 @@ BUILD_DEPENDS+= ${PHPBASE}/include/php/main/php.h:${PHP_PORT}
. endif
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+
USES= apache:run
.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}
Expand Down

0 comments on commit 9f5034f

Please sign in to comment.