annotate uwsginl-plugin-lang-pypy3/Makefile @ 99:ce09461b99ec

Use the new PORTVERSION in plugin builds also: commit date and commit id
author Franz Glasner <fzglas.hg@dom66.de>
date Wed, 22 Jul 2020 21:12:31 +0200
parents 3e92a10a2c96
children cc494d5ae895
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
99
ce09461b99ec Use the new PORTVERSION in plugin builds also: commit date and commit id
Franz Glasner <fzglas.hg@dom66.de>
parents: 90
diff changeset
5 #DISTVERSION= 2.0.18
ce09461b99ec Use the new PORTVERSION in plugin builds also: commit date and commit id
Franz Glasner <fzglas.hg@dom66.de>
parents: 90
diff changeset
6 PORTVERSION= 2.0.18g20200709s${GH_TAGNAME}
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
7 CATEGORIES= www python
89
40e8d1ee1651 Use current GitHub head of trunk with master ports py3 and pypy3 also.
Franz Glasner <f.glasner@feldmann-mg.com>
parents: 88
diff changeset
8 # Use GitHub id for now (before official 2.1); see below
40e8d1ee1651 Use current GitHub head of trunk with master ports py3 and pypy3 also.
Franz Glasner <f.glasner@feldmann-mg.com>
parents: 88
diff changeset
9 #MASTER_SITES= https://projects.unbit.it/downloads/
40e8d1ee1651 Use current GitHub head of trunk with master ports py3 and pypy3 also.
Franz Glasner <f.glasner@feldmann-mg.com>
parents: 88
diff changeset
10 #DISTNAME= uwsgi-${DISTVERSION}
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
11
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 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
13 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
14
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= 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_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
17 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
18 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
19 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
20
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 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
22 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
23 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
24 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
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 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
27
89
40e8d1ee1651 Use current GitHub head of trunk with master ports py3 and pypy3 also.
Franz Glasner <f.glasner@feldmann-mg.com>
parents: 88
diff changeset
28 .include "${.CURDIR}/../uwsginl/Makefile.gh"
40e8d1ee1651 Use current GitHub head of trunk with master ports py3 and pypy3 also.
Franz Glasner <f.glasner@feldmann-mg.com>
parents: 88
diff changeset
29
90
3e92a10a2c96 For the PyPy3-plugin: use the proper shared library name for FreeBSD: libpypy3-co.so.
Franz Glasner <f.glasner@feldmann-mg.com>
parents: 89
diff changeset
30 EXTRA_PATCHES= ${.CURDIR}/files/extra
3e92a10a2c96 For the PyPy3-plugin: use the proper shared library name for FreeBSD: libpypy3-co.so.
Franz Glasner <f.glasner@feldmann-mg.com>
parents: 89
diff changeset
31
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
32 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
33
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 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
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 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
37
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 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
39 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
40 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
41
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 # 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
43 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
44 # 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
45 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
46 # 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
47 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
48
88
098130d0f0f0 All plugins by default use the PATCHDIR of the uwsginl binary.
Franz Glasner <fzglas.hg@dom66.de>
parents: 77
diff changeset
49 # 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
50 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
51
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
52 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
53 @${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
54
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 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
56 @${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
57 @(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
58
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
59 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
60 ${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
61
278470dc420d Provide a "pypy3"-plugin project and make the PyPy-plugin compile properly on FreeBSD.
Franz Glasner <fzglas.hg@dom66.de>
parents:
diff changeset
62 .include <bsd.port.mk>