view uwsginl-plugin-lang-php74/Makefile @ 186:7febb8b5cb59

Patch our PORTVERSION into uwsgi that is returned with "uwsgi --version". The parser for the version in uwsgiconfig.py also needed to be adjusted therefore because all version parts up to and including the revision must be integers to be used in the Python plugins properly.
author Franz Glasner <fzglas.hg@dom66.de>
date Fri, 14 Mar 2025 12:34:09 +0100
parents 4ddf40c2765a
children
line wrap: on
line source

# Created by: Franz Glasner <freebsd-dev@dom66.de>

PORTNAME=	${UWSGI_NAME}-plugin-lang-php74
CATEGORIES=	www lang devel

COMMENT=	Language plugin for PHP 7.4

LIB_DEPENDS+=	libxml2.so:textproc/libxml2 \
		libpcre.so:devel/pcre

USES=			php:build,embed
USE_PHP=		session:build xml:build
PHP_VER=		74
DEFAULT_VERSIONS+=	php=${PHP_VER}

MASTERDIR=	${.CURDIR}/../uwsginl-plugin-lang-py3

PLUGIN_NAME=	php74
PLUGIN_SOURCE=	plugins/php

#
# Check whether uwsginl has been built with both libpcre and libxml2
#
pre-build:
	@( ${UWSGI_PATH} --no-server --cflags | ${GREP} -- '-DUWSGI_XML_LIBXML2' >/dev/null ) || ( echo "Error: ${UWSGI_PATH} needs to be built with XML support (libxml2)" && exit 1 )
	@( ${UWSGI_PATH} --no-server --cflags | ${GREP} -- '-DUWSGI_PCRE' >/dev/null ) || ( echo "Error: ${UWSGI_PATH} needs to be built with PCRE support (libpcre)" && exit 1 )

.include	"${MASTERDIR}/Makefile"