pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Add www/unit-php, a php module for NGINX Unit. This is a subsidiary port for www/unit.



Module Name:	pkgsrc-wip
Committed By:	Sergey A. Osokin <osa%FreeBSD.org@localhost>
Pushed By:	osa
Date:		Tue Aug 11 09:39:04 2020 -0400
Changeset:	a41f0873a8f40a7453084977b279156dadfd7419

Added Files:
	unit-php/Makefile

Log Message:
Add www/unit-php, a php module for NGINX Unit.
This is a subsidiary port for www/unit.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=a41f0873a8f40a7453084977b279156dadfd7419

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 unit-php/Makefile | 36 ++++++++++++++++++++++++++++++++++++
 1 file changed, 36 insertions(+)

diffs:
diff --git a/unit-php/Makefile b/unit-php/Makefile
new file mode 100644
index 0000000000..a4a2eaa866
--- /dev/null
+++ b/unit-php/Makefile
@@ -0,0 +1,36 @@
+# $NetBSD$
+
+PKGNAME=	unit-php${PHP_VERSION:R:S|.||g}-1.18.0
+DISTNAME=	unit-1.18.0
+COMMENT=	PHP module for NGINX Unit
+
+MAINTAINER=	osa%FreeBSD.org@localhost
+
+DISTINFO_FILE=	../../www/unit/distinfo
+PATCHDIR=	../../www/unit/patches
+
+PHP_VERSIONS_ACCEPTED?=	56 72 73 74
+
+MAKE_ENV+=	WITHOUT_RPATH_FIX=1
+
+USE_LANGUAGES+=	c
+
+.include "../../lang/php/phpversion.mk"
+
+.if empty(PKG_BUILD_OPTIONS.${PHP_PKG_PREFIX}:Mphp-embed)
+BROKEN=		"Requires the php-embed option enabled in PHP."
+.endif
+
+post-configure:
+	cd ${WRKSRC} && \
+	./configure php --lib-path=${PREFIX}/lib
+		--module=php${PHP_VERSION}
+
+do-install:
+	${MKDIR} ${DESTDIR}${PREFIX}/libexec/unit/modules/
+	${INSTALL_LIB} ${WRKSRC}/build/php${PHP_VERSION}.unit.so \
+		${DESTDIR}${PREFIX}/libexec/unit/modules/
+
+.include "${PHPPKGSRCDIR}/buildlink3.mk"
+.include "../../lang/php/ext.mk"
+.include "../../www/unit/Makefile.common"


Home | Main Index | Thread Index | Old Index