24 lines
660 B
Makefile
24 lines
660 B
Makefile
BROKEN-sparc64= compile check for php-embed fails
|
|
# see nxt_feature="PHP embed SAPI" check in auto/modules/php
|
|
# doesn't fail on amd64 with USE_LLD=No or COMPILER=ports-gcc
|
|
|
|
UNIT_MODNAME= php${MODPHP_VERSION}
|
|
UNIT_SHORTNAME= ${FLAVOR}
|
|
|
|
MODULES= lang/php
|
|
|
|
FLAVORS= php74 php80 php81 php82
|
|
FLAVOR?= php74
|
|
MODPHP_VERSION= ${FLAVOR:C/php([0-9])([0-9])/\1.\2/}
|
|
MODPHP_BUILDDEP= Yes
|
|
|
|
RUN_DEPENDS= lang/php/${MODPHP_VERSION},embed,-embed
|
|
BUILD_DEPENDS= lang/php/${MODPHP_VERSION},embed,-embed
|
|
|
|
post-configure:
|
|
cd ${WRKSRC} && ./configure php \
|
|
--config=${MODPHP_PHP_CONFIG} \
|
|
--lib-path=${MODPHP_LIBDIR} \
|
|
--module=php${MODPHP_VERSION}
|
|
|
|
.include <bsd.port.mk>
|