From b9d95057e71727ca92fc993092786e78565d56dd Mon Sep 17 00:00:00 2001 From: Mathieu Arnold Date: Wed, 3 Aug 2016 12:54:53 +0000 Subject: [PATCH] Add a bit more documentation about USES=php and extensions. Reviewed by: bcr Sponsored by: Absolight Differential Revision: https://reviews.freebsd.org/D7284 --- .../books/porters-handbook/uses/chapter.xml | 51 +++++++++++++++++++ 1 file changed, 51 insertions(+) diff --git a/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml b/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml index 2daaaf9704..2a58b1af67 100644 --- a/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml +++ b/en_US.ISO8859-1/books/porters-handbook/uses/chapter.xml @@ -1846,6 +1846,57 @@ USE_MATE= menus:build intlhack + + When building a PHP or + Zend extension with + :ext or :zend, these + variables can be set: + + + + PHP_MODNAME + + The name of the PHP or + Zend extension. Default value + is ${PORTNAME}. + + + + + PHP_HEADER_DIRS + + A list of subdirectories from which to install header + files. The framework will always install the header files + that are present in the same directory as the + extension. + + + + + PHP_MOD_PRIO + + The priority at which to load the extension. It is a + number between 00 and + 99. + + For extensions that do not depend on any extension, + the priority is automatically set to + 20, for extensions that depend on + another extension, the priority is automatically set to + 30. Some extensions may need to be + loaded before every other extension, for example www/php56-opcache. Some may need + to be loaded after an extension with a priority of + 30. In that case, add + PHP_MOD_PRIO=XX + in the port's Makefile. For example: + + USES= php:ext +USE_PHP= wddx +PHP_MOD_PRIO= 40 + + +