freebsd-ports/www/unit-python/Makefile
Sergey A. Osokin 3cf0327df4 Stylify: use CONFIGURE_CMD macro.
Do not bump PORTREVISION.
2020-10-23 13:51:16 +00:00

36 lines
781 B
Makefile

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