annotate uwsginl-plugin-lang-php71/Makefile @ 93:c2215874f6a2

Patch pypy_setup.py for proper PY3 compatibility. Patch is adapted from https://github.com/cxylpy/uwsgi-pypy-python3 and https://github.com/operasoftware/uwsgi-pypy-python3 See also: - https://github.com/unbit/uwsgi-docs/compare/master...gralance:patch-1 - https://github.com/unbit/uwsgi/issues/869 Here are some performance numbers: - https://www.programmersought.com/article/6518848518/
author Franz Glasner <fzglas.hg@dom66.de>
date Tue, 16 Jun 2020 23:56:15 +0200
parents d6afe642b5b9
children 4ddf40c2765a
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
44
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
1 # Created by: Franz Glasner <freebsd-dev@dom66.de>
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
2 # $FreeBSD$
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
3
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
4 PORTNAME= ${UWSGI_NAME}-plugin-lang-php71
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
5 CATEGORIES= www lang devel
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
6
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
7 COMMENT= Language plugin for PHP 7.1
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
8
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
9 LIB_DEPENDS+= libxml2.so:textproc/libxml2 \
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
10 libpcre.so:devel/pcre
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
11
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
12 USES= php:build,embed
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
13 USE_PHP= session:build xml:build
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
14 PHP_VER= 71
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
15 DEFAULT_VERSIONS+= php=${PHP_VER}
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
16
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
17 MASTERDIR= ${.CURDIR}/../uwsginl-plugin-lang-py3
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
18
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
19 PLUGIN_NAME= php71
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
20 PLUGIN_SOURCE= plugins/php
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
21
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
22 #
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
23 # Check whether uwsginl has been built with both libpcre and libxml2
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
24 #
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
25 pre-build:
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
26 @( ${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 )
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
27 @( ${UWSGI_PATH} --no-server --cflags | ${GREP} -- '-DUWSGI_PCRE' >/dev/null ) || ( echo "Error: ${UWSGI_PATH} needs to be built with PCRE support (libpcre)" && exit 1 )
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
28
f7ab3bf59fc1 The PHP7.1 language plugin (interpreter) for www/uwsginl.
Franz Glasner <hg@dom66.de>
parents:
diff changeset
29 .include "${MASTERDIR}/Makefile"