Mercurial > hgrepos > FreeBSD > ports > www > uwsginl
view Makefile @ 25:db0648353d12
The Python3 (OS default version) language (interpreter) plugin for www/uwsginl
| author | Franz Glasner <hg@dom66.de> |
|---|---|
| date | Sun, 24 Sep 2017 03:51:09 +0200 |
| parents | |
| children | 4f95a4fd4d0a |
line wrap: on
line source
# Created by: Franz Glasner <freebsd-dev@dom66.de> # $FreeBSD$ PORTNAME?= ${UWSGI_NAME}-plugin-lang-py3 DISTVERSION= 2.0.15 PORTREVISION?= 0 CATEGORIES?= www python MASTER_SITES= http://projects.unbit.it/downloads/ DISTNAME= uwsgi-${DISTVERSION} MAINTAINER?= freebsd-dev@dom66.de COMMENT?= Language plugin for Python 3 (OS default) LICENSE= GPLv2-WITH-LINKING-EXCEPTION LICENSE_GROUPS= FSF GPL OSI LICENSE_NAME= GPLv2 with linking exception LICENSE_FILE= ${WRKSRC}/LICENSE LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept BUILD_DEPENDS+= ${UWSGI_NAME}==${PORTVERSION}:www/uwsginl RUN_DEPENDS+= ${UWSGI_NAME}==${PORTVERSION}:www/uwsginl # This specific python version is built USES?= python:3 gettext-runtime # Some python version is needed when building USES+= python:build pkgconfig PLIST_FILES= ${PLUGIN_DIR}/${PLUGIN_FILENAME} MAKE_ENV+= UWSGI_PROFILE_OVERRIDE=plugin_build_dir=${STAGEDIR}${PREFIX}/${PLUGIN_DIR};plugin_dir=${PREFIX}/${PLUGIN_DIR} PYTHON=${PYTHON_CMD} UWSGI_NAME= uwsginl PLUGIN_DIR= lib/${UWSGI_NAME}/plugins # Native plugin name (i.e. the source directory) PLUGIN_NAME?= python # The name of the plugin to be created (to eventually distingush py2 and py3) .if defined(PLUGIN_FILENAME_TAG) .if ${PLUGIN_FILENAME_TAG} == "" PLUGIN_FILENAME_TAG= ${PLUGIN_NAME} .endif .endif .if !defined(MASTERDIR) PLUGIN_FILENAME_TAG?= python3 .endif # The complete filename of the plugin PLUGIN_FILENAME= ${PLUGIN_FILENAME_TAG:U${PLUGIN_NAME}}_plugin.so do-configure: @${DO_NADA} pre-build: @${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR} do-build: @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${PREFIX}/bin/${UWSGI_NAME} --build-plugin "plugins/${PLUGIN_NAME} ${PLUGIN_FILENAME_TAG:U${PLUGIN_NAME}}") do-install: ${INSTALL_LIB} ${BUILD_WRKSRC}/${PLUGIN_FILENAME} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR} .include <bsd.port.mk>
