diff options
author | Sergey A. Osokin <osa@FreeBSD.org> | 2020-10-21 21:59:57 +0000 |
---|---|---|
committer | Sergey A. Osokin <osa@FreeBSD.org> | 2020-10-21 21:59:57 +0000 |
commit | 2ed3f35b89f72b6a9e856da3709ca65b1c943edd (patch) | |
tree | fc520cfa956b5444955bf75f73a402964eaa940a /www/unit-python/Makefile | |
parent | Update to the 20201018 snapshot of GCC 11.0.0. (diff) |
Introduce the UNIT_MODNAME variable.
Since this is just an infrastructure change, do not bump
PORTREVISION.
Diffstat (limited to 'www/unit-python/Makefile')
-rw-r--r-- | www/unit-python/Makefile | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/www/unit-python/Makefile b/www/unit-python/Makefile index ece5b92ebe9c..d72215b981e7 100644 --- a/www/unit-python/Makefile +++ b/www/unit-python/Makefile @@ -2,14 +2,16 @@ # $FreeBSD$ PORTREVISION= 2 -PKGNAMESUFFIX= -python${PYTHON_SUFFIX} +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/python${PYTHON_SUFFIX}.unit.so +PLIST_FILES= libexec/unit/modules/${UNIT_MODNAME}.unit.so RUN_DEPENDS= unitd:www/unit @@ -19,15 +21,15 @@ MASTERDIR= ${.CURDIR}/../unit post-configure: cd ${CONFIGURE_WRKSRC} && \ - ./configure python --module=python${PYTHON_SUFFIX} \ + ./configure python --module=${UNIT_MODNAME} \ --config=${PYTHON_CMD}-config do-build: - cd ${CONFIGURE_WRKSRC} && ${MAKE} python${PYTHON_SUFFIX} + cd ${CONFIGURE_WRKSRC} && ${MAKE} ${UNIT_MODNAME} do-install: ${MKDIR} ${STAGEDIR}${PREFIX}/libexec/unit/modules/ - ${INSTALL_LIB} ${WRKSRC}/build/python${PYTHON_SUFFIX}.unit.so \ + ${INSTALL_LIB} ${WRKSRC}/build/${UNIT_MODNAME}.unit.so \ ${STAGEDIR}${PREFIX}/libexec/unit/modules/ .include "${MASTERDIR}/Makefile" |