Changeset View
Changeset View
Standalone View
Standalone View
lang/php73/Makefile
Show All 24 Lines | CONFIGURE_ARGS+=--with-layout=GNU \ | ||||
--with-config-file-scan-dir=${PREFIX}/etc/php \ | --with-config-file-scan-dir=${PREFIX}/etc/php \ | ||||
--disable-all \ | --disable-all \ | ||||
--enable-libxml \ | --enable-libxml \ | ||||
--enable-mysqlnd \ | --enable-mysqlnd \ | ||||
--with-libxml-dir=${LOCALBASE} \ | --with-libxml-dir=${LOCALBASE} \ | ||||
--with-pcre-regex=${LOCALBASE} \ | --with-pcre-regex=${LOCALBASE} \ | ||||
--with-password-argon2=${LOCALBASE} \ | --with-password-argon2=${LOCALBASE} \ | ||||
--program-prefix="" | --program-prefix="" | ||||
USES+= autoreconf:build | CONFIGURE_ENV+= ac_cv_decimal_fp_supported="no" \ | ||||
lt_cv_path_SED="sed" | |||||
USES+= autoreconf:build gnome | |||||
USE_GNOME= libxml2 | USE_GNOME= libxml2 | ||||
CONFLICTS= php56-* php7[012]-* | |||||
DESTDIRNAME= INSTALL_ROOT | |||||
OPTIONS_DEFINE+=CLI CGI FPM EMBED PHPDBG DEBUG DTRACE IPV6 LINKTHR ZTS | OPTIONS_DEFINE+=CLI CGI FPM EMBED PHPDBG DEBUG DTRACE IPV6 LINKTHR ZTS | ||||
OPTIONS_DEFAULT=CLI CGI FPM EMBED LINKTHR DTRACE | OPTIONS_DEFAULT=CLI CGI FPM EMBED LINKTHR DTRACE | ||||
OPTIONS_EXCLUDE_DragonFly= DTRACE | OPTIONS_EXCLUDE_DragonFly= DTRACE | ||||
# ld(1) fails to link probes: Relocations in generic ELF (EM: 0) | # ld(1) fails to link probes: Relocations in generic ELF (EM: 0) | ||||
OPTIONS_EXCLUDE_aarch64= DTRACE | OPTIONS_EXCLUDE_aarch64= DTRACE | ||||
# dt_modtext:opensolaris/ib/libdtrace/common/dt_link.c: arm not impemented | # dt_modtext:opensolaris/ib/libdtrace/common/dt_link.c: arm not impemented | ||||
OPTIONS_EXCLUDE_armv6= DTRACE | OPTIONS_EXCLUDE_armv6= DTRACE | ||||
OPTIONS_EXCLUDE_armv7= DTRACE | OPTIONS_EXCLUDE_armv7= DTRACE | ||||
# Bug 197128: No ASM code for MIPS/MIPS64, disable FPM | # Bug 197128: No ASM code for MIPS/MIPS64, disable FPM | ||||
OPTIONS_EXCLUDE_mips= DTRACE FPM | OPTIONS_EXCLUDE_mips= DTRACE FPM | ||||
OPTIONS_EXCLUDE_mips64= DTRACE FPM | OPTIONS_EXCLUDE_mips64= DTRACE FPM | ||||
OPTIONS_EXCLUDE_sparc64= DTRACE | OPTIONS_EXCLUDE_sparc64= DTRACE | ||||
OPTIONS_SUB= yes | OPTIONS_SUB= yes | ||||
CLI_DESC= Build CLI version | CLI_DESC= Build CLI version | ||||
CGI_DESC= Build CGI version | CGI_DESC= Build CGI version | ||||
FPM_DESC= Build FPM version | FPM_DESC= Build FPM version | ||||
EMBED_DESC= Build embedded library | EMBED_DESC= Build embedded library | ||||
PHPDBG_DESC= Interactive PHP debugger | PHPDBG_DESC= Interactive PHP debugger | ||||
LINKTHR_DESC= Link thread lib (for threaded extensions) | LINKTHR_DESC= Link thread lib (for threaded extensions) | ||||
ZTS_DESC= Force Zend Thread Safety (ZTS) build | ZTS_DESC= Force Zend Thread Safety (ZTS) build | ||||
CONFLICTS= php56-* php70-* php71-* php72-* | OPTIONS_SUB= yes | ||||
ale: This looks duplicated, line 54 | |||||
DESTDIRNAME= INSTALL_ROOT | AP2FILTER_CONFIGURE_ON= --with-apxs2filter=${APXS} | ||||
AP2FILTER_CONFIGURE_OFF=--with-apxs2=${APXS} | |||||
.include <bsd.port.pre.mk> | CGI_VARS= php_sapi+=cgi | ||||
aleUnsubmitted Not Done Inline ActionsWhy php_sapi is lowercase? There are many others below. ale: Why php_sapi is lowercase? There are many others below. | |||||
CGI_CONFIGURE_OFF= --disable-cgi | |||||
aleUnsubmitted Not Done Inline ActionsWhy not using XXX_CONFIGURE_ENABLE=cgi ? There are other occurrences below ale: Why not using XXX_CONFIGURE_ENABLE=cgi ? There are other occurrences below | |||||
.if ${PORT_OPTIONS:MCLI} | CLI_VARS= php_sapi+=cli | ||||
PHP_SAPI+= cli | CLI_CONFIGURE_OFF= --disable-cli | ||||
.else | DEBUG_CONFIGURE_ON= --enable-debug | ||||
CONFIGURE_ARGS+=--disable-cli | DTRACE_CONFIGURE_ON= --enable-dtrace | ||||
.endif | EMBED_VARS= PHP_SAPI+=embed | ||||
ENBED_CONFIGURE_ON= --enable-embed | |||||
.if ${PORT_OPTIONS:MCGI} | FPM_VARS= php_sapi+=fpm | ||||
PHP_SAPI+= cgi | FPM_CONFIGURE_ON= --enable-fpm \ | ||||
.else | |||||
CONFIGURE_ARGS+=--disable-cgi | |||||
.endif | |||||
.if ${PORT_OPTIONS:MFPM} | |||||
PHP_SAPI+= fpm | |||||
USE_RC_SUBR+= php-fpm | |||||
CONFIGURE_ARGS+=--enable-fpm \ | |||||
--with-fpm-user=${WWWOWN} \ | --with-fpm-user=${WWWOWN} \ | ||||
--with-fpm-group=${WWWGRP} | --with-fpm-group=${WWWGRP} | ||||
.endif | FPM_USE= rc_subr=php-fpm | ||||
IPV6_CONFIGURE_OFF= --disable-ipv6 | |||||
LINKTHR_LIBS= -lpthread | |||||
PHPDBG_VARS= php_sapi+=phpdbg | |||||
PHPDBG_CONFIGURE_ON= --enable-phpdbg | |||||
ZTS_CONFIGURE_ON= --enable-maintainer-zts | |||||
ZTS_CONFIGURE_ENV= pthreads_working="yes" | |||||
.if defined(PKGNAMEPREFIX) | .include <bsd.port.pre.mk> | ||||
USES+= apache:2.2+ | |||||
.if defined(PKGNAMEPREFIX) && ${PKGNAMEPREFIX} == "mod_" | |||||
# Apache module | |||||
USES+= apache:2.4+ | |||||
PKGNAMEPREFIX= ${APACHE_PKGNAMEPREFIX}mod_ | |||||
.include "${PORTSDIR}/Mk/Uses/apache.mk" | .include "${PORTSDIR}/Mk/Uses/apache.mk" | ||||
.if ${PORT_OPTIONS:MAP2FILTER} | |||||
CONFIGURE_ARGS+=--with-apxs2filter=${APXS} | |||||
.else | |||||
CONFIGURE_ARGS+=--with-apxs2=${APXS} | |||||
aleUnsubmitted Not Done Inline ActionsWhy --with-apx2=${APXS} was removed? ale: Why --with-apx2=${APXS} was removed? | |||||
.endif | |||||
PLIST= ${PKGDIR}/pkg-plist.mod | PLIST= ${PKGDIR}/pkg-plist.mod | ||||
PKGMESSAGE= ${PKGDIR}/pkg-message.mod | PKGMESSAGE= ${PKGDIR}/pkg-message.mod | ||||
MODULENAME= libphp7 | MODULENAME= libphp7 | ||||
SHORTMODNAME= php7 | SHORTMODNAME= php7 | ||||
WARNING= "!!! If you have a threaded Apache, you must build ${PHP_PORT} with ZTS support to enable thread-safety in extensions !!!" | WARNING= "!!! If you have a threaded Apache, you must build ${PHP_PORT} with ZTS support to enable thread-safety in extensions !!!" | ||||
.endif | .endif | ||||
.if ${PORT_OPTIONS:MEMBED} | .if ${PORT_OPTIONS:MPHPDBG} && ${PORT_OPTIONS:MDEBUG} | ||||
PHP_SAPI+= embed | |||||
CONFIGURE_ARGS+=--enable-embed | |||||
.endif | |||||
.if ${PORT_OPTIONS:MPHPDBG} | |||||
PHP_SAPI+= phpdbg | |||||
CONFIGURE_ARGS+=--enable-phpdbg | |||||
.if ${PORT_OPTIONS:MDEBUG} | |||||
CONFIGURE_ARGS+=--enable-phpdbg-debug | CONFIGURE_ARGS+=--enable-phpdbg-debug | ||||
.endif | .endif | ||||
.endif | |||||
.if ${PORT_OPTIONS:MCLI} || ${PORT_OPTIONS:MEMBED} | .if ${PORT_OPTIONS:MCLI} || ${PORT_OPTIONS:MEMBED} | ||||
PLIST_SUB+= SAPI_INC="" | PLIST_SUB+= SAPI_INC="" | ||||
.else | .else | ||||
PLIST_SUB+= SAPI_INC="@comment " | PLIST_SUB+= SAPI_INC="@comment " | ||||
.endif | .endif | ||||
CONFIGURE_ENV+= ac_cv_decimal_fp_supported="no" \ | |||||
lt_cv_path_SED="sed" | |||||
.if ${PORT_OPTIONS:MLINKTHR} | |||||
LIBS+= -lpthread | |||||
.endif | |||||
.if ${PORT_OPTIONS:MDEBUG} | |||||
CONFIGURE_ARGS+=--enable-debug | |||||
.endif | |||||
.if ${PORT_OPTIONS:MZTS} | |||||
CONFIGURE_ARGS+=--enable-maintainer-zts | |||||
CONFIGURE_ENV+= pthreads_working="yes" | |||||
.endif | |||||
.if ${PORT_OPTIONS:MDTRACE} | |||||
CONFIGURE_ARGS+=--enable-dtrace | |||||
PLIST_SUB+= DTRACE="" | |||||
.else | |||||
PLIST_SUB+= DTRACE="@comment " | |||||
.endif | |||||
.if empty(PORT_OPTIONS:MIPV6) | |||||
CONFIGURE_ARGS+=--disable-ipv6 | |||||
.endif | |||||
post-patch: | post-patch: | ||||
@${TOUCH} ${WRKSRC}/ext/php_config.h | @${TOUCH} ${WRKSRC}/ext/php_config.h | ||||
@${REINPLACE_CMD} "s|^\(extension_dir\)|; \1|" ${WRKSRC}/php.ini-* | @${REINPLACE_CMD} "s|^\(extension_dir\)|; \1|" ${WRKSRC}/php.ini-* | ||||
.if ${PORT_OPTIONS:MFPM} | |||||
post-patch-FPM-on: | |||||
@${REINPLACE_CMD} -e "s|^;\(pid\)|\1|;s|^;\(pm\.[a-z_]*_servers\)|\1|" \ | @${REINPLACE_CMD} -e "s|^;\(pid\)|\1|;s|^;\(pm\.[a-z_]*_servers\)|\1|" \ | ||||
${WRKSRC}/sapi/fpm/php-fpm.conf.in | ${WRKSRC}/sapi/fpm/php-fpm.conf.in | ||||
.endif | |||||
pre-configure: | pre-configure: | ||||
@(cd ${WRKSRC} && ${SETENV} MAKE=${MAKE_CMD} ./buildconf --force) | @(cd ${WRKSRC} && ${SETENV} MAKE=${MAKE_CMD} ./buildconf --force) | ||||
.if !defined(PKGNAMEPREFIX) | .if !defined(PKGNAMEPREFIX) | ||||
post-build: | post-build: | ||||
@${ECHO_CMD} "PHP_VER=73" > ${WRKDIR}/php.conf | @${ECHO_CMD} "PHP_VER=73" > ${WRKDIR}/php.conf | ||||
@${ECHO_CMD} "PHP_VERSION=${PORTVERSION}" >> ${WRKDIR}/php.conf | @${ECHO_CMD} "PHP_VERSION=${PORTVERSION}" >> ${WRKDIR}/php.conf | ||||
Show All 10 Lines | ${INSTALL_DATA} ${WRKSRC}/php.ini-development ${WRKSRC}/php.ini-production \ | ||||
${WRKDIR}/php.conf ${STAGEDIR}/${PREFIX}/etc | ${WRKDIR}/php.conf ${STAGEDIR}/${PREFIX}/etc | ||||
.else | .else | ||||
do-install: | do-install: | ||||
${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR} | ${MKDIR} ${STAGEDIR}${PREFIX}/${APACHEMODDIR} | ||||
${INSTALL_LIB} ${WRKSRC}/libs/${MODULENAME}.so \ | ${INSTALL_LIB} ${WRKSRC}/libs/${MODULENAME}.so \ | ||||
${STAGEDIR}${PREFIX}/${APACHEMODDIR} | ${STAGEDIR}${PREFIX}/${APACHEMODDIR} | ||||
.endif | .endif | ||||
.else | .else # !defined(PKGNAMESUFFIX) | ||||
.include "${MASTERDIR}/Makefile.ext" | .include "${MASTERDIR}/Makefile.ext" | ||||
.endif | .endif # !defined(PKGNAMESUFFIX) | ||||
.include <bsd.port.post.mk> | .include <bsd.port.post.mk> |
This looks duplicated, line 54