pkgsrc-wip/unit-php/Makefile

28 lines
638 B
Makefile

# $NetBSD$
PKGNAME= unit-${LANG}${PHP_VERSION:R:S|.||g}-${UNIT_VERSION}
COMMENT= PHP module for NGINX Unit
LANG= php
MODNAME= ${LANG}${PHP_VERSION}
MAINTAINER= osa@FreeBSD.org
PHP_VERSIONS_ACCEPTED?= 56 72 73 74
.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 ${LANG} --lib-path=${PREFIX}/lib \
--module=${MODNAME}
.include "${PHPPKGSRCDIR}/buildlink3.mk"
.include "../../wip/unit/ext.mk"
.include "../../wip/unit/Makefile.common"
.include "../../mk/bsd.pkg.mk"