summaryrefslogtreecommitdiff
path: root/www/unit-perl
diff options
context:
space:
mode:
authorSergey A. Osokin <osa@FreeBSD.org>2020-10-21 21:59:57 +0000
committerSergey A. Osokin <osa@FreeBSD.org>2020-10-21 21:59:57 +0000
commit2ed3f35b89f72b6a9e856da3709ca65b1c943edd (patch)
treefc520cfa956b5444955bf75f73a402964eaa940a /www/unit-perl
parentUpdate 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-perl')
-rw-r--r--www/unit-perl/Makefile12
1 files changed, 7 insertions, 5 deletions
diff --git a/www/unit-perl/Makefile b/www/unit-perl/Makefile
index 0e12b01abd91..3b3e08f9b473 100644
--- a/www/unit-perl/Makefile
+++ b/www/unit-perl/Makefile
@@ -2,11 +2,13 @@
# $FreeBSD$
PORTREVISION= 2
-PKGNAMESUFFIX= -perl${PERL_VER}
+PKGNAMESUFFIX= -${UNIT_MODNAME}
+
+UNIT_MODNAME= perl${PERL_VER}
COMMENT= Perl module for NGINX Unit
-PLIST_FILES= libexec/unit/modules/perl${PERL_VER}.unit.so
+PLIST_FILES= libexec/unit/modules/${UNIT_MODNAME}.unit.so
RUN_DEPENDS= unitd:www/unit
@@ -18,14 +20,14 @@ MASTERDIR= ${.CURDIR}/../unit
post-configure:
cd ${CONFIGURE_WRKSRC} && \
- ./configure perl --module=perl${PERL_VER}
+ ./configure perl --module=${UNIT_MODNAME}
do-build:
- cd ${CONFIGURE_WRKSRC} && ${MAKE} perl${PERL_VER}
+ cd ${CONFIGURE_WRKSRC} && ${MAKE} ${UNIT_MODNAME}
do-install:
${MKDIR} ${STAGEDIR}${PREFIX}/libexec/unit/modules/
- ${INSTALL_LIB} ${WRKSRC}/build/perl${PERL_VER}.unit.so \
+ ${INSTALL_LIB} ${WRKSRC}/build/${UNIT_MODNAME}.unit.so \
${STAGEDIR}${PREFIX}/libexec/unit/modules/
.include "${MASTERDIR}/Makefile"