6adb1471ad
Approved by: osa Differential Revision: https://reviews.freebsd.org/D13227
26 lines
658 B
Makefile
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"
|