90dc8d854a
PHP bundles it's own copy of pcre 8.41 with the distribution, which is used when build doesn't find system one. Switch to the pkgsrc pcre, so that we don't need to maintain local PHP JIT patch here. Upcoming PHP 7.3 already switched to pcre2, so no value maintaining private PCRE patch any more (if there ever was). XXX devel/pcre doesn't seem to enable PCRE JIT, might be good to do so
27 lines
856 B
Text
27 lines
856 B
Text
# $NetBSD: Makefile.common,v 1.2 2018/02/05 08:51:25 jdolecek Exp $
|
|
# used by lang/php72/Makefile.php
|
|
# used by lang/php/ext.mk
|
|
# used by meta-pkgs/php72-extensions/Makefile
|
|
|
|
PHP_VERSION_REQD= 72
|
|
|
|
.include "../../lang/php/common.mk"
|
|
|
|
CATEGORIES+= www
|
|
MAINTAINER?= pkgsrc-users@NetBSD.org
|
|
|
|
# needed due to (broken?) configure checks in php-xmlrpc and php5-dom
|
|
CONFIGURE_ENV+= PHP_LIBXML_SHARED="1"
|
|
|
|
.include "../../mk/compiler.mk"
|
|
.if !empty(PKGSRC_COMPILER:Mclang)
|
|
# configure test gets confused by wrappers dropping -R /usr/lib
|
|
CONFIGURE_ARGS+= php_cv_cc_dashr=no
|
|
.endif
|
|
|
|
# not every extension actually depend on PCRE, and those which do
|
|
# don't use internal pcre structures, so default to build-time
|
|
# dependency only
|
|
BUILDLINK_DEPMETHOD.pcre?= build
|
|
CONFIGURE_ARGS+= --with-pcre-dir=${BUILDLINK_PREFIX.pcre}
|
|
.include "../../devel/pcre/buildlink3.mk"
|