0958f5e286
- Support non-yielding applications better - UDP logging - uwsgi_error() for improved diagnostics - fix a potential segmentation fault - Add --version
42 lines
1.1 KiB
Makefile
42 lines
1.1 KiB
Makefile
# $NetBSD: Makefile,v 1.6 2010/06/15 22:18:34 joerg Exp $
|
|
#
|
|
|
|
DISTNAME= uwsgi-0.9.4.4
|
|
PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
|
|
CATEGORIES= www python
|
|
MASTER_SITES= http://projects.unbit.it/downloads/
|
|
|
|
MAINTAINER= joerg@NetBSD.org
|
|
HOMEPAGE= http://projects.unbit.it/uwsgi
|
|
COMMENT= Feature-rich WSGI server
|
|
|
|
PKG_DESTDIR_SUPPORT= user-destdir
|
|
|
|
PYTHON_VERSIONS_ACCEPTED= 26 25
|
|
|
|
LICENSE= gnu-gpl-v2
|
|
|
|
CFLAGS.python= ${PYTHONCONFIG} --cflags
|
|
LDFLAGS.python= ${PYTHONCONFIG} --ldflags
|
|
CFLAGS.libxml2= xml2-config --cflags
|
|
LDFLAGS.libxml2= xml2-config --libs
|
|
|
|
INSTALLATION_DIRS+= bin
|
|
|
|
PLIST_SUBST+= PYVERSSUFFIX=${PYVERSSUFFIX}
|
|
|
|
.include "../../mk/bsd.prefs.mk"
|
|
|
|
LDFLAGS+= -Wl,-rpath,${PREFIX}/lib -L${PREFIX}/lib
|
|
do-build:
|
|
cd ${WRKSRC} && \
|
|
${CC} -o uwsgi ${CFLAGS} ${CFLAGS.python:sh} ${CFLAGS.libxml2:sh} \
|
|
protocol.c socket.c spooler.c utils.c uwsgi.c uwsgi_pymodule.c \
|
|
${LDFLAGS} ${LDFLAGS.python:sh} ${LDFLAGS.libxml2:sh}
|
|
|
|
do-install:
|
|
${INSTALL_PROGRAM} ${WRKSRC}/uwsgi ${DESTDIR}${PREFIX}/bin/uwsgi-${PYVERSSUFFIX}
|
|
|
|
.include "../../lang/python/pyversion.mk"
|
|
.include "../../textproc/libxml2/buildlink3.mk"
|
|
.include "../../mk/bsd.pkg.mk"
|