Mercurial > hgrepos > FreeBSD > ports > www > uwsginl
comparison uwsginl-plugin-lang-py3/Makefile @ 30:cb20e897a53c
Prepare for a common repo: move all files into an extra subdirectory uwsginl-plugin-lang-py3
| author | Franz Glasner <fzglas.hg@dom66.de> |
|---|---|
| date | Sat, 09 Mar 2019 13:23:13 +0100 |
| parents | Makefile@3ee3540aa2b0 |
| children | 4dda3a6c973d |
comparison
equal
deleted
inserted
replaced
| 29:3ee3540aa2b0 | 30:cb20e897a53c |
|---|---|
| 1 # Created by: Franz Glasner <freebsd-dev@dom66.de> | |
| 2 # $FreeBSD$ | |
| 3 | |
| 4 PORTNAME?= ${UWSGI_NAME}-plugin-lang-py3 | |
| 5 DISTVERSION= 2.0.16 | |
| 6 PORTREVISION?= 0 | |
| 7 CATEGORIES?= www python | |
| 8 MASTER_SITES= http://projects.unbit.it/downloads/ | |
| 9 DISTNAME= uwsgi-${DISTVERSION} | |
| 10 | |
| 11 MAINTAINER?= freebsd-dev@dom66.de | |
| 12 COMMENT?= Language plugin for Python 3 (OS default) | |
| 13 | |
| 14 LICENSE= GPLv2-WITH-LINKING-EXCEPTION | |
| 15 LICENSE_GROUPS= FSF GPL OSI | |
| 16 LICENSE_NAME= GPLv2 with linking exception | |
| 17 LICENSE_FILE= ${WRKSRC}/LICENSE | |
| 18 LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept | |
| 19 | |
| 20 BUILD_DEPENDS+= ${UWSGI_NAME}==${PORTVERSION}:www/uwsginl | |
| 21 RUN_DEPENDS+= ${UWSGI_NAME}==${PORTVERSION}:www/uwsginl | |
| 22 | |
| 23 # This specific python version is built | |
| 24 USES?= python:3 gettext-runtime | |
| 25 # Some python version is needed when building | |
| 26 USES+= python:build pkgconfig | |
| 27 | |
| 28 PLIST_FILES= ${PLUGIN_DIR}/${PLUGIN_FILENAME} | |
| 29 | |
| 30 MAKE_ENV+= UWSGI_PROFILE_OVERRIDE=plugin_build_dir=${STAGEDIR}${PREFIX}/${PLUGIN_DIR};plugin_dir=${PREFIX}/${PLUGIN_DIR} PYTHON=${PYTHON_CMD} | |
| 31 | |
| 32 UWSGI_NAME= uwsginl | |
| 33 UWSGI_PATH= ${LOCALBASE}/bin/${UWSGI_NAME} | |
| 34 PLUGIN_DIR= lib/${UWSGI_NAME}/plugins | |
| 35 | |
| 36 # The name of the plugin to be created (to eventually distingush py2 and py3) | |
| 37 PLUGIN_NAME?= python3 | |
| 38 # Where to find the sources for the plugin (defaults to plugins/${PLUGIN_NAME}) | |
| 39 .if defined(MASTERDIR) | |
| 40 .if !defined(PLUGIN_SOURCE) || empty(PLUGIN_SOURCE) | |
| 41 PLUGIN_SOURCE= plugins/${PLUGIN_NAME} | |
| 42 .endif | |
| 43 .else | |
| 44 PLUGIN_SOURCE= plugins/python | |
| 45 .endif | |
| 46 # The complete basename of the plugin | |
| 47 PLUGIN_FILENAME= ${PLUGIN_NAME}_plugin.so | |
| 48 | |
| 49 do-configure: | |
| 50 @${DO_NADA} | |
| 51 | |
| 52 do-build: | |
| 53 @${MKDIR} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR} | |
| 54 @(cd ${BUILD_WRKSRC}; ${SETENV} ${MAKE_ENV} ${UWSGI_PATH} --build-plugin "${PLUGIN_SOURCE} ${PLUGIN_NAME}") | |
| 55 | |
| 56 do-install: | |
| 57 ${INSTALL_LIB} ${BUILD_WRKSRC}/${PLUGIN_FILENAME} ${STAGEDIR}${PREFIX}/${PLUGIN_DIR} | |
| 58 | |
| 59 .include <bsd.port.mk> |
