summaryrefslogtreecommitdiff
path: root/www/nginx/Makefile.common
diff options
context:
space:
mode:
Diffstat (limited to 'www/nginx/Makefile.common')
-rw-r--r--www/nginx/Makefile.common11
1 files changed, 9 insertions, 2 deletions
diff --git a/www/nginx/Makefile.common b/www/nginx/Makefile.common
index 3b707790ce3..274ee913460 100644
--- a/www/nginx/Makefile.common
+++ b/www/nginx/Makefile.common
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile.common,v 1.6 2015/09/30 13:36:00 imil Exp $
+# $NetBSD: Makefile.common,v 1.7 2015/10/12 14:53:17 jperkin Exp $
# used by www/nginx/Makefile
# used by www/nginx-devel/Makefile
@@ -89,6 +89,13 @@ MESSAGE_SUBST+= NGINX_PIDDIR=${NGINX_PIDDIR}
MESSAGE_SUBST+= NGINX_USER=${NGINX_USER}
MESSAGE_SUBST+= NGINX_GROUP=${NGINX_GROUP}
+.if ${OPSYS} == "Darwin"
+SOEXT= bundle
+.else
+SOEXT= so
+.endif
+PLIST_SUBST+= SOEXT=${SOEXT}
+
do-install:
${INSTALL_PROGRAM} ${WRKSRC}/objs/nginx ${DESTDIR}${PREFIX}/sbin/nginx
.for file in ${EGFILES}
@@ -102,7 +109,7 @@ do-install:
.endif
.if !empty(PKG_OPTIONS:Mperl)
${INSTALL_LIB_DIR} ${DESTDIR}${PERL5_INSTALLVENDORARCH}/auto/nginx
- ${INSTALL_LIB} ${WRKSRC}/objs/src/http/modules/perl/blib/arch/auto/nginx/nginx.so \
+ ${INSTALL_LIB} ${WRKSRC}/objs/src/http/modules/perl/blib/arch/auto/nginx/nginx.${SOEXT} \
${DESTDIR}${PERL5_INSTALLVENDORARCH}/auto/nginx
${INSTALL_DATA} ${WRKSRC}/objs/src/http/modules/perl/blib/lib/nginx.pm \
${DESTDIR}${PERL5_INSTALLVENDORARCH}