freebsd-ports/www/py-unit/Makefile
2017-12-09 19:46:42 +00:00

26 lines
658 B
Makefile

# Created by: Li-Wen Hsu <lwhsu@FreeBSD.org>
# $FreeBSD$
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
COMMENT= Python module for NGINX Unit
USES= python gettext-runtime
USE_PYTHON= flavors
PLIST_FILES= libexec/unit/modules/python${PYTHON_SUFFIX}.unit.so
USE_RC_SUBR?= # reset to empty
MASTERDIR= ${.CURDIR}/../unit
post-configure:
cd ${CONFIGURE_WRKSRC} && \
./configure python --module=python${PYTHON_SUFFIX} \
--config=${PYTHON_CMD}-config
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/unit/modules/
${INSTALL_LIB} ${WRKSRC}/build/python${PYTHON_SUFFIX}.unit.so \
${STAGEDIR}${PREFIX}/libexec/unit/modules/
.include "${MASTERDIR}/Makefile"