Mercurial > hgrepos > FreeBSD > ports > www > uwsginl
annotate Makefile @ 9:c54e231ccdf7
Don't use Python's setuptools; this removes the superfluous runtime-dependency on Python's setuptools
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Sun, 24 Sep 2017 01:16:20 +0200 |
| parents | 9bc73563b595 |
| children | 9916e049d554 |
| 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 |
|
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
|
21 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
|
22 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
23 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
|
24 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
|
25 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
|
26 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
27 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
|
28 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
|
29 |
|
3
cbc74218977f
Configure and prepare an empty directory for installing plugins
Franz Glasner <hg@dom66.de>
parents:
2
diff
changeset
|
30 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
|
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 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
|
33 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
34 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
|
35 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
36 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
|
37 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
|
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 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
|
40 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
|
41 |
|
9
c54e231ccdf7
Don't use Python's setuptools; this removes the superfluous runtime-dependency on Python's setuptools
Franz Glasner <hg@dom66.de>
parents:
8
diff
changeset
|
42 PYSETUP= uwsgiconfig.py |
|
c54e231ccdf7
Don't use Python's setuptools; this removes the superfluous runtime-dependency on Python's setuptools
Franz Glasner <hg@dom66.de>
parents:
8
diff
changeset
|
43 PYDISTUTILS_BUILD_TARGET= --build |
|
c54e231ccdf7
Don't use Python's setuptools; this removes the superfluous runtime-dependency on Python's setuptools
Franz Glasner <hg@dom66.de>
parents:
8
diff
changeset
|
44 PYDISTUTILS_BUILDARGS= --verbose |
|
c54e231ccdf7
Don't use Python's setuptools; this removes the superfluous runtime-dependency on Python's setuptools
Franz Glasner <hg@dom66.de>
parents:
8
diff
changeset
|
45 |
|
0
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
46 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
|
47 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
|
48 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
49 .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
|
50 |
|
3
cbc74218977f
Configure and prepare an empty directory for installing plugins
Franz Glasner <hg@dom66.de>
parents:
2
diff
changeset
|
51 PLUGIN_DIR= lib/${PORTNAME}/plugins |
|
cbc74218977f
Configure and prepare an empty directory for installing plugins
Franz Glasner <hg@dom66.de>
parents:
2
diff
changeset
|
52 |
|
0
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
53 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
|
54 .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
|
55 @${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
|
56 .endfor |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
57 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
58 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
|
59 @${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
|
60 |
|
9
c54e231ccdf7
Don't use Python's setuptools; this removes the superfluous runtime-dependency on Python's setuptools
Franz Glasner <hg@dom66.de>
parents:
8
diff
changeset
|
61 do-build: |
|
c54e231ccdf7
Don't use Python's setuptools; this removes the superfluous runtime-dependency on Python's setuptools
Franz Glasner <hg@dom66.de>
parents:
8
diff
changeset
|
62 @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} uwsgiconfig.py --build --verbose) |
|
c54e231ccdf7
Don't use Python's setuptools; this removes the superfluous runtime-dependency on Python's setuptools
Franz Glasner <hg@dom66.de>
parents:
8
diff
changeset
|
63 |
|
0
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
64 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
|
65 ${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
|
66 ${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
|
67 |
|
748e69c58ee3
Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff
changeset
|
68 .include <bsd.port.mk> |
