blob: c35874091b7b9770ec201ff2b84f5db7fa384730 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
# $NetBSD: Makefile,v 1.4 2010/03/08 13:49:18 joerg Exp $
#
DISTNAME= uwsgi-0.9.4.2
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"
|