Mercurial > hgrepos > FreeBSD > ports > www > uwsginl
changeset 123:ac6c2cfa7412
ADD: a new language plugin for PHP 7.4
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sun, 16 May 2021 18:08:19 +0200 |
| parents | 8819c54ac8a2 |
| children | d63197b47ec3 |
| files | uwsginl-plugin-lang-php74/Makefile uwsginl-plugin-lang-php74/pkg-descr |
| diffstat | 2 files changed, 32 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- /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-dev@dom66.de> +# $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"
