# HG changeset patch # User Franz Glasner # Date 1506270097 -7200 # Node ID f7ab3bf59fc165b53fb5bcb7a86e62ca89c7d63a The PHP7.1 language plugin (interpreter) for www/uwsginl. Needs the php71 port to be built with PCRE (libpcre) and XML (libxml2) support. diff -r 000000000000 -r f7ab3bf59fc1 .hgignore --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/.hgignore Sun Sep 24 18:21:37 2017 +0200 @@ -0,0 +1,3 @@ +syntax: regexp + +^work/ diff -r 000000000000 -r f7ab3bf59fc1 Makefile --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/Makefile Sun Sep 24 18:21:37 2017 +0200 @@ -0,0 +1,29 @@ +# Created by: Franz Glasner +# $FreeBSD$ + +PORTNAME= ${UWSGI_NAME}-plugin-lang-php71 +CATEGORIES= www lang devel + +COMMENT= Language plugin for PHP 7.1 + +LIB_DEPENDS+= libxml2.so:textproc/libxml2 \ + libpcre.so:devel/pcre + +USES= php:build,embed +USE_PHP= session:build xml:build +PHP_VER= 71 +DEFAULT_VERSIONS+= php=${PHP_VER} + +MASTERDIR= ${.CURDIR}/../uwsginl-plugin-lang-py3 + +PLUGIN_NAME= php71 +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 000000000000 -r f7ab3bf59fc1 pkg-descr --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/pkg-descr Sun Sep 24 18:21:37 2017 +0200 @@ -0,0 +1,3 @@ +PHP7.1 language plugin (interpreter) for uwsginl. + +WWW: http://projects.unbit.it/uwsgi/