diff options
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" |