annotate uwsginl-plugin-lang-pypy3/Makefile @ 88:098130d0f0f0

All plugins by default use the PATCHDIR of the uwsginl binary. So: All plugin-specific patches should be done there.
author Franz Glasner <fzglas.hg@dom66.de>
date Mon, 15 Jun 2020 09:42:50 +0200
parents 278470dc420d
children 40e8d1ee1651
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
77
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
1 # Created by: Franz Glasner <freebsd-dev@dom66.de>
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
2 # $FreeBSD$
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
3
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
4 PORTNAME= ${UWSGI_NAME}-plugin-lang-pypy3
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
5 DISTVERSION= 2.0.18
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
6 CATEGORIES= www python
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
7 MASTER_SITES= https://projects.unbit.it/downloads/
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
8 DISTNAME= uwsgi-${DISTVERSION}
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
9
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
10 MAINTAINER= freebsd-dev@dom66.de
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
11 COMMENT= Language plugin for PyPy 3
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
12
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
13 LICENSE= GPLv2-WITH-LINKING-EXCEPTION
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
14 LICENSE_GROUPS= FSF GPL OSI
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
15 LICENSE_NAME= GPLv2 with linking exception
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
16 LICENSE_FILE= ${WRKSRC}/LICENSE
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
17 LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
18
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
19 BUILD_DEPENDS+= ${UWSGI_NAME}==${PORTVERSION}:www/uwsginl
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
20 BUILD_DEPENDS+= pypy3>=6:lang/pypy3
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
21 RUN_DEPENDS+= ${UWSGI_NAME}==${PORTVERSION}:www/uwsginl
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
22 RUN_DEPENDS+= pypy3>=6:lang/pypy3
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
23
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
24 USES= gettext-runtime pkgconfig
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
25
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
26 PLIST_FILES= ${PLUGIN_DIR}/${PLUGIN_FILENAME}
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
27
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
28 MAKE_ENV+= UWSGI_PROFILE_OVERRIDE="plugin_build_dir=${STAGEDIR}${PREFIX}/${PLUGIN_DIR};plugin_dir=${PREFIX}/${PLUGIN_DIR}" PYTHON=/usr/local/bin/pypy3
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
29
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
30 DESCR= pkg-descr
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
31
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
32 UWSGI_NAME= uwsginl
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
33 UWSGI_PATH= ${LOCALBASE}/bin/${UWSGI_NAME}
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
34 PLUGIN_DIR= lib/${UWSGI_NAME}/plugins
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
35
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
36 # The name of the plugin to be created (to eventually distingush py2 and py3)
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
37 PLUGIN_NAME= pypy3
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
38 # Where to find the sources for the plugin (defaults to plugins/${PLUGIN_NAME})
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
39 PLUGIN_SOURCE= plugins/pypy
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
40 # The complete basename of the plugin
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
41 PLUGIN_FILENAME= ${PLUGIN_NAME}_plugin.so
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
42
88
098130d0f0f0 All plugins by default use the PATCHDIR of the uwsginl binary.
Franz Glasner <fzglas.hg@dom66.de>
parents: 77
diff changeset
43 # Use the PATCHDIR of the binary executable by default
098130d0f0f0 All plugins by default use the PATCHDIR of the uwsginl binary.
Franz Glasner <fzglas.hg@dom66.de>
parents: 77
diff changeset
44 PATCHDIR?= ${.CURDIR}/../uwsginl/files
098130d0f0f0 All plugins by default use the PATCHDIR of the uwsginl binary.
Franz Glasner <fzglas.hg@dom66.de>
parents: 77
diff changeset
45
77
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
46 do-configure:
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
47 @${DO_NADA}
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
48
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
49 do-build:
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
50 @${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR}
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
51 @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${UWSGI_PATH} --build-plugin "${PLUGIN_SOURCE} ${PLUGIN_NAME}")
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
52
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
53 do-install:
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
54 ${INSTALL_LIB} ${BUILD_WRKSRC}/${PLUGIN_FILENAME} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR}
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
55
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
56 .include <bsd.port.mk>