Mercurial > hgrepos > FreeBSD > ports > www > uwsginl
changeset 14:f364d1d48c3e
Added an option to enable internal UWSGI debugging.
Change the "DEBUG" option to "DEBUGSYM" because it only adds debug symbols to the artifacts.
Note: This settings are propagated to plugin builds also.
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Sun, 24 Sep 2017 13:42:02 +0200 |
| parents | 9086ac6e44fb |
| children | 05c6f16908de |
| files | Makefile |
| diffstat | 1 files changed, 9 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/Makefile Sun Sep 24 13:32:42 2017 +0200 +++ b/Makefile Sun Sep 24 13:42:02 2017 +0200 @@ -29,9 +29,13 @@ PLIST_SUB= PORTNAME=${PORTNAME} PLUGIN_DIR=${PLUGIN_DIR} -OPTIONS_DEFINE= DEBUG JSON PCRE XML +OPTIONS_DEFINE= DEBUGSYM UWSGIDEBUG JSON PCRE XML +DEBUGSYM_DESC= Build with debug symbols +UWSGIDEBUG_DESC= Enable uwsgi debugging (def UWSGI_DEBUG, implies DEBUG) -DEBUG_VARS= PYDISTUTILS_BUILDARGS+=--debug +DEBUGSYM_VARS= EXTRA_BUILDARGS+=--debug + +UWSGIDEBUG_VARS= BUILDCONF_DEBUG=true JSON_VARS= BUILDCONF_JSON=jansson JSON_LIB_DEPENDS= libjansson.so:devel/jansson @@ -47,15 +51,15 @@ PLUGIN_DIR= lib/${PORTNAME}/plugins post-patch: -.for var in JSON PCRE XML - @${REINPLACE_CMD} -e '/^${var:tl} =/ s|= .*|= ${BUILDCONF_${var}:Ufalse}|' ${WRKSRC}/buildconf/base.ini +.for bcvar in DEBUG JSON PCRE XML + @${REINPLACE_CMD} -e '/^${bcvar:tl} =/ s|= .*|= ${BUILDCONF_${bcvar}:Ufalse}|' ${WRKSRC}/buildconf/base.ini .endfor do-configure: @${DO_NADA} do-build: - @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} uwsgiconfig.py --build --verbose) + @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PYTHON_CMD} uwsgiconfig.py --build ${EXTRA_BUILDARGS} --verbose) do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
