| @@ -1,19 +1,20 @@ | | | @@ -1,19 +1,20 @@ |
1 | # $NetBSD: Makefile,v 1.3 2021/12/19 10:09:29 schmonz Exp $ | | 1 | # $NetBSD: Makefile,v 1.4 2022/09/24 19:09:19 schmonz Exp $ |
2 | | | 2 | |
3 | PKGNAME= ${PHP_PKG_PREFIX}-${PKGNAME_MODULE} | | 3 | PKGNAME= ${PHP_PKG_PREFIX}-${PKGNAME_MODULE} |
4 | COMMENT= PHP bindings for Xapian search engine | | 4 | COMMENT= PHP bindings for Xapian search engine |
5 | HOMEPAGE= https://xapian.org/docs/bindings/php/ | | 5 | HOMEPAGE= https://xapian.org/docs/bindings/php/ |
6 | | | 6 | |
| | | 7 | # https://trac.xapian.org/ticket/817 |
7 | PHP_VERSIONS_INCOMPATIBLE= 80 81 | | 8 | PHP_VERSIONS_INCOMPATIBLE= 80 81 |
8 | | | 9 | |
9 | .include "../../lang/php/phpversion.mk" | | 10 | .include "../../lang/php/phpversion.mk" |
10 | | | 11 | |
11 | .if (${PKG_PHP_MAJOR_VERS} == 5) | | 12 | .if (${PKG_PHP_MAJOR_VERS} == 5) |
12 | CONFIGURE_ARGS+= --with-php | | 13 | CONFIGURE_ARGS+= --with-php |
13 | PHP_5_OR_EMPTY= 5 | | 14 | PHP_5_OR_EMPTY= 5 |
14 | .else | | 15 | .else |
15 | CONFIGURE_ARGS+= --with-php7 | | 16 | CONFIGURE_ARGS+= --with-php7 |
16 | PHP_5_OR_EMPTY= # empty | | 17 | PHP_5_OR_EMPTY= # empty |
17 | .endif | | 18 | .endif |
18 | | | 19 | |
19 | PLIST_SUBST+= PHP_5_OR_EMPTY=${PHP_5_OR_EMPTY:Q} | | 20 | PLIST_SUBST+= PHP_5_OR_EMPTY=${PHP_5_OR_EMPTY:Q} |