Mercurial > hgrepos > FreeBSD > ports > www > uwsginl
annotate Makefile @ 8:9bc73563b595
Use the UWSGI_PROFILE_OVERRIDE environment variable instead of appending to the build profile configuration file.
For now: just plugin_dir is configured with this method.
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Sat, 16 Sep 2017 00:52:44 +0200 |
| parents | a6ab1247fe1f |
| children | c54e231ccdf7 |
| rev | line source |
|---|---|
|
2
003d10e103ef
A new port named www/uwsginl which is www/uwsi with the "nolang" profile and some additional embedded plugins.
Franz Glasner <hg@dom66.de>
parents:
0
diff
changeset
|
1 # Created by: Franz Glasner <freebsd-dev@dom66.de> |
|
003d10e103ef
A new port named www/uwsginl which is www/uwsi with the "nolang" profile and some additional embedded plugins.
Franz Glasner <hg@dom66.de>
parents:
0
diff
changeset
|
2 # $FreeBSD$ |
|
003d10e103ef
A new port named www/uwsginl which is www/uwsi with the "nolang" profile and some additional embedded plugins.
Franz Glasner <hg@dom66.de>
parents:
0
diff
changeset
|
3 # Based on www/uwsgi by: Daniel Gerzo <danger@FreeBSD.org> |
|
0
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
4 |
|
2
003d10e103ef
A new port named www/uwsginl which is www/uwsi with the "nolang" profile and some additional embedded plugins.
Franz Glasner <hg@dom66.de>
parents:
0
diff
changeset
|
5 PORTNAME= uwsginl |
|
003d10e103ef
A new port named www/uwsginl which is www/uwsi with the "nolang" profile and some additional embedded plugins.
Franz Glasner <hg@dom66.de>
parents:
0
diff
changeset
|
6 DISTVERSION= 2.0.15 |
|
003d10e103ef
A new port named www/uwsginl which is www/uwsi with the "nolang" profile and some additional embedded plugins.
Franz Glasner <hg@dom66.de>
parents:
0
diff
changeset
|
7 CATEGORIES= www |
|
0
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
8 MASTER_SITES= http://projects.unbit.it/downloads/ |
|
2
003d10e103ef
A new port named www/uwsginl which is www/uwsi with the "nolang" profile and some additional embedded plugins.
Franz Glasner <hg@dom66.de>
parents:
0
diff
changeset
|
9 DISTNAME= uwsgi-${DISTVERSION} |
|
0
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
10 |
|
2
003d10e103ef
A new port named www/uwsginl which is www/uwsi with the "nolang" profile and some additional embedded plugins.
Franz Glasner <hg@dom66.de>
parents:
0
diff
changeset
|
11 MAINTAINER= freebsd-dev@dom66.de |
|
4
ebd6edf33748
Shortened COMMENT because portlint complained
Franz Glasner <hg@dom66.de>
parents:
3
diff
changeset
|
12 COMMENT= Application host which uses the uwsgi protocol (nolang profile) |
|
0
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
13 |
|
6
6dfc8b8f2a4d
Added the correct customized license: GPLv2 with linking exception
Franz Glasner <hg@dom66.de>
parents:
5
diff
changeset
|
14 LICENSE= GPLv2-WITH-LINKING-EXCEPTION |
|
6dfc8b8f2a4d
Added the correct customized license: GPLv2 with linking exception
Franz Glasner <hg@dom66.de>
parents:
5
diff
changeset
|
15 LICENSE_GROUPS= FSF GPL OSI |
|
6dfc8b8f2a4d
Added the correct customized license: GPLv2 with linking exception
Franz Glasner <hg@dom66.de>
parents:
5
diff
changeset
|
16 LICENSE_NAME= GPLv2 with linking exception |
|
0
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
17 LICENSE_FILE= ${WRKSRC}/LICENSE |
|
6
6dfc8b8f2a4d
Added the correct customized license: GPLv2 with linking exception
Franz Glasner <hg@dom66.de>
parents:
5
diff
changeset
|
18 LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept |
|
0
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
19 |
|
2
003d10e103ef
A new port named www/uwsginl which is www/uwsi with the "nolang" profile and some additional embedded plugins.
Franz Glasner <hg@dom66.de>
parents:
0
diff
changeset
|
20 USES= pkgconfig python:build ssl |
|
0
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
21 USE_PYTHON= distutils |
|
2
003d10e103ef
A new port named www/uwsginl which is www/uwsi with the "nolang" profile and some additional embedded plugins.
Franz Glasner <hg@dom66.de>
parents:
0
diff
changeset
|
22 USE_RC_SUBR= uwsginl |
|
0
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
23 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
24 CFLAGS+= -I${OPENSSLINC} |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
25 LDFLAGS+= ${OPENSSL_LDFLAGS} |
|
8
9bc73563b595
Use the UWSGI_PROFILE_OVERRIDE environment variable instead of appending to the build profile configuration file.
Franz Glasner <hg@dom66.de>
parents:
7
diff
changeset
|
26 MAKE_ENV+= CPUCOUNT=${MAKE_JOBS_NUMBER} UWSGI_PROFILE=nolang.ini UWSGI_BIN_NAME=${PORTNAME} UWSGI_EMBED_PLUGINS=cgi,clock_realtime,echo,logpipe UWSGI_PROFILE_OVERRIDE=plugin_dir=${PREFIX}/${PLUGIN_DIR} |
|
0
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
27 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
28 PYSETUP= uwsgiconfig.py |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
29 PYDISTUTILS_BUILD_TARGET= --build |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
30 PYDISTUTILS_BUILDARGS= --verbose |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
31 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
32 USERS= uwsgi |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
33 GROUPS= uwsgi |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
34 |
|
3
cbc74218977f
Configure and prepare an empty directory for installing plugins
Franz Glasner <hg@dom66.de>
parents:
2
diff
changeset
|
35 PLIST_SUB= PORTNAME=${PORTNAME} PLUGIN_DIR=${PLUGIN_DIR} |
|
0
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
36 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
37 OPTIONS_DEFINE= DEBUG JSON PCRE XML |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
38 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
39 DEBUG_VARS= PYDISTUTILS_BUILDARGS+=--debug |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
40 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
41 JSON_VARS= BUILDCONF_JSON=jansson |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
42 JSON_LIB_DEPENDS= libjansson.so:devel/jansson |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
43 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
44 PCRE_VARS= BUILDCONF_PCRE=true |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
45 PCRE_LIB_DEPENDS= libpcre.so:devel/pcre |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
46 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
47 XML_VARS= BUILDCONF_XML=libxml2 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
48 XML_LIB_DEPENDS= libxml2.so:textproc/libxml2 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
49 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
50 .include <bsd.port.options.mk> |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
51 |
|
3
cbc74218977f
Configure and prepare an empty directory for installing plugins
Franz Glasner <hg@dom66.de>
parents:
2
diff
changeset
|
52 PLUGIN_DIR= lib/${PORTNAME}/plugins |
|
cbc74218977f
Configure and prepare an empty directory for installing plugins
Franz Glasner <hg@dom66.de>
parents:
2
diff
changeset
|
53 |
|
0
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
54 post-patch: |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
55 .for var in JSON PCRE XML |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
56 @${REINPLACE_CMD} -e '/^${var:tl} =/ s|= .*|= ${BUILDCONF_${var}:Ufalse}|' ${WRKSRC}/buildconf/base.ini |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
57 .endfor |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
58 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
59 do-configure: |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
60 @${DO_NADA} |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
61 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
62 do-install: |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
63 ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/ |
|
3
cbc74218977f
Configure and prepare an empty directory for installing plugins
Franz Glasner <hg@dom66.de>
parents:
2
diff
changeset
|
64 ${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR} |
|
0
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
65 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
66 .include <bsd.port.mk> |
