Mercurial > hgrepos > FreeBSD > ports > www > uwsginl
diff uwsginl-plugin-lang-pypy3/Makefile @ 158:661720cf51a3
Begin flavorizing of the pypy3 plugin to also handle PyPy3.9.
BUGS: Does not work yet because the corresponding pypy_setup.py is not adjusted properly yet.
| author | Franz Glasner <f.glasner@feldmann-mg.com> |
|---|---|
| date | Wed, 12 Oct 2022 17:25:50 +0200 |
| parents | 8bb446cd21c1 |
| children | 6d5943538043 |
line wrap: on
line diff
--- a/uwsginl-plugin-lang-pypy3/Makefile Wed Oct 12 16:03:18 2022 +0200 +++ b/uwsginl-plugin-lang-pypy3/Makefile Wed Oct 12 17:25:50 2022 +0200 @@ -18,6 +18,11 @@ LICENSE_FILE= ${WRKSRC}/LICENSE LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept +FLAVORS= pypy3 pypy38 pypy39 +FLAVOR?= ${FLAVORS:[1]} + +PKGNAMEPREFIX= ${FLAVOR}- + BUILD_DEPENDS+= ${UWSGI_NAME}==${PORTVERSION}:www/uwsginl BUILD_DEPENDS+= pypy3>=6:lang/pypy3 RUN_DEPENDS+= ${UWSGI_NAME}==${PORTVERSION}:www/uwsginl @@ -32,6 +37,22 @@ PLIST_FILES= ${PLUGIN_DIR}/${PLUGIN_FILENAME} +.if ${FLAVOR} == pypy3 +PLUGIN_NAME= pypy3 +PYPY_LDLIBRARY= libpypy3-c.so +PYPY_LIBDIR= lib_pypy +.elif ${FLAVOR} == pypy38 +PLUGIN_NAME= pypy3 +PYPY_LDLIBRARY= libpypy3-c.so +PYPY_LIBDIR= lib/pypy3.8 +.elif ${FLAVOR} == pypy39 +PLUGIN_NAME= pypy39 +PYPY_LDLIBRARY= libpypy3.9-c.so +PYPY_LIBDIR= lib/pypy3.9 +.endif + +CFLAGS+= -DPYPY_LDLIBRARY="${PYPY_LDLIBRARY}" -DPYPY_LIBDIR="${PYPY_LIBDIR}" -DPYPY_PLUGIN_NAME="${PLUGIN_NAME}" + MAKE_ENV+= UWSGI_PROFILE_OVERRIDE="plugin_build_dir=${STAGEDIR}${PREFIX}/${PLUGIN_DIR};plugin_dir=${PREFIX}/${PLUGIN_DIR}" PYTHON=${LOCALBASE}/bin/pypy3 DESCR= pkg-descr @@ -40,8 +61,6 @@ UWSGI_PATH= ${LOCALBASE}/bin/${UWSGI_NAME} PLUGIN_DIR= lib/${UWSGI_NAME}/plugins -# The name of the plugin to be created (to eventually distingush py2 and py3) -PLUGIN_NAME= pypy3 # Where to find the sources for the plugin (defaults to plugins/${PLUGIN_NAME}) PLUGIN_SOURCE= plugins/pypy # The complete basename of the plugin
