# $NetBSD: Makefile,v 1.52 2022/01/25 10:30:50 wiz Exp $ DISTNAME= uwsgi-2.0.20 PKGNAME= ${PYPKGPREFIX}-${DISTNAME} CATEGORIES= www python MASTER_SITES= ${MASTER_SITE_PYPI:=u/uwsgi/} MAINTAINER= pkgsrc-users@NetBSD.org HOMEPAGE= https://uwsgi-docs.readthedocs.io/ COMMENT= Feature-rich WSGI server LICENSE= gnu-gpl-v2 # with linking exception USE_TOOLS+= pkg-config PLIST_SUBST+= PYPKGPREFIX=${PYPKGPREFIX} EGG_NAME= ${DISTNAME:S/uwsgi/uWSGI/} .include "options.mk" INSTALL_ENV+= UWSGI_INCLUDES=${PREFIX}/include SOURCE_DATE_EPOCH=1 INSTALL_ENV+= UWSGI_PROFILE_OVERRIDE="${UWSGI_DEBUG};${UWSGI_JSON};${UWSGI_PCRE};${UWSGI_SSE};${UWSGI_SSL};${UWSGI_UUID};${UWSGI_XML};${UWSGI_YAML}" INSTALLATION_DIRS+= share/examples/${PYPKGPREFIX}-uwsgi post-install: cd ${DESTDIR}${PREFIX}/bin && ${MV} uwsgi uwsgi-${PYVERSSUFFIX} || ${TRUE} ${INSTALL_DATA} ${WRKSRC}/examples/* \ ${DESTDIR}${PREFIX}/share/examples/${PYPKGPREFIX}-uwsgi .include "../../devel/zlib/buildlink3.mk" .include "../../lang/python/egg.mk" .include "../../mk/dlopen.buildlink3.mk" .include "../../mk/pthread.buildlink3.mk" .include "../../mk/bsd.pkg.mk"