annotate Makefile @ 5:6037a4e53f28

Cleanup
author Franz Glasner <hg@dom66.de>
date Fri, 15 Sep 2017 22:51:34 +0200
parents ebd6edf33748
children 6dfc8b8f2a4d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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
748e69c58ee3 Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff changeset
14 LICENSE= GPLv2
748e69c58ee3 Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff changeset
15 LICENSE_FILE= ${WRKSRC}/LICENSE
748e69c58ee3 Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff changeset
16
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
17 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
18 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
19 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
20
748e69c58ee3 Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff changeset
21 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
22 LDFLAGS+= ${OPENSSL_LDFLAGS}
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
23 MAKE_ENV+= CPUCOUNT=${MAKE_JOBS_NUMBER} UWSGI_PROFILE=nolang.ini UWSGI_EMBED_PLUGINS=cgi,clock_realtime,echo,logpipe
0
748e69c58ee3 Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff changeset
24
748e69c58ee3 Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff changeset
25 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
26 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
27 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
28
748e69c58ee3 Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff changeset
29 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
30 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
31
3
cbc74218977f Configure and prepare an empty directory for installing plugins
Franz Glasner <hg@dom66.de>
parents: 2
diff changeset
32 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
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 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
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 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
37
748e69c58ee3 Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff changeset
38 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
39 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
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 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
42 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
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 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
45 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
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 .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
48
3
cbc74218977f Configure and prepare an empty directory for installing plugins
Franz Glasner <hg@dom66.de>
parents: 2
diff changeset
49 PLUGIN_DIR= lib/${PORTNAME}/plugins
cbc74218977f Configure and prepare an empty directory for installing plugins
Franz Glasner <hg@dom66.de>
parents: 2
diff changeset
50
0
748e69c58ee3 Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff changeset
51 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
52 .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
53 @${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
54 .endfor
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
55 echo "bin_name = ${PORTNAME}" >> ${WRKSRC}/buildconf/nolang.ini
3
cbc74218977f Configure and prepare an empty directory for installing plugins
Franz Glasner <hg@dom66.de>
parents: 2
diff changeset
56 echo "plugin_dir = ${PREFIX}/${PLUGIN_DIR}" >> ${WRKSRC}/buildconf/nolang.ini
0
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
748e69c58ee3 Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff changeset
61 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
62 ${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
63 ${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
64
748e69c58ee3 Added the FreeBSD port www/uwsgi as of 2017-09-13 as origin port
Franz Glasner <hg@dom66.de>
parents:
diff changeset
65 .include <bsd.port.mk>