mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-23 09:10:43 +00:00
3d9a815d9c
The logic in USES=python will automatically convert this to 3.8+ by itself. Adjust two ports that only had Python 3.7 mentioned but build fine on Python 3.8 too. finance/quickfix: mark BROKEN with PYTHON libtool: compile: c++ -DHAVE_CONFIG_H -I. -I../.. -I -I. -I.. -I../.. -I../C++ -DLIBICONV_PLUG -DPYTHON_MAJOR_VERSION=3 -Wno-unused-variable -Wno-maybe-uninitialized -O2 -pipe -DLIBICONV_PLUG -fstack-protector-strong -fno-strict-aliasing -DLIBICONV_PLUG -Wall -ansi -Wno-unused-command-line-argument -Wpointer-arith -Wwrite-strings -Wno-overloaded-virtual -Wno-deprecated-declarations -Wno-deprecated -std=c++0x -MT _quickfix_la-QuickfixPython.lo -MD -MP -MF .deps/_quickfix_la-QuickfixPython.Tpo -c QuickfixPython.cpp -fPIC -DPIC -o .libs/_quickfix_la-QuickfixPython.o warning: unknown warning option '-Wno-maybe-uninitialized'; did you mean '-Wno-uninitialized'? [-Wunknown-warning-option] QuickfixPython.cpp:175:11: fatal error: 'Python.h' file not found ^~~~~~~~~~ 1 warning and 1 error generated. Reviewed by: portmgr, vishwin, yuri Differential Revision: <https://reviews.freebsd.org/D40568>
86 lines
2.0 KiB
Makefile
86 lines
2.0 KiB
Makefile
PORTNAME= uwsgi
|
|
PORTVERSION= 2.0.21
|
|
CATEGORIES= www python
|
|
PKGNAMESUFFIX= ${PYTHON_PKGNAMESUFFIX}
|
|
|
|
MAINTAINER= amdmi3@FreeBSD.org
|
|
COMMENT= Developer-friendly WSGI server which uses uwsgi protocol
|
|
WWW= https://projects.unbit.it/uwsgi/
|
|
|
|
LICENSE= GPLv2
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
USES= cpe pkgconfig python
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= unbit
|
|
USE_PYTHON= distutils concurrent
|
|
USE_RC_SUBR= uwsgi
|
|
CPE_VENDOR= unbit
|
|
|
|
MAKE_ENV+= CPUCOUNT=${MAKE_JOBS_NUMBER} UWSGI_EMBED_PLUGINS=cgi
|
|
|
|
PYSETUP= uwsgiconfig.py
|
|
PYDISTUTILS_BUILD_TARGET= --build
|
|
PYDISTUTILS_BUILDARGS= --verbose
|
|
|
|
USERS= uwsgi
|
|
GROUPS= uwsgi
|
|
|
|
PLIST_FILES= bin/uwsgi \
|
|
${PYTHON_SITELIBDIR}/uwsgidecorators.py
|
|
|
|
SUB_LIST= PYTHON_VER=${PYTHON_VER}
|
|
|
|
OPTIONS_DEFINE= DEBUG JSON PCRE XML SSL
|
|
OPTIONS_DEFAULT= SSL
|
|
|
|
OPTIONS_GROUP= PLG
|
|
OPTIONS_GROUP_PLG= COROAE LOGPIPE PSGI
|
|
|
|
PLG_DESC= Enable plugins
|
|
COROAE_DESC= Coro::AnyEvent support
|
|
LOGPIPE_DESC= Pipe logger support
|
|
PSGI_DESC= PSGI embedded plugin
|
|
|
|
COROAE_BUILD_DEPENDS= p5-Coro>=0:devel/p5-Coro
|
|
COROAE_IMPLIES= PSGI
|
|
|
|
DEBUG_VARS= PYDISTUTILS_BUILDARGS+=--debug
|
|
|
|
JSON_VARS= BUILDCONF_JSON=jansson
|
|
JSON_LIB_DEPENDS= libjansson.so:devel/jansson
|
|
|
|
PCRE_VARS= BUILDCONF_PCRE=true
|
|
PCRE_LIB_DEPENDS= libpcre.so:devel/pcre
|
|
|
|
PSGI_USES= perl5
|
|
|
|
XML_VARS= BUILDCONF_XML=libxml2
|
|
XML_LIB_DEPENDS= libxml2.so:textproc/libxml2
|
|
|
|
SSL_VARS= BUILDCONF_SSL=true
|
|
SSL_USES= ssl
|
|
SSL_CFLAGS= -I${OPENSSLINC}
|
|
SSL_LDFLAGS= ${OPENSSL_LDFLAGS}
|
|
|
|
post-patch:
|
|
.for var in JSON PCRE XML SSL
|
|
@${REINPLACE_CMD} -e '/^${var:tl} =/ s|= .*|= ${BUILDCONF_${var}:Ufalse}|' ${WRKSRC}/buildconf/base.ini
|
|
.endfor
|
|
|
|
.for plugin in COROAE LOGPIPE PSGI
|
|
post-patch-${plugin}-on:
|
|
@${REINPLACE_CMD} -e 's/%(main_plugin)s,/& ${plugin:tl},/' \
|
|
${WRKSRC}/buildconf/base.ini
|
|
.endfor
|
|
|
|
do-configure:
|
|
@${DO_NADA}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/
|
|
@${MKDIR} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
${INSTALL_DATA} ${WRKSRC}/uwsgidecorators.py ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
|
|
|
|
.include <bsd.port.mk>
|