# HG changeset patch # User Franz Glasner # Date 1621181299 -7200 # Node ID ac6c2cfa7412f19f5a08a0abe137a5d23e525618 # Parent 8819c54ac8a20b32c0884a4368037cd27319e92b ADD: a new language plugin for PHP 7.4 diff -r 8819c54ac8a2 -r ac6c2cfa7412 uwsginl-plugin-lang-php74/Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uwsginl-plugin-lang-php74/Makefile Sun May 16 18:08:19 2021 +0200 @@ -0,0 +1,29 @@ +# Created by: Franz Glasner +# $FreeBSD$ + +PORTNAME= ${UWSGI_NAME}-plugin-lang-php74 +CATEGORIES= www lang devel + +COMMENT= Language plugin for PHP 7.4 + +LIB_DEPENDS+= libxml2.so:textproc/libxml2 \ + libpcre.so:devel/pcre + +USES= php:build,embed +USE_PHP= session:build xml:build +PHP_VER= 74 +DEFAULT_VERSIONS+= php=${PHP_VER} + +MASTERDIR= ${.CURDIR}/../uwsginl-plugin-lang-py3 + +PLUGIN_NAME= php74 +PLUGIN_SOURCE= plugins/php + +# +# Check whether uwsginl has been built with both libpcre and libxml2 +# +pre-build: + @( ${UWSGI_PATH} --no-server --cflags | ${GREP} -- '-DUWSGI_XML_LIBXML2' >/dev/null ) || ( echo "Error: ${UWSGI_PATH} needs to be built with XML support (libxml2)" && exit 1 ) + @( ${UWSGI_PATH} --no-server --cflags | ${GREP} -- '-DUWSGI_PCRE' >/dev/null ) || ( echo "Error: ${UWSGI_PATH} needs to be built with PCRE support (libpcre)" && exit 1 ) + +.include "${MASTERDIR}/Makefile" diff -r 8819c54ac8a2 -r ac6c2cfa7412 uwsginl-plugin-lang-php74/pkg-descr --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/uwsginl-plugin-lang-php74/pkg-descr Sun May 16 18:08:19 2021 +0200 @@ -0,0 +1,3 @@ +PHP7.4 language plugin (interpreter) for uwsginl. + +WWW: https://projects.unbit.it/uwsgi/