summaryrefslogtreecommitdiff
path: root/www/unit-perl/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/unit-perl/Makefile')
-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"